Created
May 2, 2017 22:04
-
-
Save gustavohenrique/3789a6f0c36bdca4e765655d88e8c15f to your computer and use it in GitHub Desktop.
Installing IBM JDK 1.8 on Linux for Jazz RTC
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
ESUM="19536d5624deae45d69431cec284e30104a5f67830e480be3a5901f18698fd1b" | |
BASE_URL="https://public.dhe.ibm.com/ibmdl/export/pub/systems/cloud/runtimes/java/meta/" | |
YML_FILE="sdk/linux/x86_64/index.yml" | |
JAVA_VERSION=1.8.0_sr4fp2 | |
wget -q -U UA_IBM_JAVA_Docker -O /tmp/index.yml $BASE_URL/$YML_FILE | |
JAVA_URL=$(cat /tmp/index.yml | sed -n '/'$JAVA_VERSION'/{n;p}' | sed -n 's/\s*uri:\s//p' | tr -d '\r') | |
wget -q -U UA_IBM_JAVA_Docker -O /tmp/ibm-java.bin $JAVA_URL | |
echo "$ESUM /tmp/ibm-java.bin" | sha256sum -c - | |
echo "INSTALLER_UI=silent" > /tmp/response.properties | |
echo "USER_INSTALL_DIR=/opt/ibm/java" >> /tmp/response.properties | |
echo "LICENSE_ACCEPTED=TRUE" >> /tmp/response.properties | |
mkdir -p /opt/ibm | |
chmod +x /tmp/ibm-java.bin | |
/tmp/ibm-java.bin -i silent -f /tmp/response.properties |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment