Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
grouper-appliance/additional_container_files/bin/install_oracle_jdk.sh
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
executable file
17 lines (13 sloc)
1.04 KB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Override this file with a version with the following commented out in order to use Oracle JDK. | |
# 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=8u152 | |
BUILD_VERSION=b16 | |
JAVA_BUNDLE_ID=aa0333dd3019491ca4f6ddbe78cdb6d0 | |
# Install JAVA stuff | |
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 |