File tree 3 files changed +15
-4
lines changed
3 files changed +15
-4
lines changed Original file line number Diff line number Diff line change @@ -5,10 +5,11 @@ ADD get-crac-jdk-url.sh /get-crac-jdk-url.sh
5
5
ADD get-docker-url.sh /get-docker-url.sh
6
6
ADD get-ytt-url.sh /get-ytt-url.sh
7
7
ADD get-docker-compose-url.sh /get-docker-compose-url.sh
8
+ ADD get-gradle-url.sh /get-gradle-url.sh
8
9
RUN ./setup.sh
9
10
10
11
ENV JAVA_HOME /opt/crac-jdk
11
- ENV PATH $JAVA_HOME/bin:/opt/ytt/bin:/opt/docker-compose/bin:$PATH
12
+ ENV PATH $JAVA_HOME/bin:/opt/ytt/bin:/opt/docker-compose/bin:/opt/gradle/bin: $PATH
12
13
ENV GRADLE_OPTS -Dorg.gradle.project.buildDir=/tmp/gradle-build
13
14
RUN git config --global --add safe.directory /workspace
14
15
ADD docker-lib.sh /docker-lib.sh
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+ set -e
3
+
4
+ VERSION=" 8.3"
5
+ echo " https://services.gradle.org/distributions/gradle-$VERSION -bin.zip"
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ export ARCH=$(uname -m)
9
9
10
10
export DEBIAN_FRONTEND=noninteractive
11
11
apt-get update
12
- 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
12
+ 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
13
13
ln -fs /usr/share/zoneinfo/UTC /etc/localtime
14
14
dpkg-reconfigure --frontend noninteractive tzdata
15
15
rm -rf /var/lib/apt/lists/*
@@ -51,7 +51,12 @@ curl --location $DOCKER_COMPOSE_URL > /opt/docker-compose/bin/docker-compose
51
51
chmod +x /opt/docker-compose/bin/docker-compose
52
52
53
53
# ##########################################################
54
- # GRADLE ENTERPRISE
54
+ # GRADLE
55
55
# ##########################################################
56
+ GRADLE_URL=$( /get-gradle-url.sh )
57
+ mkdir -p /opt/gradle
58
+ cd /opt/gradle
59
+ curl -L $GRADLE_URL | bsdtar --strip-components=1 -xvf-
60
+ chmod +x /opt/gradle/bin/gradle
56
61
mkdir ~ /.gradle
57
- echo ' systemProp.user.name=concourse' > ~ /.gradle/gradle.properties
62
+ echo ' systemProp.user.name=concourse' > ~ /.gradle/gradle.properties
You can’t perform that action at this time.
0 commit comments