Skip to content

Commit

Permalink
Update install_oracle_jdk.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
chubing authored Jan 4, 2018
1 parent 3c7a053 commit a933cce
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions additional_container_files/bin/install_oracle_jdk.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,14 @@

# Uncomment all the following lines to download the JDK to your Shibboleth IDP image. By uncommenting these lines, you agree to the Oracle Binary Code License Agreement for Java SE (http://www.oracle.com/technetwork/java/javase/terms/license/index.html)

JAVA_VERSION=7u79
BUILD_VERSION=b15
JAVA_HOME=/usr/java/latest
ENV JAVA_VERSION=8u152
ENV BUILD_VERSION=b16
ENV JAVA_BUNDLE_ID=aa0333dd3019491ca4f6ddbe78cdb6d0

wget -nv --no-cookies --no-check-certificate --header "Cookie: oraclelicense=accept-securebackup-cookie" "http://download.oracle.com/otn-pub/java/jdk/$JAVA_VERSION-$BUILD_VERSION/jdk-$JAVA_VERSION-linux-x64.rpm" -O /tmp/jdk-7-linux-x64.rpm && \
yum -y install /tmp/jdk-7-linux-x64.rpm && \
rm -f /tmp/jdk-7-linux-x64.rpm && \
# Install JAVA stuff
RUN wget -nv --no-cookies --no-check-certificate --header "Cookie: oraclelicense=accept-securebackup-cookie" "http://download.oracle.com/otn-pub/java/jdk/$JAVA_VERSION-$BUILD_VERSION/$JAVA_BUNDLE_ID/jdk-$JAVA_VERSION-linux-x64.rpm" -O /tmp/jdk-8-linux-x64.rpm && \
yum -y install /tmp/jdk-8-linux-x64.rpm && \
rm -f /tmp/jdk-8-linux-x64.rpm && \
alternatives --install /usr/bin/java jar $JAVA_HOME/bin/java 200000 && \
alternatives --install /usr/bin/javaws javaws $JAVA_HOME/bin/javaws 200000 && \
alternatives --install /usr/bin/javac javac $JAVA_HOME/bin/javac 200000
alternatives --install /usr/bin/javac javac $JAVA_HOME/bin/javac 200000

0 comments on commit a933cce

Please sign in to comment.