Skip to content

Commit

Permalink
Add tini process pid 1
Browse files Browse the repository at this point in the history
  • Loading branch information
fridim committed Oct 20, 2023
1 parent 07076da commit 839546f
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion Containerfile.admin
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ RUN dnf install -y https://download.postgresql.org/pub/repos/yum/reporpms/EL-8-x
findutils \
gcc \
git \
gnupg2 \
jq \
libevent \
libevent-devel \
Expand All @@ -45,6 +46,12 @@ RUN dnf install -y https://download.postgresql.org/pub/repos/yum/reporpms/EL-8-x
&& ./configure \
&& make && make install \
&& dnf clean all \
&& TINI_VERSION=v0.19.0 \
&& curl --silent --location https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini -o /bin/tini \
&& curl --silent --location https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini.asc -o /tmp/tini.asc \
&& gpg --batch --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 595E85A6B1B4779EA4DAAEC70B588DFF0527A9B7 \
&& gpg --batch --verify /tmp/tini.asc /bin/tini \
&& chmod +x /bin/tini \
&& HURL_VERSION=4.1.0 \
&& curl --silent --location https://github.com/Orange-OpenSource/hurl/releases/download/${HURL_VERSION}/hurl-${HURL_VERSION}-x86_64-unknown-linux-gnu.tar.gz \
| tar -xz -C /usr/local/bin --strip-components=1 --wildcards '*/hurl' '*/hurlfmt' \
Expand All @@ -59,7 +66,8 @@ COPY --from=builder /sandbox/build/sandbox-* ./
COPY --from=builder /sandbox/tools ./tools
COPY --from=builder /sandbox/tests ./tests
COPY --from=builder /sandbox/db ./db
CMD ["/usr/local/bin/tmux", "new-session", "-s", "sandbox", "-c", "/sandbox"]
ENTRYPOINT ["/bin/tini", "--"]
CMD ["/usr/local/bin/tmux", "new-session", "-s", "sandbox-admin", "-c", "/sandbox"]


ENV DESCRIPTION="Image for Admins to interact with the Sandbox API"
Expand Down

0 comments on commit 839546f

Please sign in to comment.