Install gradle 6.2 in docker image (#5541)

Co-authored-by: Rhys Arkins <rhys@arkins.net>
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
This commit is contained in:
Daniel Tschinder 2020-02-21 20:25:39 +01:00 committed by GitHub
parent 1dd4414bae
commit 670114fc59
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -25,7 +25,8 @@ ENV DEBIAN_FRONTEND noninteractive
ENV LC_ALL C.UTF-8 ENV LC_ALL C.UTF-8
ENV LANG C.UTF-8 ENV LANG C.UTF-8
RUN apt-get update && apt-get install -y gpg curl wget unzip xz-utils openssh-client bsdtar build-essential && \ RUN apt-get update && \
apt-get install -y gpg curl wget unzip xz-utils openssh-client bsdtar build-essential openjdk-11-jre-headless dirmngr && \
rm -rf /var/lib/apt/lists/* rm -rf /var/lib/apt/lists/*
# The git version of ubuntu 18.04 is too old to sort ref tags properly (see #5477), so update it to the latest stable version # The git version of ubuntu 18.04 is too old to sort ref tags properly (see #5477), so update it to the latest stable version
@ -35,9 +36,14 @@ RUN echo "deb http://ppa.launchpad.net/git-core/ppa/ubuntu bionic main\ndeb-src
apt-get -y install git && \ apt-get -y install git && \
rm -rf /var/lib/apt/lists/* rm -rf /var/lib/apt/lists/*
## Gradle ## Gradle (needs java-jre, installed above)
RUN apt-get update && apt-get install -y --no-install-recommends openjdk-11-jre-headless gradle && \ ENV GRADLE_VERSION 6.2
rm -rf /var/lib/apt/lists/*
RUN wget --no-verbose https://services.gradle.org/distributions/gradle-$GRADLE_VERSION-bin.zip && \
unzip -q -d /opt/ gradle-$GRADLE_VERSION-bin.zip && \
rm -f gradle-$GRADLE_VERSION-bin.zip && \
mv /opt/gradle-$GRADLE_VERSION /opt/gradle && \
ln -s /opt/gradle/bin/gradle /usr/local/bin/gradle
## Node.js ## Node.js