New overlay bundle - JDK from AdoptOpenJDK.
This commit is contained in:
parent
cfd789ac37
commit
77a108ee39
20
src/minimal_overlay/bundles/adopt_openjdk/.config
Normal file
20
src/minimal_overlay/bundles/adopt_openjdk/.config
Normal 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
|
||||
|
19
src/minimal_overlay/bundles/adopt_openjdk/01_get.sh
Executable file
19
src/minimal_overlay/bundles/adopt_openjdk/01_get.sh
Executable 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
|
||||
|
27
src/minimal_overlay/bundles/adopt_openjdk/02_install.sh
Executable file
27
src/minimal_overlay/bundles/adopt_openjdk/02_install.sh
Executable 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
|
10
src/minimal_overlay/bundles/adopt_openjdk/bundle.sh
Executable file
10
src/minimal_overlay/bundles/adopt_openjdk/bundle.sh
Executable file
@ -0,0 +1,10 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
|
||||
. ../../common.sh
|
||||
|
||||
./01_get.sh
|
||||
./02_install.sh
|
||||
|
||||
cd $SRC_DIR
|
2
src/minimal_overlay/bundles/adopt_openjdk/bundle_deps
Normal file
2
src/minimal_overlay/bundles/adopt_openjdk/bundle_deps
Normal file
@ -0,0 +1,2 @@
|
||||
glibc_full
|
||||
zlib
|
Loading…
x
Reference in New Issue
Block a user