Skip to content

Commit

Permalink
chore: update Temurin/SLES installation instructions (#2353)
Browse files Browse the repository at this point in the history
  • Loading branch information
burkedavison authored Oct 4, 2023
1 parent c57e981 commit 9ce7438
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
12 changes: 10 additions & 2 deletions temurin-install-testing/startup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,15 @@ EOM
}

function prepare_installer_sles {
# [START centos_major_version]
eval "$(grep VERSION_ID /etc/os-release)"
OLD_IFS=$IFS
IFS='.'
read -ra split_version <<<"$VERSION_ID"
IFS=$OLD_IFS
MAJOR_VERSION=$split_version
# [END centos_major_version]

# [START sles_adoptium_key]
sudo mkdir -p /etc/zypp/keyrings
sudo wget -O - https://packages.adoptium.net/artifactory/api/gpg/key/public |
Expand All @@ -67,8 +76,7 @@ function prepare_installer_sles {
# [START sles_adoptium_key]

# [START sles_adoptium_repo]
eval "$(grep VERSION_ID /etc/os-release)"
sudo zypper ar -f "https://packages.adoptium.net/artifactory/rpm/opensuse/$VERSION_ID/$(uname -m)" adoptium
sudo zypper ar -f "https://packages.adoptium.net/artifactory/rpm/sles/$MAJOR_VERSION/$(uname -m)" adoptium
# [START sles_adoptium_repo]

export INSTALLER="zypper"
Expand Down
2 changes: 2 additions & 0 deletions temurin-install-testing/test-all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,10 @@ wait
BUCKET_FOLDER=$(terraform output --raw bucket_folder)
terraform apply -auto-approve
terraform apply -var="enable_linux=true" -var="bucket_folder=$BUCKET_FOLDER" -auto-approve
# For single invocations: terraform apply -var="enable_linux=true" -auto-approve
wait
terraform apply -auto-approve
terraform apply -var="enable_windows=true" -var="bucket_folder=$BUCKET_FOLDER" -auto-approve
# For single invocations: terraform apply -var="enable_windows=true" -auto-approve
wait
terraform apply -auto-approve

0 comments on commit 9ce7438

Please sign in to comment.