-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Corretto images using native AL2 packages
- Loading branch information
Showing
12 changed files
with
288 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,104 @@ | ||
Tags: 8, 8u302, 8u302-al2, 8-al2-full,8-al2-jdk, latest | ||
Tags: 8, 8u342, 8u342-al2, 8-al2-full, 8-al2-jdk, latest | ||
Architectures: amd64, arm64v8 | ||
Directory: 8/jdk/al2 | ||
|
||
Tags: 11, 11.0.12, 11.0.12-al2, 11-al2-jdk, 11-al2-full | ||
Tags: 8-al2-headful, 8u342-al2-headful | ||
Architectures: amd64, arm64v8 | ||
Directory: 11/jdk/al2 | ||
Directory: 8/jdk/al2-headful | ||
|
||
Tags: 8-al2-devel, 8u342-al2-devel | ||
Architectures: amd64, arm64v8 | ||
Directory: 8/jdk/al2-devel | ||
|
||
Tags: 8-alpine3.13, 8u342-alpine3.13, 8-alpine3.13-full, 8-alpine3.13-jdk | ||
Architectures: amd64 | ||
Directory: 8/jdk/alpine/3.13 | ||
|
||
Tags: 8-alpine, 8u302-alpine, 8-alpine-full, 8-alpine-jdk | ||
Tags: 8-alpine3.13-jre, 8u342-alpine3.13-jre | ||
Architectures: amd64 | ||
Directory: 8/jdk/alpine | ||
Directory: 8/jre/alpine/3.13 | ||
|
||
Tags: 8-alpine-jre, 8u302-alpine-jre | ||
Tags: 8-alpine3.14, 8u342-alpine3.14, 8-alpine3.14-full, 8-alpine3.14-jdk | ||
Architectures: amd64 | ||
Directory: 8/jre/alpine | ||
Directory: 8/jdk/alpine/3.14 | ||
|
||
Tags: 11-alpine, 11.0.12-alpine, 11-alpine-full, 11-alpine-jdk | ||
Tags: 8-alpine3.14-jre, 8u342-alpine3.14-jre | ||
Architectures: amd64 | ||
Directory: 11/jdk/alpine | ||
Directory: 8/jre/alpine/3.14 | ||
|
||
Tags: 11-alpine-jre, 11.0.12-alpine-jre | ||
Tags: 8-alpine3.15, 8u342-alpine3.15, 8-alpine3.15-full, 8-alpine3.15-jdk, 8-alpine, 8u342-alpine, 8-alpine-full, 8-alpine-jdk | ||
Architectures: amd64 | ||
Directory: 11/jre/alpine | ||
Directory: 8/jdk/alpine/3.15 | ||
|
||
Tags: 8-alpine3.15-jre, 8u342-alpine3.15-jre, 8-alpine-jre, 8u342-alpine-jre | ||
Architectures: amd64 | ||
Directory: 8/jre/alpine/3.15 | ||
|
||
Tags: 11, 11.0.16, 11.0.16-al2, 11-al2-full, 11-al2-jdk | ||
Architectures: amd64, arm64v8 | ||
Directory: 11/jdk/al2 | ||
|
||
Tags: 16, 16.0.2, 16.0.2-al2, 16-al2-jdk, 16-al2-full | ||
Tags: 11-al2-headless, 11.0.16-al2-headless | ||
Architectures: amd64, arm64v8 | ||
Directory: 16/jdk/al2 | ||
Directory: 11/jdk/al2-headless | ||
|
||
Tags: 16-slim, 16.0.2, 16.0.2-al2-slim | ||
Tags: 11-al2-devel, 11.0.16-al2-devel | ||
Architectures: amd64, arm64v8 | ||
Directory: 16/slim/al2 | ||
Directory: 11/jdk/al2-devel | ||
|
||
Tags: 11-alpine3.13, 11.0.16-alpine3.13, 11-alpine3.13-full, 11-alpine3.13-jdk | ||
Architectures: amd64 | ||
Directory: 11/jdk/alpine/3.13 | ||
|
||
Tags: 16-alpine, 16.0.2-alpine, 16-alpine-full, 16-alpine-jdk | ||
Tags: 11-alpine3.14, 11.0.16-alpine3.14, 11-alpine3.14-full, 11-alpine3.14-jdk | ||
Architectures: amd64 | ||
Directory: 16/jdk/alpine | ||
Directory: 11/jdk/alpine/3.14 | ||
|
||
Tags: 16-alpine-slim, 16.0.2-alpine-slim | ||
Tags: 11-alpine3.15, 11.0.16-alpine3.15, 11-alpine3.15-full, 11-alpine3.15-jdk, 11-alpine, 11.0.16-alpine, 11-alpine-full, 11-alpine-jdk | ||
Architectures: amd64 | ||
Directory: 16/slim/alpine | ||
Directory: 11/jdk/alpine/3.15 | ||
|
||
Tags: 17, 17.0.4, 17.0.4-al2, 17-al2-full, 17-al2-jdk | ||
Architectures: amd64, arm64v8 | ||
Directory: 17/jdk/al2 | ||
|
||
Tags: 17-al2-headless, 17.0.4-al2-headless | ||
Architectures: amd64, arm64v8 | ||
Directory: 17/jdk/al2-headless | ||
|
||
Tags: 17-al2-headful, 17.0.4-al2-headful | ||
Architectures: amd64, arm64v8 | ||
Directory: 17/jdk/al2-headful | ||
|
||
Tags: 17-al2-devel, 17.0.4-al2-devel | ||
Architectures: amd64, arm64v8 | ||
Directory: 17/jdk/al2-devel | ||
|
||
Tags: 17-alpine3.13, 17.0.4-alpine3.13, 17-alpine3.13-full, 17-alpine3.13-jdk | ||
Architectures: amd64 | ||
Directory: 17/jdk/alpine/3.13 | ||
|
||
Tags: 17-alpine3.14, 17.0.4-alpine3.14, 17-alpine3.14-full, 17-alpine3.14-jdk | ||
Architectures: amd64 | ||
Directory: 17/jdk/alpine/3.14 | ||
|
||
Tags: 17-alpine3.15, 17.0.4-alpine3.15, 17-alpine3.15-full, 17-alpine3.15-jdk, 17-alpine, 17.0.4-alpine, 17-alpine-full, 17-alpine-jdk | ||
Architectures: amd64 | ||
Directory: 17/jdk/alpine/3.15 | ||
|
||
Tags: 18, 18.0.2, 18.0.2-al2, 18-al2-full, 18-al2-jdk | ||
Architectures: amd64, arm64v8 | ||
Directory: 18/jdk/al2 | ||
|
||
Tags: 18-alpine3.13, 18.0.2-alpine3.13, 18-alpine3.13-full, 18-alpine3.13-jdk | ||
Architectures: amd64 | ||
Directory: 18/jdk/alpine/3.13 | ||
|
||
Tags: 18-alpine3.14, 18.0.2-alpine3.14, 18-alpine3.14-full, 18-alpine3.14-jdk | ||
Architectures: amd64 | ||
Directory: 18/jdk/alpine/3.14 | ||
|
||
Tags: 18-alpine3.15, 18.0.2-alpine3.15, 18-alpine3.15-full, 18-alpine3.15-jdk, 18-alpine, 18.0.2-alpine, 18-alpine-full, 18-alpine-jdk | ||
Architectures: amd64 | ||
Directory: 18/jdk/alpine/3.15 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
FROM amazonlinux:2 | ||
|
||
ARG version=11.0.16.9-1 | ||
|
||
# The logic and code related to Fingerprint is contributed by @tianon in a Github PR's Conversation | ||
# Comment = https://github.com/docker-library/official-images/pull/7459#issuecomment-592242757 | ||
# PR = https://github.com/docker-library/official-images/pull/7459 | ||
RUN set -eux \ | ||
&& yum install -y $(yum deplist java-11-amazon-corretto-headless |grep provider | grep -v log4j-cve | tr -s ' ' |cut -d ' ' -f 3 ) \ | ||
&& rpm -i --nodeps https://corretto.aws/downloads/resources/$(echo $version | tr '-' '.' |tr '_' '.' |tr -d 'b' |awk -F. '{print $2"."$4"."$5"."$6}')/java-11-amazon-corretto-headless-$version.amzn2.$(uname -m).rpm \ | ||
&& yum install -y https://corretto.aws/downloads/resources/$(echo $version | tr '-' '.' |tr '_' '.' |tr -d 'b' |awk -F. '{print $2"."$4"."$5"."$6}')/java-11-amazon-corretto-$version.amzn2.$(uname -m).rpm \ | ||
&& (find /usr/lib/jvm/java-11-amazon-corretto.$(uname -m) -name src.zip -delete || true) \ | ||
&& yum clean all | ||
|
||
ENV LANG C.UTF-8 | ||
ENV JAVA_HOME=/usr/lib/jvm/java-11-amazon-corretto |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
FROM amazonlinux:2 | ||
|
||
ARG version=11.0.16.9-1 | ||
|
||
# The logic and code related to Fingerprint is contributed by @tianon in a Github PR's Conversation | ||
# Comment = https://github.com/docker-library/official-images/pull/7459#issuecomment-592242757 | ||
# PR = https://github.com/docker-library/official-images/pull/7459 | ||
RUN set -eux \ | ||
&& yum install -y $(yum deplist java-11-amazon-corretto-headless |grep provider | grep -v log4j-cve | tr -s ' ' |cut -d ' ' -f 3 ) \ | ||
&& rpm -i --nodeps https://corretto.aws/downloads/resources/$(echo $version | tr '-' '.')/java-11-amazon-corretto-headless-$version.amzn2.$(uname -m).rpm \ | ||
&& (find /usr/lib/jvm/java-11-amazon-corretto.$(uname -m) -name src.zip -delete || true) \ | ||
&& yum clean all \ | ||
&& rm -rf /var/cache/yum | ||
|
||
ENV LANG C.UTF-8 | ||
ENV JAVA_HOME=/usr/lib/jvm/java-11-amazon-corretto |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
FROM amazonlinux:2 | ||
|
||
ARG version=17.0.4.9-1 | ||
|
||
# The logic and code related to Fingerprint is contributed by @tianon in a Github PR's Conversation | ||
# Comment = https://github.com/docker-library/official-images/pull/7459#issuecomment-592242757 | ||
# PR = https://github.com/docker-library/official-images/pull/7459 | ||
RUN set -eux \ | ||
&& yum install -y $(yum deplist java-17-amazon-corretto-headless |grep provider | grep -v log4j-cve | tr -s ' ' |cut -d ' ' -f 3 ) \ | ||
&& rpm -i --nodeps https://corretto.aws/downloads/resources/$(echo $version | tr '-' '.')/java-17-amazon-corretto-headless-$version.amzn2.1.$(uname -m).rpm \ | ||
&& yum install -y https://corretto.aws/downloads/resources/$(echo $version | tr '-' '.')/java-17-amazon-corretto-$version.amzn2.1.$(uname -m).rpm https://corretto.aws/downloads/resources/$(echo $version | tr '-' '.')/java-17-amazon-corretto-devel-$version.amzn2.1.$(uname -m).rpm \ | ||
&& (find /usr/lib/jvm/java-17-amazon-corretto.$(uname -m) -name src.zip -delete || true) \ | ||
&& yum clean all | ||
|
||
ENV LANG C.UTF-8 | ||
ENV JAVA_HOME=/usr/lib/jvm/java-17-amazon-corretto |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
FROM amazonlinux:2 | ||
|
||
ARG version=17.0.4.9-1 | ||
|
||
# The logic and code related to Fingerprint is contributed by @tianon in a Github PR's Conversation | ||
# Comment = https://github.com/docker-library/official-images/pull/7459#issuecomment-592242757 | ||
# PR = https://github.com/docker-library/official-images/pull/7459 | ||
RUN set -eux \ | ||
&& yum install -y $(yum deplist java-17-amazon-corretto-headless |grep provider | grep -v log4j-cve | tr -s ' ' |cut -d ' ' -f 3 ) \ | ||
&& rpm -i --nodeps https://corretto.aws/downloads/resources/$(echo $version | tr '-' '.')/java-17-amazon-corretto-headless-$version.amzn2.1.$(uname -m).rpm \ | ||
&& yum install -y https://corretto.aws/downloads/resources/$(echo $version | tr '-' '.')/java-17-amazon-corretto-$version.amzn2.1.$(uname -m).rpm \ | ||
&& (find /usr/lib/jvm/java-17-amazon-corretto.$(uname -m) -name src.zip -delete || true) \ | ||
&& yum clean all | ||
|
||
ENV LANG C.UTF-8 | ||
ENV JAVA_HOME=/usr/lib/jvm/java-17-amazon-corretto |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
FROM amazonlinux:2 | ||
|
||
ARG version=17.0.4.9-1 | ||
|
||
# The logic and code related to Fingerprint is contributed by @tianon in a Github PR's Conversation | ||
# Comment = https://github.com/docker-library/official-images/pull/7459#issuecomment-592242757 | ||
# PR = https://github.com/docker-library/official-images/pull/7459 | ||
RUN set -eux \ | ||
&& yum install -y $(yum deplist java-17-amazon-corretto-headless |grep provider | grep -v log4j-cve | tr -s ' ' |cut -d ' ' -f 3 ) \ | ||
&& rpm -i --nodeps https://corretto.aws/downloads/resources/$(echo $version | tr '-' '.')/java-17-amazon-corretto-headless-$version.amzn2.1.$(uname -m).rpm \ | ||
&& (find /usr/lib/jvm/java-17-amazon-corretto.$(uname -m) -name src.zip -delete || true) \ | ||
&& yum clean all \ | ||
&& rm -rf /var/cache/yum | ||
|
||
ENV LANG C.UTF-8 | ||
ENV JAVA_HOME=/usr/lib/jvm/java-17-amazon-corretto |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
FROM amazonlinux:2 | ||
|
||
ARG version=1.8.0_342.b07-4 | ||
|
||
# The logic and code related to Fingerprint is contributed by @tianon in a Github PR's Conversation | ||
# Comment = https://github.com/docker-library/official-images/pull/7459#issuecomment-592242757 | ||
# PR = https://github.com/docker-library/official-images/pull/7459 | ||
RUN set -eux \ | ||
&& yum install -y $(yum deplist java-1.8.0-amazon-corretto |grep provider | grep -Ev "(log4j-cve|amazon-corretto)" | tr -s ' ' |cut -d ' ' -f 3 ) \ | ||
&& rpm -i --nodeps https://corretto.aws/downloads/resources/$(echo $version | tr '-' '.' |tr '_' '.' |tr -d 'b' |awk -F. '{print $2"."$4"."$5"."$6}')/java-1.8.0-amazon-corretto-$version.amzn2.$(uname -m).rpm \ | ||
&& yum install -y https://corretto.aws/downloads/resources/$(echo $version | tr '-' '.' |tr '_' '.' |tr -d 'b' |awk -F. '{print $2"."$4"."$5"."$6}')/java-1.8.0-amazon-corretto-devel-$version.amzn2.$(uname -m).rpm \ | ||
&& (find /usr/lib/jvm/java-1.8.0-amazon-corretto.$(uname -m) -name src.zip -delete || true) \ | ||
&& yum clean all | ||
|
||
ENV LANG C.UTF-8 | ||
ENV JAVA_HOME=/usr/lib/jvm/java-1.8.0-amazon-corretto |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
FROM amazonlinux:2 | ||
|
||
ARG version=1.8.0_342.b07-4 | ||
|
||
# The logic and code related to Fingerprint is contributed by @tianon in a Github PR's Conversation | ||
# Comment = https://github.com/docker-library/official-images/pull/7459#issuecomment-592242757 | ||
# PR = https://github.com/docker-library/official-images/pull/7459 | ||
RUN set -eux \ | ||
&& yum install -y $(yum deplist java-1.8.0-amazon-corretto |grep "provider" | grep -Ev "(log4j-cve|amazon-corretto)" | tr -s ' ' |cut -d ' ' -f 3 ) \ | ||
&& rpm -i --nodeps https://corretto.aws/downloads/resources/$(echo $version | tr '-' '.' |tr '_' '.' |tr -d 'b' |awk -F. '{print $2"."$4"."$5"."$6}')/java-1.8.0-amazon-corretto-$version.amzn2.$(uname -m).rpm \ | ||
&& (find /usr/lib/jvm/java-1.8.0-amazon-corretto.$(uname -m) -name src.zip -delete || true) \ | ||
&& yum clean all \ | ||
&& rm -rf /var/cache/yum | ||
|
||
ENV LANG C.UTF-8 | ||
ENV JAVA_HOME=/usr/lib/jvm/java-1.8.0-amazon-corretto |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
schemaVersion: "2.0.0" | ||
|
||
metadataTest: | ||
env: | ||
- key: LANG | ||
value: C.UTF-8 | ||
|
||
commandTests: | ||
- name: "java command is registered using alternatives." | ||
command: "java" | ||
args: ["-version"] | ||
expectedError: ["OpenJDK Runtime Environment Corretto-17.*"] |