Skip to content

Commit b37c2ee

Browse files
authored
Merge pull request #1846 from buildkite/triarius/docker-compose-ubuntu
Add docker compose for ubuntu docker images
2 parents 4c196c8 + bbf6974 commit b37c2ee

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

.buildkite/steps/build-docker-image.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@ test_docker_image() {
4040

4141
echo "--- :hammer: Testing $image_tag has docker-compose"
4242
docker run --rm --entrypoint "docker-compose" "$image_tag" --version
43+
44+
echo "--- :hammer: Testing $image_tag has docker compose v2"
45+
docker run --rm --entrypoint "docker" "$image_tag" compose version
4346
}
4447

4548
push_docker_image() {

packaging/docker/ubuntu-18.04-linux/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
2020
&& add-apt-repository \
2121
"deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" \
2222
&& apt-get update \
23-
&& apt-get install -y --no-install-recommends docker-ce-cli \
23+
&& apt-get install -y --no-install-recommends docker-ce-cli docker-compose-plugin \
2424
&& rm -rf /var/lib/apt/lists/*
2525

2626
RUN curl -Lfs -o /sbin/tini https://github.com/krallin/tini/releases/download/v${TINI_VERSION}/tini \

packaging/docker/ubuntu-20.04-linux/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
2020
&& add-apt-repository \
2121
"deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" \
2222
&& apt-get update \
23-
&& apt-get install -y --no-install-recommends docker-ce-cli \
23+
&& apt-get install -y --no-install-recommends docker-ce-cli docker-compose-plugin \
2424
&& rm -rf /var/lib/apt/lists/*
2525

2626
RUN curl -Lfs -o /sbin/tini https://github.com/krallin/tini/releases/download/v${TINI_VERSION}/tini \

0 commit comments

Comments
 (0)