Skip to content

Commit

Permalink
feat: add Kamal deployment support
Browse files Browse the repository at this point in the history
  • Loading branch information
yinho999 committed Jan 26, 2025
1 parent b974128 commit 8b3c713
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
source: loco-gen/tests/templates/deployment.rs
expression: "fs::read_to_string(tree_fs.root.join(\"dockerfile\")).expect(\"dockerfile missing\")"
---
FROM rust:1.83.0-slim as builder
FROM rust:1.84-slim as builder

WORKDIR /usr/src/

Expand All @@ -13,9 +13,9 @@ RUN cargo build --release
FROM debian:bookworm-slim

WORKDIR /usr/app

COPY --from=builder /usr/src/assets/views /usr/app/assets/views
COPY --from=builder /usr/src/404_html /usr/app/404_html
COPY --from=builder /usr/src/config /usr/app/config
COPY --from=builder /usr/src/target/release/tester-cli /usr/app/tester-cli

ENTRYPOINT ["/usr/app/tester-cli"]
ENTRYPOINT ["/usr/app/tester-cli","start"]
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
source: loco-gen/tests/templates/deployment.rs
expression: "fs::read_to_string(tree_fs.root.join(\"dockerfile\")).expect(\"dockerfile missing\")"
---
FROM rust:1.83.0-slim as builder
FROM rust:1.84-slim as builder

WORKDIR /usr/src/

Expand All @@ -13,10 +13,10 @@ RUN cargo build --release
FROM debian:bookworm-slim

WORKDIR /usr/app

COPY --from=builder /usr/src/assets /usr/app/assets
COPY --from=builder /usr/src/assets/views /usr/app/assets/views
COPY --from=builder /usr/src/404_html /usr/app/404_html
COPY --from=builder /usr/src/config /usr/app/config
COPY --from=builder /usr/src/target/release/tester-cli /usr/app/tester-cli

ENTRYPOINT ["/usr/app/tester-cli"]
ENTRYPOINT ["/usr/app/tester-cli","start"]
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
source: loco-gen/tests/templates/deployment.rs
expression: "fs::read_to_string(tree_fs.root.join(\"dockerfile\")).expect(\"dockerfile missing\")"
---
FROM rust:1.83.0-slim as builder
FROM rust:1.84-slim as builder

WORKDIR /usr/src/

Expand All @@ -13,8 +13,8 @@ RUN cargo build --release
FROM debian:bookworm-slim

WORKDIR /usr/app

COPY --from=builder /usr/src/assets/views /usr/app/assets/views
COPY --from=builder /usr/src/config /usr/app/config
COPY --from=builder /usr/src/target/release/tester-cli /usr/app/tester-cli

ENTRYPOINT ["/usr/app/tester-cli"]
ENTRYPOINT ["/usr/app/tester-cli","start"]
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
source: loco-gen/tests/templates/deployment.rs
expression: "fs::read_to_string(tree_fs.root.join(\"dockerfile\")).expect(\"dockerfile missing\")"
---
FROM rust:1.83.0-slim as builder
FROM rust:1.84-slim as builder

WORKDIR /usr/src/

Expand All @@ -13,9 +13,9 @@ RUN cargo build --release
FROM debian:bookworm-slim

WORKDIR /usr/app

COPY --from=builder /usr/src/assets /usr/app/assets
COPY --from=builder /usr/src/assets/views /usr/app/assets/views
COPY --from=builder /usr/src/config /usr/app/config
COPY --from=builder /usr/src/target/release/tester-cli /usr/app/tester-cli

ENTRYPOINT ["/usr/app/tester-cli"]
ENTRYPOINT ["/usr/app/tester-cli","start"]

0 comments on commit 8b3c713

Please sign in to comment.