aboutsummaryrefslogtreecommitdiff
path: root/docker/provision/jdk
diff options
context:
space:
mode:
authorRoel Spilker <r.spilker@gmail.com>2017-10-30 23:25:25 +0100
committerRoel Spilker <r.spilker@gmail.com>2017-10-30 23:25:25 +0100
commit975880abdbba376e75f06a5bd6bf0bb7f0a2a885 (patch)
tree6e71a61eb9302b40705940aa47e6ae30722c8a2f /docker/provision/jdk
parentc714a3bbca015ddd639b242323e20928980724e3 (diff)
downloadlombok-975880abdbba376e75f06a5bd6bf0bb7f0a2a885.tar.gz
lombok-975880abdbba376e75f06a5bd6bf0bb7f0a2a885.tar.bz2
lombok-975880abdbba376e75f06a5bd6bf0bb7f0a2a885.zip
use provisioning in docker to enable composition of versions
Diffstat (limited to 'docker/provision/jdk')
-rw-r--r--docker/provision/jdk/java-1.8.sh6
-rw-r--r--docker/provision/jdk/java-1.9.sh4
2 files changed, 10 insertions, 0 deletions
diff --git a/docker/provision/jdk/java-1.8.sh b/docker/provision/jdk/java-1.8.sh
new file mode 100644
index 00000000..44795c6c
--- /dev/null
+++ b/docker/provision/jdk/java-1.8.sh
@@ -0,0 +1,6 @@
+apt-get update && apt-get install -y software-properties-common
+echo oracle-java8-installer shared/accepted-oracle-license-v1-1 select true | debconf-set-selections
+add-apt-repository -y ppa:webupd8team/java
+apt-get update && apt-get install -y oracle-java8-installer
+
+mv /usr/lib/jvm/java-8-oracle /opt/jdk
diff --git a/docker/provision/jdk/java-1.9.sh b/docker/provision/jdk/java-1.9.sh
new file mode 100644
index 00000000..2023ae39
--- /dev/null
+++ b/docker/provision/jdk/java-1.9.sh
@@ -0,0 +1,4 @@
+apt-get update && apt-get install -y wget
+wget --header "Cookie: oraclelicense=accept-securebackup-cookie" http://download.oracle.com/otn-pub/java/jdk/9.0.1+11/jdk-9.0.1_linux-x64_bin.tar.gz -O jdk.tar.gz
+tar -xzf jdk.tar.gz -C /opt/
+mv /opt/jdk-9.0.1 /opt/jdk