Add Gradle installation to the container image
Closes gh-19
This commit is contained in:
@@ -5,10 +5,11 @@ ADD get-crac-jdk-url.sh /get-crac-jdk-url.sh
|
||||
ADD get-docker-url.sh /get-docker-url.sh
|
||||
ADD get-ytt-url.sh /get-ytt-url.sh
|
||||
ADD get-docker-compose-url.sh /get-docker-compose-url.sh
|
||||
ADD get-gradle-url.sh /get-gradle-url.sh
|
||||
RUN ./setup.sh
|
||||
|
||||
ENV JAVA_HOME /opt/crac-jdk
|
||||
ENV PATH $JAVA_HOME/bin:/opt/ytt/bin:/opt/docker-compose/bin:$PATH
|
||||
ENV PATH $JAVA_HOME/bin:/opt/ytt/bin:/opt/docker-compose/bin:/opt/gradle/bin:$PATH
|
||||
ENV GRADLE_OPTS -Dorg.gradle.project.buildDir=/tmp/gradle-build
|
||||
RUN git config --global --add safe.directory /workspace
|
||||
ADD docker-lib.sh /docker-lib.sh
|
||||
|
||||
5
ci/images/get-gradle-url.sh
Executable file
5
ci/images/get-gradle-url.sh
Executable file
@@ -0,0 +1,5 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
VERSION="8.3"
|
||||
echo "https://services.gradle.org/distributions/gradle-$VERSION-bin.zip"
|
||||
@@ -9,7 +9,7 @@ export ARCH=$(uname -m)
|
||||
|
||||
export DEBIAN_FRONTEND=noninteractive
|
||||
apt-get update
|
||||
apt-get install --no-install-recommends -y tzdata ca-certificates net-tools libxml2-utils git curl libudev1 libxml2-utils iptables iproute2 jq unzip build-essential libz-dev libfreetype-dev nano
|
||||
apt-get install --no-install-recommends -y tzdata ca-certificates net-tools libxml2-utils git curl libudev1 libxml2-utils iptables iproute2 jq unzip build-essential libz-dev libfreetype-dev nano libarchive-tools
|
||||
ln -fs /usr/share/zoneinfo/UTC /etc/localtime
|
||||
dpkg-reconfigure --frontend noninteractive tzdata
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
@@ -51,7 +51,12 @@ curl --location $DOCKER_COMPOSE_URL > /opt/docker-compose/bin/docker-compose
|
||||
chmod +x /opt/docker-compose/bin/docker-compose
|
||||
|
||||
###########################################################
|
||||
# GRADLE ENTERPRISE
|
||||
# GRADLE
|
||||
###########################################################
|
||||
GRADLE_URL=$( /get-gradle-url.sh )
|
||||
mkdir -p /opt/gradle
|
||||
cd /opt/gradle
|
||||
curl -L $GRADLE_URL | bsdtar --strip-components=1 -xvf-
|
||||
chmod +x /opt/gradle/bin/gradle
|
||||
mkdir ~/.gradle
|
||||
echo 'systemProp.user.name=concourse' > ~/.gradle/gradle.properties
|
||||
echo 'systemProp.user.name=concourse' > ~/.gradle/gradle.properties
|
||||
|
||||
Reference in New Issue
Block a user