From 975880abdbba376e75f06a5bd6bf0bb7f0a2a885 Mon Sep 17 00:00:00 2001 From: Roel Spilker Date: Mon, 30 Oct 2017 23:25:25 +0100 Subject: use provisioning in docker to enable composition of versions --- docker/provision/jdk/java-1.8.sh | 6 ++++++ docker/provision/jdk/java-1.9.sh | 4 ++++ 2 files changed, 10 insertions(+) create mode 100644 docker/provision/jdk/java-1.8.sh create mode 100644 docker/provision/jdk/java-1.9.sh (limited to 'docker/provision/jdk') 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 -- cgit