diff options
author | Roel Spilker <r.spilker@gmail.com> | 2017-11-28 23:37:34 +0100 |
---|---|---|
committer | Roel Spilker <r.spilker@gmail.com> | 2017-11-28 23:37:34 +0100 |
commit | 1f7b8c3d2c5dc1afc59faaedee94abeefcffec3c (patch) | |
tree | 09edd97918d9197056757fba67a712b6b5acc284 /docker/maven/Dockerfile | |
parent | 192ce9bc16e7d49533ba6ce12fc570c2bcfab550 (diff) | |
download | lombok-1f7b8c3d2c5dc1afc59faaedee94abeefcffec3c.tar.gz lombok-1f7b8c3d2c5dc1afc59faaedee94abeefcffec3c.tar.bz2 lombok-1f7b8c3d2c5dc1afc59faaedee94abeefcffec3c.zip |
add ant Dockerfile, use jdk major version numbers instead
Diffstat (limited to 'docker/maven/Dockerfile')
-rw-r--r-- | docker/maven/Dockerfile | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/docker/maven/Dockerfile b/docker/maven/Dockerfile index ac977a7a..83f124f1 100644 --- a/docker/maven/Dockerfile +++ b/docker/maven/Dockerfile @@ -1,7 +1,7 @@ FROM ubuntu:16.04 as downloader
-ARG jdk=1.9
-ADD provision/jdk/ provision/jdk/
+ARG jdk=9
+ADD provision/jdk/java-${jdk}.sh provision/jdk/java-${jdk}.sh
RUN provision/jdk/java-${jdk}.sh
ARG maven=3.5.0
@@ -18,11 +18,13 @@ RUN update-alternatives --install /usr/bin/java java /opt/jdk/bin/java 1000 && WORKDIR workspace
ADD shared/ ./
-ADD maven/files/ ./
+
+ARG jdk=9
+ADD maven/files/jdk-${jdk} ./
+
ARG lombokjar=lombok.jar
ADD https://projectlombok.org/downloads/${lombokjar} lombok.jar
-ARG jdk
ENV JDK_VERSION=${jdk}
ENV JAVA_HOME=/opt/jdk
ENV M2_HOME=/usr/local/apache-maven/apache-maven
|