Skip to content

Commit

Permalink
Fr release and AL2 supported versions update
Browse files Browse the repository at this point in the history
  • Loading branch information
elifaslan1 committed Mar 25, 2024
1 parent af6dfe5 commit c047e12
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions bin/update-dockerfiles.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ SED="sed -i"

sed --version 2>/dev/null || SED="sed -i.bkp"

LTS_VERSIONS=("8" "11" "17" "21")
FR_VERSIONS=("22")

usage() {
echo "usage: update-dockerfiles.sh [--help]"
echo ""
Expand Down Expand Up @@ -56,12 +53,17 @@ update_generic_linux() {
if [[ -f ./${MAJOR_RELEASE}/jdk/al2-generic/Dockerfile ]]; then
${SED} "s/ARG version=.*/ARG version=${jdk_version}.${jdk_build}-${corretto_version}/g" ./${MAJOR_RELEASE}/jdk/al2-generic/Dockerfile
fi
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
if [[ -f ./${MAJOR_RELEASE}/jdk/al2023-generic/Dockerfile ]]; then
${SED} "s/ARG version=.*/ARG version=${jdk_version}.${jdk_build}-${corretto_version}/g" ./${MAJOR_RELEASE}/jdk/al2023-generic/Dockerfile
fi
if [[ -f ./${MAJOR_RELEASE}/headful/al2023-generic/Dockerfile ]]; then
${SED} "s/ARG version=.*/ARG version=${jdk_version}.${jdk_build}-${corretto_version}/g" ./${MAJOR_RELEASE}/headful/al2023/Dockerfile
fi
if [[ -f ./${MAJOR_RELEASE}/headless/al2023-generic/Dockerfile ]]; then
${SED} "s/ARG version=.*/ARG version=${jdk_version}.${jdk_build}-${corretto_version}/g" ./${MAJOR_RELEASE}/headless/al2023/Dockerfile
fi


${SED} "s/ARG version=.*/ARG version=${jdk_version}.${jdk_build}-${corretto_version}/g" ./${MAJOR_RELEASE}/jdk/debian/Dockerfile

ADDITIONAL_IMAGES="jdk jre headful headless"
Expand Down

0 comments on commit c047e12

Please sign in to comment.