-
-
Notifications
You must be signed in to change notification settings - Fork 96
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add gpg verification to downloads (#673)
- Loading branch information
Showing
47 changed files
with
342 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,6 +31,8 @@ RUN set -eux; \ | |
# java.lang.NoClassDefFoundError: Could not initialize class sun.awt.X11FontManager | ||
# https://github.com/docker-library/openjdk/pull/235#issuecomment-424466077 | ||
fontconfig ttf-dejavu \ | ||
# gnupg required to verify the signature | ||
gnupg \ | ||
# utilities for keeping Alpine and OpenJDK CA certificates in sync | ||
# https://github.com/adoptium/containers/issues/293 | ||
ca-certificates p11-kit-trust \ | ||
|
@@ -60,6 +62,12 @@ RUN set -eux; \ | |
;; \ | ||
esac; \ | ||
wget -O /tmp/openjdk.tar.gz ${BINARY_URL}; \ | ||
wget -O /tmp/openjdk.tar.gz.sig ${BINARY_URL}.sig; \ | ||
export GNUPGHOME="$(mktemp -d)"; \ | ||
# gpg: key 843C48A565F8F04B: "Adoptium GPG Key (DEB/RPM Signing Key) <[email protected]>" imported | ||
gpg --batch --keyserver keyserver.ubuntu.com --recv-keys 3B04D753C9050D9A5D343F39843C48A565F8F04B; \ | ||
gpg --batch --verify /tmp/openjdk.tar.gz.sig /tmp/openjdk.tar.gz; \ | ||
rm -r "${GNUPGHOME}" /tmp/openjdk.tar.gz.sig; \ | ||
echo "${ESUM} */tmp/openjdk.tar.gz" | sha256sum -c -; \ | ||
mkdir -p "$JAVA_HOME"; \ | ||
tar --extract \ | ||
|
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 |
---|---|---|
|
@@ -67,6 +67,12 @@ RUN set -eux; \ | |
;; \ | ||
esac; \ | ||
wget --progress=dot:giga -O /tmp/openjdk.tar.gz ${BINARY_URL}; \ | ||
wget --progress=dot:giga -O /tmp/openjdk.tar.gz.sig ${BINARY_URL}.sig; \ | ||
export GNUPGHOME="$(mktemp -d)"; \ | ||
# gpg: key 843C48A565F8F04B: "Adoptium GPG Key (DEB/RPM Signing Key) <[email protected]>" imported | ||
gpg --batch --keyserver keyserver.ubuntu.com --recv-keys 3B04D753C9050D9A5D343F39843C48A565F8F04B; \ | ||
gpg --batch --verify /tmp/openjdk.tar.gz.sig /tmp/openjdk.tar.gz; \ | ||
rm -r "${GNUPGHOME}" /tmp/openjdk.tar.gz.sig; \ | ||
echo "${ESUM} */tmp/openjdk.tar.gz" | sha256sum -c -; \ | ||
mkdir -p "$JAVA_HOME"; \ | ||
tar --extract \ | ||
|
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 |
---|---|---|
|
@@ -31,6 +31,8 @@ RUN set -eux; \ | |
# curl required for historical reasons, see https://github.com/adoptium/containers/issues/255 | ||
curl \ | ||
wget \ | ||
# gnupg required to verify the signature | ||
gnupg \ | ||
# java.lang.UnsatisfiedLinkError: libfontmanager.so: libfreetype.so.6: cannot open shared object file: No such file or directory | ||
# java.lang.NoClassDefFoundError: Could not initialize class sun.awt.X11FontManager | ||
# https://github.com/docker-library/openjdk/pull/235#issuecomment-424466077 | ||
|
@@ -69,6 +71,12 @@ RUN set -eux; \ | |
;; \ | ||
esac; \ | ||
wget --progress=dot:giga -O /tmp/openjdk.tar.gz ${BINARY_URL}; \ | ||
wget --progress=dot:giga -O /tmp/openjdk.tar.gz.sig ${BINARY_URL}.sig; \ | ||
export GNUPGHOME="$(mktemp -d)"; \ | ||
# gpg: key 843C48A565F8F04B: "Adoptium GPG Key (DEB/RPM Signing Key) <[email protected]>" imported | ||
gpg --batch --keyserver keyserver.ubuntu.com --recv-keys 3B04D753C9050D9A5D343F39843C48A565F8F04B; \ | ||
gpg --batch --verify /tmp/openjdk.tar.gz.sig /tmp/openjdk.tar.gz; \ | ||
rm -r "${GNUPGHOME}" /tmp/openjdk.tar.gz.sig; \ | ||
echo "${ESUM} */tmp/openjdk.tar.gz" | sha256sum -c -; \ | ||
mkdir -p "$JAVA_HOME"; \ | ||
tar --extract \ | ||
|
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 |
---|---|---|
|
@@ -31,6 +31,8 @@ RUN set -eux; \ | |
# curl required for historical reasons, see https://github.com/adoptium/containers/issues/255 | ||
curl \ | ||
wget \ | ||
# gnupg required to verify the signature | ||
gnupg \ | ||
# java.lang.UnsatisfiedLinkError: libfontmanager.so: libfreetype.so.6: cannot open shared object file: No such file or directory | ||
# java.lang.NoClassDefFoundError: Could not initialize class sun.awt.X11FontManager | ||
# https://github.com/docker-library/openjdk/pull/235#issuecomment-424466077 | ||
|
@@ -69,6 +71,12 @@ RUN set -eux; \ | |
;; \ | ||
esac; \ | ||
wget --progress=dot:giga -O /tmp/openjdk.tar.gz ${BINARY_URL}; \ | ||
wget --progress=dot:giga -O /tmp/openjdk.tar.gz.sig ${BINARY_URL}.sig; \ | ||
export GNUPGHOME="$(mktemp -d)"; \ | ||
# gpg: key 843C48A565F8F04B: "Adoptium GPG Key (DEB/RPM Signing Key) <[email protected]>" imported | ||
gpg --batch --keyserver keyserver.ubuntu.com --recv-keys 3B04D753C9050D9A5D343F39843C48A565F8F04B; \ | ||
gpg --batch --verify /tmp/openjdk.tar.gz.sig /tmp/openjdk.tar.gz; \ | ||
rm -r "${GNUPGHOME}" /tmp/openjdk.tar.gz.sig; \ | ||
echo "${ESUM} */tmp/openjdk.tar.gz" | sha256sum -c -; \ | ||
mkdir -p "$JAVA_HOME"; \ | ||
tar --extract \ | ||
|
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 |
---|---|---|
|
@@ -31,6 +31,8 @@ RUN set -eux; \ | |
# curl required for historical reasons, see https://github.com/adoptium/containers/issues/255 | ||
curl \ | ||
wget \ | ||
# gnupg required to verify the signature | ||
gnupg \ | ||
# java.lang.UnsatisfiedLinkError: libfontmanager.so: libfreetype.so.6: cannot open shared object file: No such file or directory | ||
# java.lang.NoClassDefFoundError: Could not initialize class sun.awt.X11FontManager | ||
# https://github.com/docker-library/openjdk/pull/235#issuecomment-424466077 | ||
|
@@ -69,6 +71,12 @@ RUN set -eux; \ | |
;; \ | ||
esac; \ | ||
wget --progress=dot:giga -O /tmp/openjdk.tar.gz ${BINARY_URL}; \ | ||
wget --progress=dot:giga -O /tmp/openjdk.tar.gz.sig ${BINARY_URL}.sig; \ | ||
export GNUPGHOME="$(mktemp -d)"; \ | ||
# gpg: key 843C48A565F8F04B: "Adoptium GPG Key (DEB/RPM Signing Key) <[email protected]>" imported | ||
gpg --batch --keyserver keyserver.ubuntu.com --recv-keys 3B04D753C9050D9A5D343F39843C48A565F8F04B; \ | ||
gpg --batch --verify /tmp/openjdk.tar.gz.sig /tmp/openjdk.tar.gz; \ | ||
rm -r "${GNUPGHOME}" /tmp/openjdk.tar.gz.sig; \ | ||
echo "${ESUM} */tmp/openjdk.tar.gz" | sha256sum -c -; \ | ||
mkdir -p "$JAVA_HOME"; \ | ||
tar --extract \ | ||
|
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 |
---|---|---|
|
@@ -31,6 +31,8 @@ RUN set -eux; \ | |
# java.lang.NoClassDefFoundError: Could not initialize class sun.awt.X11FontManager | ||
# https://github.com/docker-library/openjdk/pull/235#issuecomment-424466077 | ||
fontconfig ttf-dejavu \ | ||
# gnupg required to verify the signature | ||
gnupg \ | ||
# utilities for keeping Alpine and OpenJDK CA certificates in sync | ||
# https://github.com/adoptium/containers/issues/293 | ||
ca-certificates p11-kit-trust \ | ||
|
@@ -60,6 +62,12 @@ RUN set -eux; \ | |
;; \ | ||
esac; \ | ||
wget -O /tmp/openjdk.tar.gz ${BINARY_URL}; \ | ||
wget -O /tmp/openjdk.tar.gz.sig ${BINARY_URL}.sig; \ | ||
export GNUPGHOME="$(mktemp -d)"; \ | ||
# gpg: key 843C48A565F8F04B: "Adoptium GPG Key (DEB/RPM Signing Key) <[email protected]>" imported | ||
gpg --batch --keyserver keyserver.ubuntu.com --recv-keys 3B04D753C9050D9A5D343F39843C48A565F8F04B; \ | ||
gpg --batch --verify /tmp/openjdk.tar.gz.sig /tmp/openjdk.tar.gz; \ | ||
rm -r "${GNUPGHOME}" /tmp/openjdk.tar.gz.sig; \ | ||
echo "${ESUM} */tmp/openjdk.tar.gz" | sha256sum -c -; \ | ||
mkdir -p "$JAVA_HOME"; \ | ||
tar --extract \ | ||
|
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 |
---|---|---|
|
@@ -67,6 +67,12 @@ RUN set -eux; \ | |
;; \ | ||
esac; \ | ||
wget --progress=dot:giga -O /tmp/openjdk.tar.gz ${BINARY_URL}; \ | ||
wget --progress=dot:giga -O /tmp/openjdk.tar.gz.sig ${BINARY_URL}.sig; \ | ||
export GNUPGHOME="$(mktemp -d)"; \ | ||
# gpg: key 843C48A565F8F04B: "Adoptium GPG Key (DEB/RPM Signing Key) <[email protected]>" imported | ||
gpg --batch --keyserver keyserver.ubuntu.com --recv-keys 3B04D753C9050D9A5D343F39843C48A565F8F04B; \ | ||
gpg --batch --verify /tmp/openjdk.tar.gz.sig /tmp/openjdk.tar.gz; \ | ||
rm -r "${GNUPGHOME}" /tmp/openjdk.tar.gz.sig; \ | ||
echo "${ESUM} */tmp/openjdk.tar.gz" | sha256sum -c -; \ | ||
mkdir -p "$JAVA_HOME"; \ | ||
tar --extract \ | ||
|
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 |
---|---|---|
|
@@ -31,6 +31,8 @@ RUN set -eux; \ | |
# curl required for historical reasons, see https://github.com/adoptium/containers/issues/255 | ||
curl \ | ||
wget \ | ||
# gnupg required to verify the signature | ||
gnupg \ | ||
# java.lang.UnsatisfiedLinkError: libfontmanager.so: libfreetype.so.6: cannot open shared object file: No such file or directory | ||
# java.lang.NoClassDefFoundError: Could not initialize class sun.awt.X11FontManager | ||
# https://github.com/docker-library/openjdk/pull/235#issuecomment-424466077 | ||
|
@@ -69,6 +71,12 @@ RUN set -eux; \ | |
;; \ | ||
esac; \ | ||
wget --progress=dot:giga -O /tmp/openjdk.tar.gz ${BINARY_URL}; \ | ||
wget --progress=dot:giga -O /tmp/openjdk.tar.gz.sig ${BINARY_URL}.sig; \ | ||
export GNUPGHOME="$(mktemp -d)"; \ | ||
# gpg: key 843C48A565F8F04B: "Adoptium GPG Key (DEB/RPM Signing Key) <[email protected]>" imported | ||
gpg --batch --keyserver keyserver.ubuntu.com --recv-keys 3B04D753C9050D9A5D343F39843C48A565F8F04B; \ | ||
gpg --batch --verify /tmp/openjdk.tar.gz.sig /tmp/openjdk.tar.gz; \ | ||
rm -r "${GNUPGHOME}" /tmp/openjdk.tar.gz.sig; \ | ||
echo "${ESUM} */tmp/openjdk.tar.gz" | sha256sum -c -; \ | ||
mkdir -p "$JAVA_HOME"; \ | ||
tar --extract \ | ||
|
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 |
---|---|---|
|
@@ -31,6 +31,8 @@ RUN set -eux; \ | |
# curl required for historical reasons, see https://github.com/adoptium/containers/issues/255 | ||
curl \ | ||
wget \ | ||
# gnupg required to verify the signature | ||
gnupg \ | ||
# java.lang.UnsatisfiedLinkError: libfontmanager.so: libfreetype.so.6: cannot open shared object file: No such file or directory | ||
# java.lang.NoClassDefFoundError: Could not initialize class sun.awt.X11FontManager | ||
# https://github.com/docker-library/openjdk/pull/235#issuecomment-424466077 | ||
|
@@ -69,6 +71,12 @@ RUN set -eux; \ | |
;; \ | ||
esac; \ | ||
wget --progress=dot:giga -O /tmp/openjdk.tar.gz ${BINARY_URL}; \ | ||
wget --progress=dot:giga -O /tmp/openjdk.tar.gz.sig ${BINARY_URL}.sig; \ | ||
export GNUPGHOME="$(mktemp -d)"; \ | ||
# gpg: key 843C48A565F8F04B: "Adoptium GPG Key (DEB/RPM Signing Key) <[email protected]>" imported | ||
gpg --batch --keyserver keyserver.ubuntu.com --recv-keys 3B04D753C9050D9A5D343F39843C48A565F8F04B; \ | ||
gpg --batch --verify /tmp/openjdk.tar.gz.sig /tmp/openjdk.tar.gz; \ | ||
rm -r "${GNUPGHOME}" /tmp/openjdk.tar.gz.sig; \ | ||
echo "${ESUM} */tmp/openjdk.tar.gz" | sha256sum -c -; \ | ||
mkdir -p "$JAVA_HOME"; \ | ||
tar --extract \ | ||
|
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 |
---|---|---|
|
@@ -31,6 +31,8 @@ RUN set -eux; \ | |
# curl required for historical reasons, see https://github.com/adoptium/containers/issues/255 | ||
curl \ | ||
wget \ | ||
# gnupg required to verify the signature | ||
gnupg \ | ||
# java.lang.UnsatisfiedLinkError: libfontmanager.so: libfreetype.so.6: cannot open shared object file: No such file or directory | ||
# java.lang.NoClassDefFoundError: Could not initialize class sun.awt.X11FontManager | ||
# https://github.com/docker-library/openjdk/pull/235#issuecomment-424466077 | ||
|
@@ -69,6 +71,12 @@ RUN set -eux; \ | |
;; \ | ||
esac; \ | ||
wget --progress=dot:giga -O /tmp/openjdk.tar.gz ${BINARY_URL}; \ | ||
wget --progress=dot:giga -O /tmp/openjdk.tar.gz.sig ${BINARY_URL}.sig; \ | ||
export GNUPGHOME="$(mktemp -d)"; \ | ||
# gpg: key 843C48A565F8F04B: "Adoptium GPG Key (DEB/RPM Signing Key) <[email protected]>" imported | ||
gpg --batch --keyserver keyserver.ubuntu.com --recv-keys 3B04D753C9050D9A5D343F39843C48A565F8F04B; \ | ||
gpg --batch --verify /tmp/openjdk.tar.gz.sig /tmp/openjdk.tar.gz; \ | ||
rm -r "${GNUPGHOME}" /tmp/openjdk.tar.gz.sig; \ | ||
echo "${ESUM} */tmp/openjdk.tar.gz" | sha256sum -c -; \ | ||
mkdir -p "$JAVA_HOME"; \ | ||
tar --extract \ | ||
|
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 |
---|---|---|
|
@@ -31,6 +31,8 @@ RUN set -eux; \ | |
# java.lang.NoClassDefFoundError: Could not initialize class sun.awt.X11FontManager | ||
# https://github.com/docker-library/openjdk/pull/235#issuecomment-424466077 | ||
fontconfig ttf-dejavu \ | ||
# gnupg required to verify the signature | ||
gnupg \ | ||
# utilities for keeping Alpine and OpenJDK CA certificates in sync | ||
# https://github.com/adoptium/containers/issues/293 | ||
ca-certificates p11-kit-trust \ | ||
|
@@ -63,6 +65,12 @@ RUN set -eux; \ | |
;; \ | ||
esac; \ | ||
wget -O /tmp/openjdk.tar.gz ${BINARY_URL}; \ | ||
wget -O /tmp/openjdk.tar.gz.sig ${BINARY_URL}.sig; \ | ||
export GNUPGHOME="$(mktemp -d)"; \ | ||
# gpg: key 843C48A565F8F04B: "Adoptium GPG Key (DEB/RPM Signing Key) <[email protected]>" imported | ||
gpg --batch --keyserver keyserver.ubuntu.com --recv-keys 3B04D753C9050D9A5D343F39843C48A565F8F04B; \ | ||
gpg --batch --verify /tmp/openjdk.tar.gz.sig /tmp/openjdk.tar.gz; \ | ||
rm -r "${GNUPGHOME}" /tmp/openjdk.tar.gz.sig; \ | ||
echo "${ESUM} */tmp/openjdk.tar.gz" | sha256sum -c -; \ | ||
mkdir -p "$JAVA_HOME"; \ | ||
tar --extract \ | ||
|
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 |
---|---|---|
|
@@ -67,6 +67,12 @@ RUN set -eux; \ | |
;; \ | ||
esac; \ | ||
wget --progress=dot:giga -O /tmp/openjdk.tar.gz ${BINARY_URL}; \ | ||
wget --progress=dot:giga -O /tmp/openjdk.tar.gz.sig ${BINARY_URL}.sig; \ | ||
export GNUPGHOME="$(mktemp -d)"; \ | ||
# gpg: key 843C48A565F8F04B: "Adoptium GPG Key (DEB/RPM Signing Key) <[email protected]>" imported | ||
gpg --batch --keyserver keyserver.ubuntu.com --recv-keys 3B04D753C9050D9A5D343F39843C48A565F8F04B; \ | ||
gpg --batch --verify /tmp/openjdk.tar.gz.sig /tmp/openjdk.tar.gz; \ | ||
rm -r "${GNUPGHOME}" /tmp/openjdk.tar.gz.sig; \ | ||
echo "${ESUM} */tmp/openjdk.tar.gz" | sha256sum -c -; \ | ||
mkdir -p "$JAVA_HOME"; \ | ||
tar --extract \ | ||
|
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 |
---|---|---|
|
@@ -31,6 +31,8 @@ RUN set -eux; \ | |
# curl required for historical reasons, see https://github.com/adoptium/containers/issues/255 | ||
curl \ | ||
wget \ | ||
# gnupg required to verify the signature | ||
gnupg \ | ||
# java.lang.UnsatisfiedLinkError: libfontmanager.so: libfreetype.so.6: cannot open shared object file: No such file or directory | ||
# java.lang.NoClassDefFoundError: Could not initialize class sun.awt.X11FontManager | ||
# https://github.com/docker-library/openjdk/pull/235#issuecomment-424466077 | ||
|
@@ -76,6 +78,12 @@ RUN set -eux; \ | |
;; \ | ||
esac; \ | ||
wget --progress=dot:giga -O /tmp/openjdk.tar.gz ${BINARY_URL}; \ | ||
wget --progress=dot:giga -O /tmp/openjdk.tar.gz.sig ${BINARY_URL}.sig; \ | ||
export GNUPGHOME="$(mktemp -d)"; \ | ||
# gpg: key 843C48A565F8F04B: "Adoptium GPG Key (DEB/RPM Signing Key) <[email protected]>" imported | ||
gpg --batch --keyserver keyserver.ubuntu.com --recv-keys 3B04D753C9050D9A5D343F39843C48A565F8F04B; \ | ||
gpg --batch --verify /tmp/openjdk.tar.gz.sig /tmp/openjdk.tar.gz; \ | ||
rm -r "${GNUPGHOME}" /tmp/openjdk.tar.gz.sig; \ | ||
echo "${ESUM} */tmp/openjdk.tar.gz" | sha256sum -c -; \ | ||
mkdir -p "$JAVA_HOME"; \ | ||
tar --extract \ | ||
|
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 |
---|---|---|
|
@@ -31,6 +31,8 @@ RUN set -eux; \ | |
# curl required for historical reasons, see https://github.com/adoptium/containers/issues/255 | ||
curl \ | ||
wget \ | ||
# gnupg required to verify the signature | ||
gnupg \ | ||
# java.lang.UnsatisfiedLinkError: libfontmanager.so: libfreetype.so.6: cannot open shared object file: No such file or directory | ||
# java.lang.NoClassDefFoundError: Could not initialize class sun.awt.X11FontManager | ||
# https://github.com/docker-library/openjdk/pull/235#issuecomment-424466077 | ||
|
@@ -76,6 +78,12 @@ RUN set -eux; \ | |
;; \ | ||
esac; \ | ||
wget --progress=dot:giga -O /tmp/openjdk.tar.gz ${BINARY_URL}; \ | ||
wget --progress=dot:giga -O /tmp/openjdk.tar.gz.sig ${BINARY_URL}.sig; \ | ||
export GNUPGHOME="$(mktemp -d)"; \ | ||
# gpg: key 843C48A565F8F04B: "Adoptium GPG Key (DEB/RPM Signing Key) <[email protected]>" imported | ||
gpg --batch --keyserver keyserver.ubuntu.com --recv-keys 3B04D753C9050D9A5D343F39843C48A565F8F04B; \ | ||
gpg --batch --verify /tmp/openjdk.tar.gz.sig /tmp/openjdk.tar.gz; \ | ||
rm -r "${GNUPGHOME}" /tmp/openjdk.tar.gz.sig; \ | ||
echo "${ESUM} */tmp/openjdk.tar.gz" | sha256sum -c -; \ | ||
mkdir -p "$JAVA_HOME"; \ | ||
tar --extract \ | ||
|
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 |
---|---|---|
|
@@ -31,6 +31,8 @@ RUN set -eux; \ | |
# curl required for historical reasons, see https://github.com/adoptium/containers/issues/255 | ||
curl \ | ||
wget \ | ||
# gnupg required to verify the signature | ||
gnupg \ | ||
# java.lang.UnsatisfiedLinkError: libfontmanager.so: libfreetype.so.6: cannot open shared object file: No such file or directory | ||
# java.lang.NoClassDefFoundError: Could not initialize class sun.awt.X11FontManager | ||
# https://github.com/docker-library/openjdk/pull/235#issuecomment-424466077 | ||
|
@@ -80,6 +82,12 @@ RUN set -eux; \ | |
;; \ | ||
esac; \ | ||
wget --progress=dot:giga -O /tmp/openjdk.tar.gz ${BINARY_URL}; \ | ||
wget --progress=dot:giga -O /tmp/openjdk.tar.gz.sig ${BINARY_URL}.sig; \ | ||
export GNUPGHOME="$(mktemp -d)"; \ | ||
# gpg: key 843C48A565F8F04B: "Adoptium GPG Key (DEB/RPM Signing Key) <[email protected]>" imported | ||
gpg --batch --keyserver keyserver.ubuntu.com --recv-keys 3B04D753C9050D9A5D343F39843C48A565F8F04B; \ | ||
gpg --batch --verify /tmp/openjdk.tar.gz.sig /tmp/openjdk.tar.gz; \ | ||
rm -r "${GNUPGHOME}" /tmp/openjdk.tar.gz.sig; \ | ||
echo "${ESUM} */tmp/openjdk.tar.gz" | sha256sum -c -; \ | ||
mkdir -p "$JAVA_HOME"; \ | ||
tar --extract \ | ||
|
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 |
---|---|---|
|
@@ -31,6 +31,8 @@ RUN set -eux; \ | |
# java.lang.NoClassDefFoundError: Could not initialize class sun.awt.X11FontManager | ||
# https://github.com/docker-library/openjdk/pull/235#issuecomment-424466077 | ||
fontconfig ttf-dejavu \ | ||
# gnupg required to verify the signature | ||
gnupg \ | ||
# utilities for keeping Alpine and OpenJDK CA certificates in sync | ||
# https://github.com/adoptium/containers/issues/293 | ||
ca-certificates p11-kit-trust \ | ||
|
@@ -60,6 +62,12 @@ RUN set -eux; \ | |
;; \ | ||
esac; \ | ||
wget -O /tmp/openjdk.tar.gz ${BINARY_URL}; \ | ||
wget -O /tmp/openjdk.tar.gz.sig ${BINARY_URL}.sig; \ | ||
export GNUPGHOME="$(mktemp -d)"; \ | ||
# gpg: key 843C48A565F8F04B: "Adoptium GPG Key (DEB/RPM Signing Key) <[email protected]>" imported | ||
gpg --batch --keyserver keyserver.ubuntu.com --recv-keys 3B04D753C9050D9A5D343F39843C48A565F8F04B; \ | ||
gpg --batch --verify /tmp/openjdk.tar.gz.sig /tmp/openjdk.tar.gz; \ | ||
rm -r "${GNUPGHOME}" /tmp/openjdk.tar.gz.sig; \ | ||
echo "${ESUM} */tmp/openjdk.tar.gz" | sha256sum -c -; \ | ||
mkdir -p "$JAVA_HOME"; \ | ||
tar --extract \ | ||
|
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 |
---|---|---|
|
@@ -67,6 +67,12 @@ RUN set -eux; \ | |
;; \ | ||
esac; \ | ||
wget --progress=dot:giga -O /tmp/openjdk.tar.gz ${BINARY_URL}; \ | ||
wget --progress=dot:giga -O /tmp/openjdk.tar.gz.sig ${BINARY_URL}.sig; \ | ||
export GNUPGHOME="$(mktemp -d)"; \ | ||
# gpg: key 843C48A565F8F04B: "Adoptium GPG Key (DEB/RPM Signing Key) <[email protected]>" imported | ||
gpg --batch --keyserver keyserver.ubuntu.com --recv-keys 3B04D753C9050D9A5D343F39843C48A565F8F04B; \ | ||
gpg --batch --verify /tmp/openjdk.tar.gz.sig /tmp/openjdk.tar.gz; \ | ||
rm -r "${GNUPGHOME}" /tmp/openjdk.tar.gz.sig; \ | ||
echo "${ESUM} */tmp/openjdk.tar.gz" | sha256sum -c -; \ | ||
mkdir -p "$JAVA_HOME"; \ | ||
tar --extract \ | ||
|
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 |
---|---|---|
|
@@ -31,6 +31,8 @@ RUN set -eux; \ | |
# curl required for historical reasons, see https://github.com/adoptium/containers/issues/255 | ||
curl \ | ||
wget \ | ||
# gnupg required to verify the signature | ||
gnupg \ | ||
# java.lang.UnsatisfiedLinkError: libfontmanager.so: libfreetype.so.6: cannot open shared object file: No such file or directory | ||
# java.lang.NoClassDefFoundError: Could not initialize class sun.awt.X11FontManager | ||
# https://github.com/docker-library/openjdk/pull/235#issuecomment-424466077 | ||
|
@@ -73,6 +75,12 @@ RUN set -eux; \ | |
;; \ | ||
esac; \ | ||
wget --progress=dot:giga -O /tmp/openjdk.tar.gz ${BINARY_URL}; \ | ||
wget --progress=dot:giga -O /tmp/openjdk.tar.gz.sig ${BINARY_URL}.sig; \ | ||
export GNUPGHOME="$(mktemp -d)"; \ | ||
# gpg: key 843C48A565F8F04B: "Adoptium GPG Key (DEB/RPM Signing Key) <[email protected]>" imported | ||
gpg --batch --keyserver keyserver.ubuntu.com --recv-keys 3B04D753C9050D9A5D343F39843C48A565F8F04B; \ | ||
gpg --batch --verify /tmp/openjdk.tar.gz.sig /tmp/openjdk.tar.gz; \ | ||
rm -r "${GNUPGHOME}" /tmp/openjdk.tar.gz.sig; \ | ||
echo "${ESUM} */tmp/openjdk.tar.gz" | sha256sum -c -; \ | ||
mkdir -p "$JAVA_HOME"; \ | ||
tar --extract \ | ||
|
Oops, something went wrong.