Add docker compose to CI images

Closes gh-34738
pull/34741/head
Andy Wilkinson 2 years ago
parent 5348e246a5
commit 91c5d41094

@ -3,6 +3,7 @@ FROM ubuntu:jammy-20230301
ADD setup.sh /setup.sh
ADD get-jdk-url.sh /get-jdk-url.sh
ADD get-docker-url.sh /get-docker-url.sh
ADD get-docker-compose-url.sh /get-docker-compose-url.sh
RUN ./setup.sh java17 java19
ENV JAVA_HOME /opt/openjdk

@ -3,6 +3,7 @@ FROM ubuntu:jammy-20230126
ADD setup.sh /setup.sh
ADD get-jdk-url.sh /get-jdk-url.sh
ADD get-docker-url.sh /get-docker-url.sh
ADD get-docker-compose-url.sh /get-docker-compose-url.sh
RUN ./setup.sh java17 java20
ENV JAVA_HOME /opt/openjdk

@ -3,6 +3,7 @@ FROM ubuntu:jammy-20230301
ADD setup.sh /setup.sh
ADD get-jdk-url.sh /get-jdk-url.sh
ADD get-docker-url.sh /get-docker-url.sh
ADD get-docker-compose-url.sh /get-docker-compose-url.sh
RUN ./setup.sh java17
ENV JAVA_HOME /opt/openjdk

@ -0,0 +1,5 @@
#!/bin/bash
set -e
version="2.17.0"
echo "https://github.com/docker/compose/releases/download/v$version/docker-compose-linux-x86_64"

@ -52,6 +52,14 @@ chmod +x entrykit && \
mv entrykit /bin/entrykit && \
entrykit --symlink
###########################################################
# DOCKER COMPOSE
###########################################################
mkdir -p /usr/local/lib/docker/cli-plugins
DOCKER_COMPOSE_URL=$( ./get-docker-compose-url.sh )
curl -L ${DOCKER_COMPOSE_URL} -o /usr/local/lib/docker/cli-plugins/docker-compose
chmod +x /usr/local/lib/docker/cli-plugins/docker-compose
###########################################################
# GRADLE ENTERPRISE
###########################################################

Loading…
Cancel
Save