Skip to content

Commit

Permalink
improter online
Browse files Browse the repository at this point in the history
  • Loading branch information
carneiro-cw committed May 3, 2024
1 parent be17da4 commit 95bb295
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
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_with_importer_postgres
dockerfile: ./docker/Dockerfile.importer_online_postgres
secretsManager:
enabled: true
provider: gcpsm
Expand Down
22 changes: 22 additions & 0 deletions docker/Dockerfile.importer_online_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 importer-online --features metrics

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

CMD ["sh", "-c", "/app/importer-online"]

0 comments on commit 95bb295

Please sign in to comment.