-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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 amazoncorretto #10787
Update amazoncorretto #10787
Conversation
Diff for cafc58c:diff --git a/_bashbrew-cat b/_bashbrew-cat
index 893f047..c63834d 100644
--- a/_bashbrew-cat
+++ b/_bashbrew-cat
@@ -1,6 +1,6 @@
Maintainers: Amazon Corretto Team <corretto-team@amazon.com> (@corretto), Dan Lutker <lutkerd@amazon.com> (@lutkerd), Ben Taylor <benty@amazon.com> (@benty-amzn), Clive Verghese <verghese@amazon.com> (@cliveverghese)
GitRepo: https://github.com/corretto/corretto-docker.git
-GitCommit: 9dbaca385d16c9f6ff9b0eb5b71eccdeb19909f3
+GitCommit: 395b88a4404de1f027656d7e2d1b1a611116d8d8
Tags: 8, 8u302, 8u302-al2, 8-al2-full, 8-al2-jdk, latest
Architectures: amd64, arm64v8
diff --git a/amazoncorretto_11-al2-full/Dockerfile b/amazoncorretto_11-al2-full/Dockerfile
index fd7be2b..dd7f53e 100644
--- a/amazoncorretto_11-al2-full/Dockerfile
+++ b/amazoncorretto_11-al2-full/Dockerfile
@@ -1,5 +1,7 @@
FROM amazonlinux:2
+RUN yum -y upgrade --security
+
ARG version=11.0.12.7-1
# In addition to installing the Amazon corretto, we also install
# fontconfig. The folks who manage the docker hub's
diff --git a/amazoncorretto_11-alpine-jdk/Dockerfile b/amazoncorretto_11-alpine-jdk/Dockerfile
index d7ee58a..40aa31b 100644
--- a/amazoncorretto_11-alpine-jdk/Dockerfile
+++ b/amazoncorretto_11-alpine-jdk/Dockerfile
@@ -2,6 +2,8 @@ FROM alpine:3.12
ARG version=11.0.12.7.1
+RUN apk -U upgrade
+
# Please note that the THIRD-PARTY-LICENSE could be out of date if the base image has been updated recently.
# The Corretto team will update this file but you may see a few days' delay.
RUN wget -O /THIRD-PARTY-LICENSES-20200824.tar.gz https://corretto.aws/downloads/resources/licenses/alpine/THIRD-PARTY-LICENSES-20200824.tar.gz && \
diff --git a/amazoncorretto_16-al2-full/Dockerfile b/amazoncorretto_16-al2-full/Dockerfile
index 2b4286c..18d2f22 100644
--- a/amazoncorretto_16-al2-full/Dockerfile
+++ b/amazoncorretto_16-al2-full/Dockerfile
@@ -1,6 +1,9 @@
FROM amazonlinux:2
ARG version=16.0.2.7-1
+
+RUN yum -y upgrade --security
+
# In addition to installing the Amazon corretto, we also install
# fontconfig. The folks who manage the docker hub's
# official image library have found that font management
diff --git a/amazoncorretto_16-alpine-jdk/Dockerfile b/amazoncorretto_16-alpine-jdk/Dockerfile
index e88586f..90431a7 100644
--- a/amazoncorretto_16-alpine-jdk/Dockerfile
+++ b/amazoncorretto_16-alpine-jdk/Dockerfile
@@ -2,6 +2,8 @@ FROM alpine:3.12
ARG version=16.0.2.7.1
+RUN apk -U upgrade
+
# Please note that the THIRD-PARTY-LICENSE could be out of date if the base image has been updated recently.
# The Corretto team will update this file but you may see a few days' delay.
RUN wget -O /THIRD-PARTY-LICENSES-20200824.tar.gz https://corretto.aws/downloads/resources/licenses/alpine/THIRD-PARTY-LICENSES-20200824.tar.gz && \
diff --git a/amazoncorretto_8-alpine-jdk/Dockerfile b/amazoncorretto_8-alpine-jdk/Dockerfile
index fd26c29..e0c932e 100644
--- a/amazoncorretto_8-alpine-jdk/Dockerfile
+++ b/amazoncorretto_8-alpine-jdk/Dockerfile
@@ -2,6 +2,8 @@ FROM alpine:3.12
ARG version=8.302.08.1
+RUN apk -U upgrade
+
# Please note that the THIRD-PARTY-LICENSE could be out of date if the base image has been updated recently.
# The Corretto team will update this file but you may see a few days' delay.
RUN wget -O /THIRD-PARTY-LICENSES-20200824.tar.gz https://corretto.aws/downloads/resources/licenses/alpine/THIRD-PARTY-LICENSES-20200824.tar.gz && \
diff --git a/amazoncorretto_8u302-alpine-jre/Dockerfile b/amazoncorretto_8u302-alpine-jre/Dockerfile
index 9cc59b6..0d3b764 100644
--- a/amazoncorretto_8u302-alpine-jre/Dockerfile
+++ b/amazoncorretto_8u302-alpine-jre/Dockerfile
@@ -2,6 +2,8 @@ FROM alpine:3.12
ARG version=8.302.08.1
+RUN apk -U upgrade
+
# Please note that the THIRD-PARTY-LICENSE could be out of date if the base image has been updated recently.
# The Corretto team will update this file but you may see a few days' delay.
RUN wget -O /THIRD-PARTY-LICENSES-20200824.tar.gz https://corretto.aws/downloads/resources/licenses/alpine/THIRD-PARTY-LICENSES-20200824.tar.gz && \
diff --git a/amazoncorretto_latest/Dockerfile b/amazoncorretto_latest/Dockerfile
index bcbf323..1352389 100644
--- a/amazoncorretto_latest/Dockerfile
+++ b/amazoncorretto_latest/Dockerfile
@@ -1,6 +1,9 @@
FROM amazonlinux:2
ARG version=1.8.0_302.b08-1
+
+RUN yum -y upgrade --security
+
# In addition to installing the Amazon corretto, we also install
# fontconfig. The folks who manage the docker hub's
# official image library have found that font management
|
One of the reasons that the best practices said to not to do In the beginning of docker containers and images, it was true that some packages could not be updated without running with "The maintainers of the base image should install security updates" is actually what the Official Images are supposed to provide:
When
Official Images FAQ:
|
Your points all make sense, and we appreciate the feedback. In this case, we've added the updates specifically to address a CVE in When the maintenance schedule of an official base image does not meet the needs of another official image, what is the best practice? |
See discussion on docker-library/official-images#10787 This reverts commit 395b88a.
We've reverted this change to corretto-docker while we investigate other options. |
Corretto dockerfiles were updated to run updates at build time - see corretto-docker#67