Skip to content

Commit

Permalink
Fix tini and docker-compose for ubuntu-20.04
Browse files Browse the repository at this point in the history
  • Loading branch information
triarius committed Jan 10, 2023
1 parent 5e096d2 commit 9e3fe2a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
19 changes: 10 additions & 9 deletions packaging/docker/ubuntu-20.04-linux/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,35 +1,36 @@
# syntax=docker/dockerfile:1.4

FROM ubuntu:20.04

ARG TARGETOS
ARG TARGETARCH

ENV DEBIAN_FRONTEND=noninteractive
ENV DOCKER_COMPOSE_VERSION=1.27.4
ENV TINI_VERSION=0.19.0

RUN apt-get update && apt-get install -y --no-install-recommends \
apt-transport-https \
curl \
ca-certificates \
bash \
ca-certificates \
curl \
git \
gnupg-agent \
jq \
openssh-client \
perl \
python \
python3-pip \
rsync \
software-properties-common \
tini \
&& curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add - \
&& add-apt-repository \
"deb [arch=$TARGETARCH] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" \
&& apt-get update \
&& apt-get install -y --no-install-recommends docker-ce-cli docker-compose-plugin \
&& rm -rf /var/lib/apt/lists/*

RUN curl -Lfs -o /sbin/tini https://github.com/krallin/tini/releases/download/v${TINI_VERSION}/tini \
&& chmod +x /sbin/tini \
&& curl -Lfs https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-Linux-x86_64 -o /usr/local/bin/docker-compose \
&& chmod +x /usr/local/bin/docker-compose
&& rm -rf /var/lib/apt/lists/* \
&& pip3 install docker-compose==$DOCKER_COMPOSE_VERSION \
&& apt-get -y purge --auto-remove python3-pip

ENV BUILDKITE_AGENT_CONFIG=/buildkite/buildkite-agent.cfg \
PATH="/usr/local/bin:${PATH}"
Expand Down
2 changes: 1 addition & 1 deletion packaging/docker/ubuntu-20.04-linux/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ if [[ -d "$DIR" ]] ; then
/bin/run-parts --exit-on-error "$DIR"
fi

exec /sbin/tini -- ssh-env-config.sh /usr/local/bin/buildkite-agent "$@"
exec /usr/bin/tini -- ssh-env-config.sh /usr/local/bin/buildkite-agent "$@"

0 comments on commit 9e3fe2a

Please sign in to comment.