Skip to content

Commit

Permalink
Replace wget with curl
Browse files Browse the repository at this point in the history
(to avoid need to install wget)
  • Loading branch information
keeganwitt committed Oct 31, 2021
1 parent 6092521 commit 93a3427
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 9 deletions.
5 changes: 2 additions & 3 deletions jdk11/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,12 @@ RUN apt-get update \
dirmngr \
gnupg \
unzip \
wget \
&& rm --recursive --force /var/lib/apt/lists/*

ENV GROOVY_VERSION 3.0.9
RUN set -o errexit -o nounset \
&& echo "Downloading Groovy" \
&& wget --no-verbose --output-document=groovy.zip "https://archive.apache.org/dist/groovy/${GROOVY_VERSION}/distribution/apache-groovy-binary-${GROOVY_VERSION}.zip" \
&& curl --fail --show-error --silent --output groovy.zip "https://archive.apache.org/dist/groovy/${GROOVY_VERSION}/distribution/apache-groovy-binary-${GROOVY_VERSION}.zip" \
\
&& echo "Importing keys listed in http://www.apache.org/dist/groovy/KEYS from key server" \
&& export GNUPGHOME="$(mktemp -d)" \
Expand All @@ -43,7 +42,7 @@ RUN set -o errexit -o nounset \
81CABC23EECA0790E8989B361FF96E10F0E13706 \
\
&& echo "Checking download signature" \
&& wget --no-verbose --output-document=groovy.zip.asc "https://archive.apache.org/dist/groovy/${GROOVY_VERSION}/distribution/apache-groovy-binary-${GROOVY_VERSION}.zip.asc" \
&& curl --fail --show-error --silent --output groovy.zip.asc "https://archive.apache.org/dist/groovy/${GROOVY_VERSION}/distribution/apache-groovy-binary-${GROOVY_VERSION}.zip.asc" \
&& gpg --batch --no-tty --verify groovy.zip.asc groovy.zip \
&& rm --recursive --force "${GNUPGHOME}" \
&& rm groovy.zip.asc \
Expand Down
5 changes: 2 additions & 3 deletions jdk17/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,12 @@ RUN apt-get update \
dirmngr \
gnupg \
unzip \
wget \
&& rm --recursive --force /var/lib/apt/lists/*

ENV GROOVY_VERSION 3.0.9
RUN set -o errexit -o nounset \
&& echo "Downloading Groovy" \
&& wget --no-verbose --output-document=groovy.zip "https://archive.apache.org/dist/groovy/${GROOVY_VERSION}/distribution/apache-groovy-binary-${GROOVY_VERSION}.zip" \
&& curl --fail --show-error --silent --output groovy.zip "https://archive.apache.org/dist/groovy/${GROOVY_VERSION}/distribution/apache-groovy-binary-${GROOVY_VERSION}.zip" \
\
&& echo "Importing keys listed in http://www.apache.org/dist/groovy/KEYS from key server" \
&& export GNUPGHOME="$(mktemp -d)" \
Expand All @@ -43,7 +42,7 @@ RUN set -o errexit -o nounset \
81CABC23EECA0790E8989B361FF96E10F0E13706 \
\
&& echo "Checking download signature" \
&& wget --no-verbose --output-document=groovy.zip.asc "https://archive.apache.org/dist/groovy/${GROOVY_VERSION}/distribution/apache-groovy-binary-${GROOVY_VERSION}.zip.asc" \
&& curl --fail --show-error --silent --output groovy.zip.asc "https://archive.apache.org/dist/groovy/${GROOVY_VERSION}/distribution/apache-groovy-binary-${GROOVY_VERSION}.zip.asc" \
&& gpg --batch --no-tty --verify groovy.zip.asc groovy.zip \
&& rm --recursive --force "${GNUPGHOME}" \
&& rm groovy.zip.asc \
Expand Down
5 changes: 2 additions & 3 deletions jdk8/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,12 @@ RUN apt-get update \
dirmngr \
gnupg \
unzip \
wget \
&& rm --recursive --force /var/lib/apt/lists/*

ENV GROOVY_VERSION 3.0.9
RUN set -o errexit -o nounset \
&& echo "Downloading Groovy" \
&& wget --no-verbose --output-document=groovy.zip "https://archive.apache.org/dist/groovy/${GROOVY_VERSION}/distribution/apache-groovy-binary-${GROOVY_VERSION}.zip" \
&& curl --fail --show-error --silent --output groovy.zip "https://archive.apache.org/dist/groovy/${GROOVY_VERSION}/distribution/apache-groovy-binary-${GROOVY_VERSION}.zip" \
\
&& echo "Importing keys listed in http://www.apache.org/dist/groovy/KEYS from key server" \
&& export GNUPGHOME="$(mktemp -d)" \
Expand All @@ -43,7 +42,7 @@ RUN set -o errexit -o nounset \
81CABC23EECA0790E8989B361FF96E10F0E13706 \
\
&& echo "Checking download signature" \
&& wget --no-verbose --output-document=groovy.zip.asc "https://archive.apache.org/dist/groovy/${GROOVY_VERSION}/distribution/apache-groovy-binary-${GROOVY_VERSION}.zip.asc" \
&& curl --fail --show-error --silent --output groovy.zip.asc "https://archive.apache.org/dist/groovy/${GROOVY_VERSION}/distribution/apache-groovy-binary-${GROOVY_VERSION}.zip.asc" \
&& gpg --batch --no-tty --verify groovy.zip.asc groovy.zip \
&& rm --recursive --force "${GNUPGHOME}" \
&& rm groovy.zip.asc \
Expand Down

0 comments on commit 93a3427

Please sign in to comment.