-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update al2 image checks for 22 and remove al2023 from generic linux #200
Changes from 2 commits
229b948
5d085ee
af6dfe5
c047e12
f9079c9
9456a85
1b504e9
c06a254
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,8 @@ SED="sed -i" | |
sed --version 2>/dev/null || SED="sed -i.bkp" | ||
|
||
LTS_VERSIONS=("8" "11" "17" "21") | ||
AL2_VERSIONS=("8" "11" "17" "21") | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can you rename this to AL2_GENERIC_LINUX_VERSIONS? Other option would be to remove this and change the check on line 57 to see if the file exists, like we do for al2023-generic. |
||
FR_VERSIONS=("22") | ||
|
||
usage() { | ||
echo "usage: update-dockerfiles.sh [--help]" | ||
|
@@ -52,13 +54,15 @@ update_generic_linux() { | |
jdk_version=$(echo ${CORRETTO_VERSION} | cut -d'.' -f1-3) | ||
jdk_build=$(echo ${CORRETTO_VERSION} | cut -d'.' -f4) | ||
corretto_version=$(echo ${CORRETTO_VERSION} | cut -d'.' -f5) | ||
${SED} "s/ARG version=.*/ARG version=${jdk_version}.${jdk_build}-${corretto_version}/g" ./${MAJOR_RELEASE}/jdk/al2-generic/Dockerfile | ||
if [[ "${AL2_VERSIONS[*]}" =~ ${MAJOR_RELEASE} ]]; then | ||
${SED} "s/ARG version=.*/ARG version=${jdk_version}.${jdk_build}-${corretto_version}/g" ./${MAJOR_RELEASE}/jdk/al2-generic/Dockerfile | ||
fi | ||
if [[ -f ./${MAJOR_RELEASE}/jdk/al2023-generic/Dockerfile ]] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We can remove this as we don't think al2023 with generic linux packages anymore. |
||
then | ||
${SED} "s/ARG version=.*/ARG version=${jdk_version}.${jdk_build}-${corretto_version}/g" ./${MAJOR_RELEASE}/jdk/al2023-generic/Dockerfile | ||
fi | ||
|
||
if [[ "${LTS_VERSIONS[*]}" =~ ${MAJOR_RELEASE} ]]; then | ||
if [[ "${LTS_VERSIONS[*]}" =~ ${MAJOR_RELEASE} || "${FR_VERSIONS[*]}" =~ ${MAJOR_RELEASE} ]]; then | ||
${SED} "s/ARG version=.*/ARG version=${jdk_version}.${jdk_build}-${corretto_version}/g" ./${MAJOR_RELEASE}/jdk/al2023/Dockerfile | ||
${SED} "s/ARG version=.*/ARG version=${jdk_version}.${jdk_build}-${corretto_version}/g" ./${MAJOR_RELEASE}/headful/al2023/Dockerfile | ||
${SED} "s/ARG version=.*/ARG version=${jdk_version}.${jdk_build}-${corretto_version}/g" ./${MAJOR_RELEASE}/headless/al2023/Dockerfile | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Original intention of this was to have a AL2023 image with the generic linux package, which we don't need anymore since we have the native packages.