Skip to content

Commit

Permalink
Add tini to client as well
Browse files Browse the repository at this point in the history
  • Loading branch information
gnossen committed Feb 26, 2024
1 parent 125fb13 commit ea967fe
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ COPY . .
RUN tools/bazel build //test/cpp/interop:xds_interop_client
RUN cp -rL /workdir/bazel-bin/test/cpp/interop/xds_interop_client /artifacts/

ENV TINI_VERSION v0.19.0
ADD https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini /tini
RUN chmod +x /tini

FROM python:3.9-slim-bookworm

ENV GRPC_VERBOSITY="DEBUG"
Expand All @@ -39,4 +43,7 @@ RUN apt-get update \

COPY --from=0 /artifacts ./

ENTRYPOINT ["/xds_interop_client"]
# tini serves as PID 1 and enables the server to properly respond to signals.
COPY --from=0 /tini /tini

ENTRYPOINT ["/tini", "-g", "-vv", "--", "/xds_interop_client"]

0 comments on commit ea967fe

Please sign in to comment.