-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #60 from CSchank/master
update container to handle 1.19
- Loading branch information
Showing
2 changed files
with
18 additions
and
1 deletion.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,19 @@ | |
# (c) 2021 nimmis <[email protected]> | ||
# | ||
########################################################### | ||
function set_java_18 () { | ||
if ! [ -d /usr/lib/jvm/jdk-18* ]; then | ||
echo "Downloading JDK 1.18" | ||
curl -L https://github.com/adoptium/temurin18-binaries/releases/download/jdk-18.0.1%2B10/OpenJDK18U-jdk_x64_linux_hotspot_18.0.1_10.tar.gz | tar xz -C /usr/lib/jvm | ||
fi | ||
|
||
echo "set java version to 18" | ||
rm -f /usr/lib/jvm/default-jvm | ||
ln -s /usr/lib/jvm/jdk-18* /usr/lib/jvm/default-jvm | ||
|
||
} | ||
|
||
|
||
function set_java_17 () { | ||
if ! [ -d /usr/lib/jvm/jdk-17* ]; then | ||
echo "Downloading JDK 1.17" | ||
|
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