Skip to content
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
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ RUN cargo build --release --target=x86_64-unknown-linux-musl --features alpine-d
# Build tracker
RUN cargo build --release -p tracker --target=x86_64-unknown-linux-musl --features alpine-deploy

# Build migrate_persistence
RUN cargo build --release -p migrate_persistence --target=x86_64-unknown-linux-musl --features alpine-deploy

# Stage 2: Create the final, minimal runtime image
FROM --platform=linux/amd64 alpine:3.22

Expand All @@ -26,6 +29,7 @@ RUN apk add --no-cache ca-certificates

COPY --from=builder /app/target/x86_64-unknown-linux-musl/release/index-maker ./
COPY --from=builder /app/target/x86_64-unknown-linux-musl/release/tracker ./
COPY --from=builder /app/target/x86_64-unknown-linux-musl/release/migrate_persistence ./
COPY --from=builder /app/configs ./configs

CMD ["./index-maker", "-b", "0.0.0.0:3000", "-c", "configs", "quote-server"]
Expand Down
8 changes: 6 additions & 2 deletions apps/migrate_persistence/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,14 @@ name = "migrate_persistence"
version = "0.1.0"
edition = "2021"

[features]
alpine-deploy = ["openssl/vendored"]

[dependencies]
clap = { workspace = true}
eyre = { workspace = true }
index-maker = { workspace = true }
openssl = { workspace = true, optional = true }
serde = { workspace = true }
serde_json = { workspace = true }
clap = { workspace = true}
index-maker = { workspace = true }
symm-core = { workspace = true }
15 changes: 15 additions & 0 deletions deploy_templates/docker-compose.prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,21 @@ services:

restart: unless-stopped


# migrate-persistence:
# platform: linux/amd64
# image: ${DOCKER_IMAGE_NAME}
# ports: []
#
# command: ["./migrate_persistence", "--file", "persistence/InvoiceManager.json" ]
#
# environment:
# RUST_LOG: ${RUST_LOG}
#
# volumes:
# - ./persistence_migration:/app/persistence
#

# index-maker-tracker:
# platform: linux/amd64
# image: ${DOCKER_IMAGE_NAME}
Expand Down