New overlay bundle - JDK from AdoptOpenJDK.

This commit is contained in:
Ivan Davidov 2019-11-02 21:53:41 +02:00
parent cfd789ac37
commit 77a108ee39
5 changed files with 78 additions and 0 deletions

View File

@ -0,0 +1,20 @@
# You can find the latest AdoptOpenJDK archives here:
#
# https://adoptopenjdk.net
#
# JVM engine. Possible options are:
#
# * HOTSPOT
# * OPENJ9
#
JVM_ENGINE=HOTSPOT
# HotSpot
#
ADOPT_OPENJDK_HOTSPOT_URL=https://github.com/AdoptOpenJDK/openjdk11-binaries/releases/download/jdk-11.0.5%2B10/OpenJDK11U-jdk_x64_linux_hotspot_11.0.5_10.tar.gz
# OpenJ9
#
ADOPT_OPENJDK_OPENJ9_URL=https://github.com/AdoptOpenJDK/openjdk11-binaries/releases/download/jdk-11.0.5%2B10_openj9-0.17.0/OpenJDK11U-jdk_x64_linux_openj9_11.0.5_10_openj9-0.17.0.tar.gz

View File

@ -0,0 +1,19 @@
#!/bin/sh
set -e
. ../../common.sh
# Read the configuration properties.
JVM_ENGINE=`read_property JVM_ENGINE`
DOWNLOAD_URL=`read_property ADOPT_OPENJDK_${JVM_ENGINE}_URL`
# Grab everything after the last '/' character.
ARCHIVE_FILE=${DOWNLOAD_URL##*/}
download_source $DOWNLOAD_URL $OVERLAY_SOURCE_DIR/$ARCHIVE_FILE
extract_source $OVERLAY_SOURCE_DIR/$ARCHIVE_FILE $BUNDLE_NAME
cd $SRC_DIR

View File

@ -0,0 +1,27 @@
#!/bin/sh
set -e
. ../../common.sh
cd $OVERLAY_WORK_DIR/$BUNDLE_NAME
mv `ls -d *` adoptopenjdk
rm -rf $DEST_DIR
mkdir -p $DEST_DIR/bin
mkdir -p $DEST_DIR/opt
mv adoptopenjdk $DEST_DIR/opt
cd $DEST_DIR/bin
for FILE in $(ls ../opt/adoptopenjdk/bin)
do
ln -s ../opt/adoptopenjdk/bin/$FILE $FILE
done
install_to_overlay
echo "$BUNDLE_NAME has been installed."
cd $SRC_DIR

View File

@ -0,0 +1,10 @@
#!/bin/sh
set -e
. ../../common.sh
./01_get.sh
./02_install.sh
cd $SRC_DIR

View File

@ -0,0 +1,2 @@
glibc_full
zlib