add java version
This commit is contained in:
parent
a83cc999c4
commit
5e89b9a9a7
@ -1,7 +1,8 @@
|
|||||||
FROM ubuntu:latest
|
FROM ubuntu:latest
|
||||||
|
MAINTAINER Lossless GmbH <office@lossless.com>
|
||||||
|
|
||||||
# important environment variables
|
# 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
|
# Set debconf to run non-interactively and install packages
|
||||||
RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections \
|
RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections \
|
||||||
|
@ -1,4 +1,6 @@
|
|||||||
FROM hosttoday/ht-docker-node:stable
|
FROM hosttoday/ht-docker-node:stable
|
||||||
|
MAINTAINER Lossless GmbH <office@lossless.com>
|
||||||
|
|
||||||
RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv EA312927 \
|
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 \
|
&& 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 \
|
&& apt-get update \
|
||||||
|
@ -1,2 +1,4 @@
|
|||||||
FROM hosttoday/ht-docker-node:stable
|
FROM hosttoday/ht-docker-node:stable
|
||||||
|
MAINTAINER Lossless GmbH <office@lossless.com>
|
||||||
|
|
||||||
RUN npm install -g npmci
|
RUN npm install -g npmci
|
23
Dockerfile_npmci-java
Normal file
23
Dockerfile_npmci-java
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
FROM hosttoday/ht-docker-node:npmci
|
||||||
|
MAINTAINER Lossless GmbH <office@lossless.com>
|
||||||
|
|
||||||
|
# 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/*
|
Loading…
Reference in New Issue
Block a user