feature: updated Dockerfile
Gitea/docker-base-images/jdk14-alpine/pipeline/head There was a failure building this commit Details

fix/fix-agent-installation
amorozov 2023-03-30 20:11:10 +03:00
parent cc4b479502
commit 1f00c857cd
1 changed files with 8 additions and 6 deletions

View File

@ -6,6 +6,14 @@ FROM ${BASE_IMAGE}
ENV GROOVY_HOME=/opt/groovy ENV GROOVY_HOME=/opt/groovy
ENV GROOVY_VERSION=4.0.9 ENV GROOVY_VERSION=4.0.9
# Install docker-cli, docker-compose, git, bash
RUN apk update && \
apk add --no-cache docker-cli python3 git bash && \
apk add --no-cache --virtual .docker-compose-deps python3-dev libffi-dev openssl-dev gcc libc-dev make && \
python -m pip install --upgrade pip && \
pip3 install docker-compose && \
apk del .docker-compose-deps
RUN set -o errexit -o nounset && echo "Installing build dependencies" && \ RUN set -o errexit -o nounset && echo "Installing build dependencies" && \
apk add --no-cache --virtual .build-deps gnupg && \ apk add --no-cache --virtual .build-deps gnupg && \
echo "Downloading Groovy" && \ echo "Downloading Groovy" && \
@ -33,11 +41,5 @@ RUN set -o errexit -o nounset && echo "Installing build dependencies" && \
echo "Editing startGroovy to include java.xml.bind module" && \ echo "Editing startGroovy to include java.xml.bind module" && \
sed --in-place 's|startGroovy ( ) {|startGroovy ( ) {\n JAVA_OPTS="$JAVA_OPTS --add-modules=ALL-SYSTEM"|' "${GROOVY_HOME}/bin/startGroovy" sed --in-place 's|startGroovy ( ) {|startGroovy ( ) {\n JAVA_OPTS="$JAVA_OPTS --add-modules=ALL-SYSTEM"|' "${GROOVY_HOME}/bin/startGroovy"
# Install docker-cli, docker-compose, git, bash
RUN apk update && \
apk add --no-cache docker-cli python3 py3-pip git bash && \
apk add --no-cache --virtual .docker-compose-deps python3-dev libffi-dev openssl-dev gcc libc-dev make && \
pip3 install docker-compose && \
apk del .docker-compose-deps