Skip to content

Commit

Permalink
chore: check sha256sum for corretto.key
Browse files Browse the repository at this point in the history
Fixes #519
  • Loading branch information
cjoyau authored and carlossg committed Dec 7, 2024
1 parent b2764d2 commit e92e0e0
Show file tree
Hide file tree
Showing 8 changed files with 32 additions and 8 deletions.
5 changes: 4 additions & 1 deletion amazoncorretto-11-debian/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@ FROM debian:bookworm-slim
RUN apt-get update \
&& apt-get install -y curl gnupg openssh-client \
&& export GNUPGHOME="$(mktemp -d)" \
&& curl -fL https://apt.corretto.aws/corretto.key | gpg --batch --import \
&& curl -fL https://apt.corretto.aws/corretto.key -o corretto.key \
&& echo '18bbe2461ff5acb1212f95f3e41034c503460532de21c24f5f935359b2303586 *corretto.key' | sha256sum -c - \
&& gpg --batch --import corretto.key \
&& rm corretto.key \
&& gpg --batch --export '6DC3636DAE534049C8B94623A122542AB04F24E3' > /usr/share/keyrings/corretto.gpg \
&& unset GNUPGHOME \
&& echo "deb [signed-by=/usr/share/keyrings/corretto.gpg] https://apt.corretto.aws stable main" > /etc/apt/sources.list.d/corretto.list \
Expand Down
5 changes: 4 additions & 1 deletion amazoncorretto-17-debian-maven-4/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@ FROM debian:bookworm-slim
RUN apt-get update \
&& apt-get install -y curl gnupg openssh-client \
&& export GNUPGHOME="$(mktemp -d)" \
&& curl -fL https://apt.corretto.aws/corretto.key | gpg --batch --import \
&& curl -fL https://apt.corretto.aws/corretto.key -o corretto.key \
&& echo '18bbe2461ff5acb1212f95f3e41034c503460532de21c24f5f935359b2303586 *corretto.key' | sha256sum -c - \
&& gpg --batch --import corretto.key \
&& rm corretto.key \
&& gpg --batch --export '6DC3636DAE534049C8B94623A122542AB04F24E3' > /usr/share/keyrings/corretto.gpg \
&& unset GNUPGHOME \
&& echo "deb [signed-by=/usr/share/keyrings/corretto.gpg] https://apt.corretto.aws stable main" > /etc/apt/sources.list.d/corretto.list \
Expand Down
5 changes: 4 additions & 1 deletion amazoncorretto-17-debian/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@ FROM debian:bookworm-slim
RUN apt-get update \
&& apt-get install -y curl gnupg openssh-client \
&& export GNUPGHOME="$(mktemp -d)" \
&& curl -fL https://apt.corretto.aws/corretto.key | gpg --batch --import \
&& curl -fL https://apt.corretto.aws/corretto.key -o corretto.key \
&& echo '18bbe2461ff5acb1212f95f3e41034c503460532de21c24f5f935359b2303586 *corretto.key' | sha256sum -c - \
&& gpg --batch --import corretto.key \
&& rm corretto.key \
&& gpg --batch --export '6DC3636DAE534049C8B94623A122542AB04F24E3' > /usr/share/keyrings/corretto.gpg \
&& unset GNUPGHOME \
&& echo "deb [signed-by=/usr/share/keyrings/corretto.gpg] https://apt.corretto.aws stable main" > /etc/apt/sources.list.d/corretto.list \
Expand Down
5 changes: 4 additions & 1 deletion amazoncorretto-21-debian-maven-4/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@ FROM debian:bookworm-slim
RUN apt-get update \
&& apt-get install -y curl gnupg openssh-client \
&& export GNUPGHOME="$(mktemp -d)" \
&& curl -fL https://apt.corretto.aws/corretto.key | gpg --batch --import \
&& curl -fL https://apt.corretto.aws/corretto.key -o corretto.key \
&& echo '18bbe2461ff5acb1212f95f3e41034c503460532de21c24f5f935359b2303586 *corretto.key' | sha256sum -c - \
&& gpg --batch --import corretto.key \
&& rm corretto.key \
&& gpg --batch --export '6DC3636DAE534049C8B94623A122542AB04F24E3' > /usr/share/keyrings/corretto.gpg \
&& unset GNUPGHOME \
&& echo "deb [signed-by=/usr/share/keyrings/corretto.gpg] https://apt.corretto.aws stable main" > /etc/apt/sources.list.d/corretto.list \
Expand Down
5 changes: 4 additions & 1 deletion amazoncorretto-21-debian/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@ FROM debian:bookworm-slim
RUN apt-get update \
&& apt-get install -y curl gnupg openssh-client \
&& export GNUPGHOME="$(mktemp -d)" \
&& curl -fL https://apt.corretto.aws/corretto.key | gpg --batch --import \
&& curl -fL https://apt.corretto.aws/corretto.key -o corretto.key \
&& echo '18bbe2461ff5acb1212f95f3e41034c503460532de21c24f5f935359b2303586 *corretto.key' | sha256sum -c - \
&& gpg --batch --import corretto.key \
&& rm corretto.key \
&& gpg --batch --export '6DC3636DAE534049C8B94623A122542AB04F24E3' > /usr/share/keyrings/corretto.gpg \
&& unset GNUPGHOME \
&& echo "deb [signed-by=/usr/share/keyrings/corretto.gpg] https://apt.corretto.aws stable main" > /etc/apt/sources.list.d/corretto.list \
Expand Down
5 changes: 4 additions & 1 deletion amazoncorretto-23-debian-maven-4/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@ FROM debian:bookworm-slim
RUN apt-get update \
&& apt-get install -y curl gnupg openssh-client \
&& export GNUPGHOME="$(mktemp -d)" \
&& curl -fL https://apt.corretto.aws/corretto.key | gpg --batch --import \
&& curl -fL https://apt.corretto.aws/corretto.key -o corretto.key \
&& echo '18bbe2461ff5acb1212f95f3e41034c503460532de21c24f5f935359b2303586 *corretto.key' | sha256sum -c - \
&& gpg --batch --import corretto.key \
&& rm corretto.key \
&& gpg --batch --export '6DC3636DAE534049C8B94623A122542AB04F24E3' > /usr/share/keyrings/corretto.gpg \
&& unset GNUPGHOME \
&& echo "deb [signed-by=/usr/share/keyrings/corretto.gpg] https://apt.corretto.aws stable main" > /etc/apt/sources.list.d/corretto.list \
Expand Down
5 changes: 4 additions & 1 deletion amazoncorretto-23-debian/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@ FROM debian:bookworm-slim
RUN apt-get update \
&& apt-get install -y curl gnupg openssh-client \
&& export GNUPGHOME="$(mktemp -d)" \
&& curl -fL https://apt.corretto.aws/corretto.key | gpg --batch --import \
&& curl -fL https://apt.corretto.aws/corretto.key -o corretto.key \
&& echo '18bbe2461ff5acb1212f95f3e41034c503460532de21c24f5f935359b2303586 *corretto.key' | sha256sum -c - \
&& gpg --batch --import corretto.key \
&& rm corretto.key \
&& gpg --batch --export '6DC3636DAE534049C8B94623A122542AB04F24E3' > /usr/share/keyrings/corretto.gpg \
&& unset GNUPGHOME \
&& echo "deb [signed-by=/usr/share/keyrings/corretto.gpg] https://apt.corretto.aws stable main" > /etc/apt/sources.list.d/corretto.list \
Expand Down
5 changes: 4 additions & 1 deletion amazoncorretto-8-debian/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@ FROM debian:bookworm-slim
RUN apt-get update \
&& apt-get install -y curl gnupg openssh-client \
&& export GNUPGHOME="$(mktemp -d)" \
&& curl -fL https://apt.corretto.aws/corretto.key | gpg --batch --import \
&& curl -fL https://apt.corretto.aws/corretto.key -o corretto.key \
&& echo '18bbe2461ff5acb1212f95f3e41034c503460532de21c24f5f935359b2303586 *corretto.key' | sha256sum -c - \
&& gpg --batch --import corretto.key \
&& rm corretto.key \
&& gpg --batch --export '6DC3636DAE534049C8B94623A122542AB04F24E3' > /usr/share/keyrings/corretto.gpg \
&& unset GNUPGHOME \
&& echo "deb [signed-by=/usr/share/keyrings/corretto.gpg] https://apt.corretto.aws stable main" > /etc/apt/sources.list.d/corretto.list \
Expand Down

0 comments on commit e92e0e0

Please sign in to comment.