From 42ac341b1dd002d3bc13fe686590a1c4b4d78641 Mon Sep 17 00:00:00 2001 From: cdxker Date: Thu, 9 Jan 2025 14:13:56 -0800 Subject: [PATCH] ci: correct batch etl images --- batch-etl/Dockerfile.check-completion-worker | 4 ++-- batch-etl/Dockerfile.create-job-worker | 4 ++-- batch-etl/Dockerfile.server | 1 - 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/batch-etl/Dockerfile.check-completion-worker b/batch-etl/Dockerfile.check-completion-worker index 63bd50d8b..9f3d22aa5 100644 --- a/batch-etl/Dockerfile.check-completion-worker +++ b/batch-etl/Dockerfile.check-completion-worker @@ -3,7 +3,7 @@ FROM rust:1.81-slim-bookworm AS chef # it will be cached from the second build onwards RUN apt-get update -y && apt-get -y install pkg-config libssl-dev libpq-dev g++ curl RUN cargo install cargo-chef -WORKDIR app +WORKDIR /app FROM chef AS planner COPY . . @@ -20,7 +20,7 @@ RUN cargo build --release --features "runtime-env" --bin "check-completion-worke FROM debian:bookworm-slim as runtime RUN apt-get update -y && apt-get -y install pkg-config libssl-dev libpq-dev ca-certificates WORKDIR /app -COPY ./migrations/ /app/migrations +COPY ./ch_migrations/ /app/ch_migrations COPY --from=builder /app/target/release/check-completion-worker /app/check-completion-worker diff --git a/batch-etl/Dockerfile.create-job-worker b/batch-etl/Dockerfile.create-job-worker index 338dffd7c..f1f9080b0 100644 --- a/batch-etl/Dockerfile.create-job-worker +++ b/batch-etl/Dockerfile.create-job-worker @@ -3,7 +3,7 @@ FROM rust:1.81-slim-bookworm AS chef # it will be cached from the second build onwards RUN apt-get update -y && apt-get -y install pkg-config libssl-dev libpq-dev g++ curl RUN cargo install cargo-chef -WORKDIR app +WORKDIR /app FROM chef AS planner COPY . . @@ -20,7 +20,7 @@ RUN cargo build --release --features "runtime-env" --bin "create-job-worker" FROM debian:bookworm-slim as runtime RUN apt-get update -y && apt-get -y install pkg-config libssl-dev libpq-dev ca-certificates WORKDIR /app -COPY ./migrations/ /app/migrations +COPY ./ch_migrations/ /app/ch_migrations COPY --from=builder /app/target/release/create-job-worker /app/create-job-worker diff --git a/batch-etl/Dockerfile.server b/batch-etl/Dockerfile.server index 5f19d746c..8c97bcf15 100644 --- a/batch-etl/Dockerfile.server +++ b/batch-etl/Dockerfile.server @@ -33,7 +33,6 @@ RUN apt-get update -y; \ ; COPY ./ch_migrations /app/ch_migrations -COPY --from=builder /app/static /app/static COPY --from=builder /app/target/release/batch-etl-server /app/batch-etl-server EXPOSE 8090