mirror of
https://github.com/renovatebot/renovate.git
synced 2025-01-12 06:56:24 +00:00
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:
parent
1dd4414bae
commit
670114fc59
1 changed files with 10 additions and 4 deletions
14
Dockerfile
14
Dockerfile
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue