From 5e89b9a9a784dbc0ea3e24e9725eda1bb6820d86 Mon Sep 17 00:00:00 2001 From: Phil Kunz Date: Fri, 30 Jun 2017 16:18:17 +0200 Subject: [PATCH] add java version --- Dockerfile | 3 ++- Dockerfile_mongo | 2 ++ Dockerfile_npmci | 2 ++ Dockerfile_npmci-java | 23 +++++++++++++++++++++++ 4 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 Dockerfile_npmci-java diff --git a/Dockerfile b/Dockerfile index 364bf77..e1498cf 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,8 @@ FROM ubuntu:latest +MAINTAINER Lossless GmbH # important environment variables -ENV NODE_VERSION_LTS="6.10.0" NODE_VERSION_STABLE="7.7.2" NVM_DIR="/usr/local/nvm" +ENV NODE_VERSION_LTS="6.10.0" NODE_VERSION_STABLE="8.1.3" NVM_DIR="/usr/local/nvm" # Set debconf to run non-interactively and install packages RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections \ diff --git a/Dockerfile_mongo b/Dockerfile_mongo index a8a4ebf..a0699db 100644 --- a/Dockerfile_mongo +++ b/Dockerfile_mongo @@ -1,4 +1,6 @@ FROM hosttoday/ht-docker-node:stable +MAINTAINER Lossless GmbH + RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv EA312927 \ && echo "deb http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.2 multiverse" | tee /etc/apt/sources.list.d/mongodb-org-3.2.list \ && apt-get update \ diff --git a/Dockerfile_npmci b/Dockerfile_npmci index c00f527..fe7a616 100644 --- a/Dockerfile_npmci +++ b/Dockerfile_npmci @@ -1,2 +1,4 @@ FROM hosttoday/ht-docker-node:stable +MAINTAINER Lossless GmbH + RUN npm install -g npmci \ No newline at end of file diff --git a/Dockerfile_npmci-java b/Dockerfile_npmci-java new file mode 100644 index 0000000..36cb20a --- /dev/null +++ b/Dockerfile_npmci-java @@ -0,0 +1,23 @@ +FROM hosttoday/ht-docker-node:npmci +MAINTAINER Lossless GmbH + +# Java Version +ENV JAVA_VERSION=9 \ + JAVA_UPDATE=ea \ + JAVA_BUILD=168 \ + JAVA_HOME=/usr/lib/jvm/current-java + +# JDK: http://www.java.net/download/java/jdk9/archive/145/binaries/jdk-9-ea+145_linux-x64_bin.tar.gz +# JRE: http://www.java.net/download/java/jdk9/archive/145/binaries/jre-9-ea+145_linux-x64_bin.tar.gz + +# JRE +RUN cd /tmp && wget --header "Cookie: oraclelicense=accept-securebackup-cookie;" \ + "http://www.java.net/download/java/jdk9/archive/${JAVA_BUILD}/binaries/jre-${JAVA_VERSION}-${JAVA_UPDATE}+${JAVA_BUILD}_linux-x64_bin.tar.gz" && \ + tar xzf "jre-${JAVA_VERSION}-${JAVA_UPDATE}+${JAVA_BUILD}_linux-x64_bin.tar.gz" && \ + mkdir -p /usr/lib/jvm && mv "/tmp/jre-${JAVA_VERSION}" "/usr/lib/jvm/java-${JAVA_VERSION}-oracle" && \ + ln -s "java-${JAVA_VERSION}-oracle" $JAVA_HOME && \ + ln -s $JAVA_HOME/bin/java /usr/bin/java && \ + rm -rf $JAVA_HOME/*.txt && \ + rm -rf $JAVA_HOME/*.html && \ + apk del wget ca-certificates curl && \ + rm /tmp/* /var/cache/apk/* \ No newline at end of file