Skip to content
This repository has been archived by the owner on Jan 18, 2019. It is now read-only.

Commit

Permalink
Envs for maintaining the java updates.
Browse files Browse the repository at this point in the history
  • Loading branch information
Steffen Bleul committed Jul 15, 2015
1 parent ba62314 commit 9861f01
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,18 @@ RUN yum install -y \
zip && \
yum clean all && rm -rf /var/cache/yum/*

# this envs are maintaining java updates.
ENV JAVA_MAJOR_VERSION=8
ENV JAVA_UPDATE_VERSION=51
ENV JAVA_BUILD_NUMER=16
# install java
ENV JAVA_VERSION=1.8.0_51
ENV JAVA_TARBALL=server-jre-8u51-linux-x64.tar.gz
ENV JAVA_VERSION=1.${JAVA_MAJOR_VERSION}.0_${JAVA_UPDATE_VERSION}
ENV JAVA_TARBALL=server-jre-${JAVA_MAJOR_VERSION}u${JAVA_UPDATE_VERSION}-linux-x64.tar.gz
ENV JAVA_HOME=/opt/java/jdk${JAVA_VERSION}

RUN wget --no-check-certificate --directory-prefix=/tmp \
--header "Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com%2F; oraclelicense=accept-securebackup-cookie" \
http://download.oracle.com/otn-pub/java/jdk/8u51-b16/${JAVA_TARBALL} && \
http://download.oracle.com/otn-pub/java/jdk/${JAVA_MAJOR_VERSION}u${JAVA_UPDATE_VERSION}-b${JAVA_BUILD_NUMER}/${JAVA_TARBALL} && \
mkdir -p /opt/java && \
tar -xzf /tmp/${JAVA_TARBALL} -C /opt/java/ && \
alternatives --install /usr/bin/java java /opt/java/jdk${JAVA_VERSION}/bin/java 100 && \
Expand Down

0 comments on commit 9861f01

Please sign in to comment.