Skip to content

Commit

Permalink
uses adoptium jdk 17 jre
Browse files Browse the repository at this point in the history
  • Loading branch information
joestr committed Jan 12, 2023
1 parent 0dc091e commit 3ad87ab
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/main/resources/linux_start_go_agent.template.flth
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
set -e

agent_dir="/var/lib/go-agent"
default_jre_dir="/var/lib/jdk/jdk-11.0.17"
default_jre_dir="/var/lib/jdk/jdk-17.0.5+8-jre"

if [ ! -x "$(command -v java)" ]; then
export GO_JAVA_HOME=$default_jre_dir
Expand Down
6 changes: 3 additions & 3 deletions src/main/resources/post_provision_script.template.ftlh
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@

set -e

java_download_url="https://download.bell-sw.com/java/11.0.17+7/bellsoft-jdk11.0.17+7-linux-amd64.tar.gz"
java_download_url="https://api.adoptium.net/v3/binary/version/jdk-17.0.5%2B8/linux/x64/jre/hotspot/normal/eclipse?project=jdk"

reset_dir () {
rm -rf $1
mkdir -p $1
}

install_java () {
wget $java_download_url
wget $java_download_url --output-document=jre17.tar.gz
reset_dir /var/lib/jdk
tar -xvf bellsoft-jdk11.0.17+7-linux-amd64.tar.gz -C /var/lib/jdk/
tar -xvf jre17.tar.gz -C /var/lib/jdk/
}

echo "Setting up unzip utility"
Expand Down

0 comments on commit 3ad87ab

Please sign in to comment.