diff --git a/.github/workflows/blog-validator.yml b/.github/workflows/blog-validator.yml index 54b7a41dd..b946c3326 100644 --- a/.github/workflows/blog-validator.yml +++ b/.github/workflows/blog-validator.yml @@ -30,7 +30,7 @@ jobs: # shellcheck disable=2043 for added_file in ${{ steps.files.outputs.added }}; do if [[ ${added_file} =~ ^content/blog.*.md ]]; then - blog_date=$(grep 'date:' "${added_file}" | sed -n -e 's/^.*date: //p' | tr -d '"') + blog_date=$(grep '^date:' "${added_file}" | sed -n -e 's/^.*date: //p' | tr -d '"') # Return difference in days between today and blog date diff=$(( ($(date +%s) - $(date --date "${blog_date}" +%s)) / (60*60*24) )) if [[ ${diff} -gt 0 ]]; then @@ -53,6 +53,8 @@ jobs: "security" "announcement" "release-notes" + "docker" + "containers" ) invalid_tags=() IFS=", " read -r -a tag_array <<< "$tags" diff --git a/content/blog/removal-of-centos7-eclipse-temurin-images/index.md b/content/blog/removal-of-centos7-eclipse-temurin-images/index.md new file mode 100644 index 000000000..05eb52375 --- /dev/null +++ b/content/blog/removal-of-centos7-eclipse-temurin-images/index.md @@ -0,0 +1,66 @@ +--- +title: "Important Update: Removal of CentOS 7 Eclipse Temurin Images" +date: "2024-07-04T12:00:00+00:00" +author: georgeadams +description: We would like to inform our users that as of the next PSU release on July 16th, Eclipse Temurin images with the CentOS 7 base will be removed. +tags: + - "temurin" + - "docker" + - "containers" +--- + +We would like to inform our users that as of July 16th, Eclipse Temurin images with the CentOS 7 base will be removed. This decision comes in light of CentOS 7 reaching its End of Life (EOL) on June 30th, 2024. No further updates or support will be provided for CentOS 7, and to ensure the continued security and stability of your applications, we recommend migrating to the UBI9-minimal images. + +## Key Changes + +- **CentOS 7 EOL**: As CentOS 7 has reached its EOL, it will no longer receive updates or support. +- **Removal Date**: CentOS 7 based Eclipse Temurin images will be removed in the PSU release on July 16th. +- **New Base Image**: All users should migrate to the ubi9-minimal images. + +### Migration Guide + +To assist with this transition, here is a simple migration guide. If you are currently using an image like `17-jdk-centos7`, you should update your Dockerfile to use `17-jdk-ubi9-minimal`. + +#### Example Migration + +**Old Dockerfile using CentOS 7:** + +```Dockerfile +FROM eclipse-temurin:17-jdk-centos7 + +# Your application setup here +``` + +**New Dockerfile using UBI9-minimal:** + +```Dockerfile +FROM eclipse-temurin:17-jdk-ubi9-minimal + +# Your application setup here +``` + +### Important Note on Package Manager + +When migrating to UBI9-minimal, note that the package manager differs from CentOS 7. Instead of yum, you will need to use microdnf. While we encourage the transition to UBI9-minimal, it is important to note that there may be fewer packages available in the UBI9-minimal repositories compared to CentOS 7. This could potentially impact the migration of some applications. We recommend reviewing your application's dependencies and verifying the availability of required packages in UBI9-minimal ahead of the migration. + +#### Example Package Installation + +**Using yum in CentOS 7:** + +```Dockerfile +RUN yum install -y some-package +``` + +**Using microdnf in UBI9-minimal:** + +```Dockerfile +RUN microdnf install -y some-package +``` + +### Resources + +For more details on the End of Life for CentOS 7, you can refer to the official announcement by Red Hat: [CentOS Linux EOL](https://www.redhat.com/en/topics/linux/centos-linux-eol). + +If you have any questions or need further assistance with the migration, please create a [GitHub issue](https://github.com/adoptium/containers/issues/new). + +Thank you for your understanding and cooperation in ensuring a smooth transition.