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 d8a2c78
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions 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 @@ -30,25 +31,26 @@ RUN dnf install -y https://download.postgresql.org/pub/repos/yum/reporpms/EL-8-x
net-tools \
openssl \
postgresql \
procps-ng \
python39 \
python39-pip \
rsync \
tar \
unzip \
vim \
wget \
&& dnf clean all \
&& cd /tmp \
&& TMUX_VERSION="3.3a" \
&& curl --silent --location https://github.com/tmux/tmux/releases/download/${TMUX_VERSION}/tmux-${TMUX_VERSION}.tar.gz -O \
&& tar -zxf tmux-*.tar.gz \
&& cd tmux-*/ \
&& ./configure \
&& make && make install \
&& dnf clean all \
&& 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' \
&& rm -rf /tmp/* && rm -rf /var/cache/dnf/* && rm -rf /var/log/dnf*
&& rm -rf /tmp/* && rm -rf /var/log/dnf*

COPY --from=docker.io/migrate/migrate /usr/local/bin/migrate /usr/local/bin/migrate
WORKDIR /sandbox/
Expand All @@ -59,8 +61,9 @@ 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 ["/bin/bash"]

ENV DESCRIPTION="Image for Admins to interact with the Sandbox API"
LABEL name="rhpds/sandbox-admin" \
Expand Down

0 comments on commit d8a2c78

Please sign in to comment.