From 93a34274ca871e1208a461562ad3fcf2355f20e7 Mon Sep 17 00:00:00 2001 From: Keegan Witt Date: Sun, 31 Oct 2021 01:21:31 -0400 Subject: [PATCH] Replace wget with curl (to avoid need to install wget) --- jdk11/Dockerfile | 5 ++--- jdk17/Dockerfile | 5 ++--- jdk8/Dockerfile | 5 ++--- 3 files changed, 6 insertions(+), 9 deletions(-) diff --git a/jdk11/Dockerfile b/jdk11/Dockerfile index 21175c5..09772f7 100644 --- a/jdk11/Dockerfile +++ b/jdk11/Dockerfile @@ -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)" \ @@ -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 \ diff --git a/jdk17/Dockerfile b/jdk17/Dockerfile index 5d2672e..8298481 100644 --- a/jdk17/Dockerfile +++ b/jdk17/Dockerfile @@ -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)" \ @@ -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 \ diff --git a/jdk8/Dockerfile b/jdk8/Dockerfile index 180dce7..82555f4 100644 --- a/jdk8/Dockerfile +++ b/jdk8/Dockerfile @@ -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)" \ @@ -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 \