Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: change postgres deploy #759

Merged
merged 2 commits into from
May 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion config/production.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ kubernetes:
# EVM api postgres storage
# --------------------------------------------------------------------------
- name: stratus-api-postgres
dockerfile: ./docker/Dockerfile.run_stratus
dockerfile: ./docker/Dockerfile.run_with_importer_postgres
secretsManager:
enabled: true
provider: gcpsm
Expand Down
22 changes: 22 additions & 0 deletions docker/Dockerfile.run_with_importer_postgres
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Build
FROM rust:1.75 as builder

WORKDIR /app
COPY src /app/src
COPY static /app/static
COPY .sqlx /app/.sqlx
COPY build.rs /app/build.rs
COPY Cargo.toml /app/Cargo.toml
COPY Cargo.lock /app/Cargo.lock

RUN apt update
RUN apt-get install -y libclang-dev cmake

RUN cargo build --release --bin run-with-importer --features metrics

# Runtime
FROM rust:1.75 as runtime
WORKDIR /app
COPY --from=builder /app/target/release/run-with-importer /app/run-with-importer

CMD ["sh", "-c", "/app/run-with-importer"]
Loading