Skip to content

Commit

Permalink
build: add RUST_LOG env var to Dockerfiles
Browse files Browse the repository at this point in the history
  • Loading branch information
hseeberger committed Nov 17, 2023
1 parent 0317409 commit 57331bc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions hello-tracing-backend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ RUN cargo build --release --package hello-tracing-backend
FROM debian:bullseye-slim
COPY --from=builder /root/hello-tracing-rs/target/release/hello-tracing-backend /usr/local/bin/hello-tracing-backend
COPY --from=builder /root/hello-tracing-rs/hello-tracing-backend/config /opt/hello-tracing-backend/config
ENV RUST_LOG="hello_tracing_backend=debug,info"
WORKDIR /opt/hello-tracing-backend
ENTRYPOINT ["hello-tracing-backend"]
EXPOSE 8080/tcp
1 change: 1 addition & 0 deletions hello-tracing-gateway/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ RUN cargo build --release --package hello-tracing-gateway
FROM debian:bullseye-slim
COPY --from=builder /root/hello-tracing-rs/target/release/hello-tracing-gateway /usr/local/bin/hello-tracing-gateway
COPY --from=builder /root/hello-tracing-rs/hello-tracing-gateway/config /opt/hello-tracing-gateway/config
ENV RUST_LOG="hello_tracing_gateway=debug,info"
WORKDIR /opt/hello-tracing-gateway
ENTRYPOINT ["hello-tracing-gateway"]
EXPOSE 8080/tcp

0 comments on commit 57331bc

Please sign in to comment.