diff --git a/3.0/alpine3.16/Dockerfile b/3.0/alpine3.16/Dockerfile index 76f99ef7db..644eb34bee 100644 --- a/3.0/alpine3.16/Dockerfile +++ b/3.0/alpine3.16/Dockerfile @@ -68,7 +68,9 @@ RUN set -eux; \ ; \ \ wget -O ruby.tar.xz "https://cache.ruby-lang.org/pub/ruby/${RUBY_MAJOR%-rc}/ruby-$RUBY_VERSION.tar.xz"; \ - echo "$RUBY_DOWNLOAD_SHA256 *ruby.tar.xz" | sha256sum --check --strict; \ + if [[ "$SKIP_CHECKSUM_CHECK" -ne "1" ]]; then \ + echo "$RUBY_DOWNLOAD_SHA256 *ruby.tar.xz" | sha256sum --check --strict; \ + fi; \ \ mkdir -p /usr/src/ruby; \ tar -xJf ruby.tar.xz -C /usr/src/ruby --strip-components=1; \ diff --git a/3.0/bullseye/Dockerfile b/3.0/bullseye/Dockerfile index 1bbb0cbfe6..7ac98915f2 100644 --- a/3.0/bullseye/Dockerfile +++ b/3.0/bullseye/Dockerfile @@ -36,7 +36,9 @@ RUN set -eux; \ rm -rf /var/lib/apt/lists/*; \ \ wget -O ruby.tar.xz "https://cache.ruby-lang.org/pub/ruby/${RUBY_MAJOR%-rc}/ruby-$RUBY_VERSION.tar.xz"; \ - echo "$RUBY_DOWNLOAD_SHA256 *ruby.tar.xz" | sha256sum --check --strict; \ + if [[ "$SKIP_CHECKSUM_CHECK" -ne "1" ]]; then \ + echo "$RUBY_DOWNLOAD_SHA256 *ruby.tar.xz" | sha256sum --check --strict; \ + fi; \ \ mkdir -p /usr/src/ruby; \ tar -xJf ruby.tar.xz -C /usr/src/ruby --strip-components=1; \ diff --git a/3.0/buster/Dockerfile b/3.0/buster/Dockerfile index ddf71619e0..f8370acd7f 100644 --- a/3.0/buster/Dockerfile +++ b/3.0/buster/Dockerfile @@ -36,7 +36,9 @@ RUN set -eux; \ rm -rf /var/lib/apt/lists/*; \ \ wget -O ruby.tar.xz "https://cache.ruby-lang.org/pub/ruby/${RUBY_MAJOR%-rc}/ruby-$RUBY_VERSION.tar.xz"; \ - echo "$RUBY_DOWNLOAD_SHA256 *ruby.tar.xz" | sha256sum --check --strict; \ + if [[ "$SKIP_CHECKSUM_CHECK" -ne "1" ]]; then \ + echo "$RUBY_DOWNLOAD_SHA256 *ruby.tar.xz" | sha256sum --check --strict; \ + fi; \ \ mkdir -p /usr/src/ruby; \ tar -xJf ruby.tar.xz -C /usr/src/ruby --strip-components=1; \ diff --git a/3.0/slim-bullseye/Dockerfile b/3.0/slim-bullseye/Dockerfile index 7f8ba05edc..41173fc8dd 100644 --- a/3.0/slim-bullseye/Dockerfile +++ b/3.0/slim-bullseye/Dockerfile @@ -63,7 +63,9 @@ RUN set -eux; \ rm -rf /var/lib/apt/lists/*; \ \ wget -O ruby.tar.xz "https://cache.ruby-lang.org/pub/ruby/${RUBY_MAJOR%-rc}/ruby-$RUBY_VERSION.tar.xz"; \ - echo "$RUBY_DOWNLOAD_SHA256 *ruby.tar.xz" | sha256sum --check --strict; \ + if [[ "$SKIP_CHECKSUM_CHECK" -ne "1" ]]; then \ + echo "$RUBY_DOWNLOAD_SHA256 *ruby.tar.xz" | sha256sum --check --strict; \ + fi; \ \ mkdir -p /usr/src/ruby; \ tar -xJf ruby.tar.xz -C /usr/src/ruby --strip-components=1; \ diff --git a/3.0/slim-buster/Dockerfile b/3.0/slim-buster/Dockerfile index d2d74ca983..ec6856c00f 100644 --- a/3.0/slim-buster/Dockerfile +++ b/3.0/slim-buster/Dockerfile @@ -63,7 +63,9 @@ RUN set -eux; \ rm -rf /var/lib/apt/lists/*; \ \ wget -O ruby.tar.xz "https://cache.ruby-lang.org/pub/ruby/${RUBY_MAJOR%-rc}/ruby-$RUBY_VERSION.tar.xz"; \ - echo "$RUBY_DOWNLOAD_SHA256 *ruby.tar.xz" | sha256sum --check --strict; \ + if [[ "$SKIP_CHECKSUM_CHECK" -ne "1" ]]; then \ + echo "$RUBY_DOWNLOAD_SHA256 *ruby.tar.xz" | sha256sum --check --strict; \ + fi; \ \ mkdir -p /usr/src/ruby; \ tar -xJf ruby.tar.xz -C /usr/src/ruby --strip-components=1; \ diff --git a/3.1/alpine3.18/Dockerfile b/3.1/alpine3.18/Dockerfile index eed94cc85b..9a185f0dc5 100644 --- a/3.1/alpine3.18/Dockerfile +++ b/3.1/alpine3.18/Dockerfile @@ -28,9 +28,14 @@ RUN set -eux; \ ENV LANG C.UTF-8 # https://www.ruby-lang.org/en/news/2024/04/23/ruby-3-1-5-released/ -ENV RUBY_VERSION 3.1.5 -ENV RUBY_DOWNLOAD_URL https://cache.ruby-lang.org/pub/ruby/3.1/ruby-3.1.5.tar.xz -ENV RUBY_DOWNLOAD_SHA256 f9375a45bdf1cc41298558e7ac6c367f7b6cdcccf7196618b21f0886ff583b91 +ARG RUBY_VERSION=3.1.5 +ARG RUBY_DOWNLOAD_URL=https://cache.ruby-lang.org/pub/ruby/3.1/ruby-3.1.5.tar.xz +ARG RUBY_DOWNLOAD_SHA256=f9375a45bdf1cc41298558e7ac6c367f7b6cdcccf7196618b21f0886ff583b91 +ARG SKIP_CHECKSUM_CHECK=0 +ENV RUBY_VERSION=${RUBY_VERSION} +ENV RUBY_DOWNLOAD_URL=${RUBY_DOWNLOAD_URL} +ENV RUBY_DOWNLOAD_SHA256=${RUBY_DOWNLOAD_SHA256} +ENV SKIP_CHECKSUM_CHECK=${SKIP_CHECKSUM_CHECK} # some of ruby's build scripts are written in ruby # we purge system ruby later to make sure our final image uses what we just built @@ -68,7 +73,9 @@ RUN set -eux; \ ; \ \ wget -O ruby.tar.xz "$RUBY_DOWNLOAD_URL"; \ - echo "$RUBY_DOWNLOAD_SHA256 *ruby.tar.xz" | sha256sum --check --strict; \ + if [[ "$SKIP_CHECKSUM_CHECK" -ne "1" ]]; then \ + echo "$RUBY_DOWNLOAD_SHA256 *ruby.tar.xz" | sha256sum --check --strict; \ + fi; \ \ mkdir -p /usr/src/ruby; \ tar -xJf ruby.tar.xz -C /usr/src/ruby --strip-components=1; \ diff --git a/3.1/alpine3.19/Dockerfile b/3.1/alpine3.19/Dockerfile index c965966336..78611fd2ba 100644 --- a/3.1/alpine3.19/Dockerfile +++ b/3.1/alpine3.19/Dockerfile @@ -28,9 +28,14 @@ RUN set -eux; \ ENV LANG C.UTF-8 # https://www.ruby-lang.org/en/news/2024/04/23/ruby-3-1-5-released/ -ENV RUBY_VERSION 3.1.5 -ENV RUBY_DOWNLOAD_URL https://cache.ruby-lang.org/pub/ruby/3.1/ruby-3.1.5.tar.xz -ENV RUBY_DOWNLOAD_SHA256 f9375a45bdf1cc41298558e7ac6c367f7b6cdcccf7196618b21f0886ff583b91 +ARG RUBY_VERSION=3.1.5 +ARG RUBY_DOWNLOAD_URL=https://cache.ruby-lang.org/pub/ruby/3.1/ruby-3.1.5.tar.xz +ARG RUBY_DOWNLOAD_SHA256=f9375a45bdf1cc41298558e7ac6c367f7b6cdcccf7196618b21f0886ff583b91 +ARG SKIP_CHECKSUM_CHECK=0 +ENV RUBY_VERSION=${RUBY_VERSION} +ENV RUBY_DOWNLOAD_URL=${RUBY_DOWNLOAD_URL} +ENV RUBY_DOWNLOAD_SHA256=${RUBY_DOWNLOAD_SHA256} +ENV SKIP_CHECKSUM_CHECK=${SKIP_CHECKSUM_CHECK} # some of ruby's build scripts are written in ruby # we purge system ruby later to make sure our final image uses what we just built @@ -68,7 +73,9 @@ RUN set -eux; \ ; \ \ wget -O ruby.tar.xz "$RUBY_DOWNLOAD_URL"; \ - echo "$RUBY_DOWNLOAD_SHA256 *ruby.tar.xz" | sha256sum --check --strict; \ + if [[ "$SKIP_CHECKSUM_CHECK" -ne "1" ]]; then \ + echo "$RUBY_DOWNLOAD_SHA256 *ruby.tar.xz" | sha256sum --check --strict; \ + fi; \ \ mkdir -p /usr/src/ruby; \ tar -xJf ruby.tar.xz -C /usr/src/ruby --strip-components=1; \ diff --git a/3.1/bookworm/Dockerfile b/3.1/bookworm/Dockerfile index 8d4fe5ce4a..b9a722a556 100644 --- a/3.1/bookworm/Dockerfile +++ b/3.1/bookworm/Dockerfile @@ -17,9 +17,14 @@ RUN set -eux; \ ENV LANG C.UTF-8 # https://www.ruby-lang.org/en/news/2024/04/23/ruby-3-1-5-released/ -ENV RUBY_VERSION 3.1.5 -ENV RUBY_DOWNLOAD_URL https://cache.ruby-lang.org/pub/ruby/3.1/ruby-3.1.5.tar.xz -ENV RUBY_DOWNLOAD_SHA256 f9375a45bdf1cc41298558e7ac6c367f7b6cdcccf7196618b21f0886ff583b91 +ARG RUBY_VERSION=3.1.5 +ARG RUBY_DOWNLOAD_URL=https://cache.ruby-lang.org/pub/ruby/3.1/ruby-3.1.5.tar.xz +ARG RUBY_DOWNLOAD_SHA256=f9375a45bdf1cc41298558e7ac6c367f7b6cdcccf7196618b21f0886ff583b91 +ARG SKIP_CHECKSUM_CHECK=0 +ENV RUBY_VERSION=${RUBY_VERSION} +ENV RUBY_DOWNLOAD_URL=${RUBY_DOWNLOAD_URL} +ENV RUBY_DOWNLOAD_SHA256=${RUBY_DOWNLOAD_SHA256} +ENV SKIP_CHECKSUM_CHECK=${SKIP_CHECKSUM_CHECK} # some of ruby's build scripts are written in ruby # we purge system ruby later to make sure our final image uses what we just built @@ -36,7 +41,9 @@ RUN set -eux; \ rm -rf /var/lib/apt/lists/*; \ \ wget -O ruby.tar.xz "$RUBY_DOWNLOAD_URL"; \ - echo "$RUBY_DOWNLOAD_SHA256 *ruby.tar.xz" | sha256sum --check --strict; \ + if [[ "$SKIP_CHECKSUM_CHECK" -ne "1" ]]; then \ + echo "$RUBY_DOWNLOAD_SHA256 *ruby.tar.xz" | sha256sum --check --strict; \ + fi; \ \ mkdir -p /usr/src/ruby; \ tar -xJf ruby.tar.xz -C /usr/src/ruby --strip-components=1; \ diff --git a/3.1/bullseye/Dockerfile b/3.1/bullseye/Dockerfile index 07bad766c5..7d5ce008db 100644 --- a/3.1/bullseye/Dockerfile +++ b/3.1/bullseye/Dockerfile @@ -17,9 +17,14 @@ RUN set -eux; \ ENV LANG C.UTF-8 # https://www.ruby-lang.org/en/news/2024/04/23/ruby-3-1-5-released/ -ENV RUBY_VERSION 3.1.5 -ENV RUBY_DOWNLOAD_URL https://cache.ruby-lang.org/pub/ruby/3.1/ruby-3.1.5.tar.xz -ENV RUBY_DOWNLOAD_SHA256 f9375a45bdf1cc41298558e7ac6c367f7b6cdcccf7196618b21f0886ff583b91 +ARG RUBY_VERSION=3.1.5 +ARG RUBY_DOWNLOAD_URL=https://cache.ruby-lang.org/pub/ruby/3.1/ruby-3.1.5.tar.xz +ARG RUBY_DOWNLOAD_SHA256=f9375a45bdf1cc41298558e7ac6c367f7b6cdcccf7196618b21f0886ff583b91 +ARG SKIP_CHECKSUM_CHECK=0 +ENV RUBY_VERSION=${RUBY_VERSION} +ENV RUBY_DOWNLOAD_URL=${RUBY_DOWNLOAD_URL} +ENV RUBY_DOWNLOAD_SHA256=${RUBY_DOWNLOAD_SHA256} +ENV SKIP_CHECKSUM_CHECK=${SKIP_CHECKSUM_CHECK} # some of ruby's build scripts are written in ruby # we purge system ruby later to make sure our final image uses what we just built @@ -36,7 +41,9 @@ RUN set -eux; \ rm -rf /var/lib/apt/lists/*; \ \ wget -O ruby.tar.xz "$RUBY_DOWNLOAD_URL"; \ - echo "$RUBY_DOWNLOAD_SHA256 *ruby.tar.xz" | sha256sum --check --strict; \ + if [[ "$SKIP_CHECKSUM_CHECK" -ne "1" ]]; then \ + echo "$RUBY_DOWNLOAD_SHA256 *ruby.tar.xz" | sha256sum --check --strict; \ + fi; \ \ mkdir -p /usr/src/ruby; \ tar -xJf ruby.tar.xz -C /usr/src/ruby --strip-components=1; \ diff --git a/3.1/slim-bookworm/Dockerfile b/3.1/slim-bookworm/Dockerfile index f6adcb60a9..d757523478 100644 --- a/3.1/slim-bookworm/Dockerfile +++ b/3.1/slim-bookworm/Dockerfile @@ -31,9 +31,14 @@ RUN set -eux; \ ENV LANG C.UTF-8 # https://www.ruby-lang.org/en/news/2024/04/23/ruby-3-1-5-released/ -ENV RUBY_VERSION 3.1.5 -ENV RUBY_DOWNLOAD_URL https://cache.ruby-lang.org/pub/ruby/3.1/ruby-3.1.5.tar.xz -ENV RUBY_DOWNLOAD_SHA256 f9375a45bdf1cc41298558e7ac6c367f7b6cdcccf7196618b21f0886ff583b91 +ARG RUBY_VERSION=3.1.5 +ARG RUBY_DOWNLOAD_URL=https://cache.ruby-lang.org/pub/ruby/3.1/ruby-3.1.5.tar.xz +ARG RUBY_DOWNLOAD_SHA256=f9375a45bdf1cc41298558e7ac6c367f7b6cdcccf7196618b21f0886ff583b91 +ARG SKIP_CHECKSUM_CHECK=0 +ENV RUBY_VERSION=${RUBY_VERSION} +ENV RUBY_DOWNLOAD_URL=${RUBY_DOWNLOAD_URL} +ENV RUBY_DOWNLOAD_SHA256=${RUBY_DOWNLOAD_SHA256} +ENV SKIP_CHECKSUM_CHECK=${SKIP_CHECKSUM_CHECK} # some of ruby's build scripts are written in ruby # we purge system ruby later to make sure our final image uses what we just built @@ -63,7 +68,9 @@ RUN set -eux; \ rm -rf /var/lib/apt/lists/*; \ \ wget -O ruby.tar.xz "$RUBY_DOWNLOAD_URL"; \ - echo "$RUBY_DOWNLOAD_SHA256 *ruby.tar.xz" | sha256sum --check --strict; \ + if [[ "$SKIP_CHECKSUM_CHECK" -ne "1" ]]; then \ + echo "$RUBY_DOWNLOAD_SHA256 *ruby.tar.xz" | sha256sum --check --strict; \ + fi; \ \ mkdir -p /usr/src/ruby; \ tar -xJf ruby.tar.xz -C /usr/src/ruby --strip-components=1; \ diff --git a/3.1/slim-bullseye/Dockerfile b/3.1/slim-bullseye/Dockerfile index e442181419..945c3e4e1b 100644 --- a/3.1/slim-bullseye/Dockerfile +++ b/3.1/slim-bullseye/Dockerfile @@ -31,9 +31,14 @@ RUN set -eux; \ ENV LANG C.UTF-8 # https://www.ruby-lang.org/en/news/2024/04/23/ruby-3-1-5-released/ -ENV RUBY_VERSION 3.1.5 -ENV RUBY_DOWNLOAD_URL https://cache.ruby-lang.org/pub/ruby/3.1/ruby-3.1.5.tar.xz -ENV RUBY_DOWNLOAD_SHA256 f9375a45bdf1cc41298558e7ac6c367f7b6cdcccf7196618b21f0886ff583b91 +ARG RUBY_VERSION=3.1.5 +ARG RUBY_DOWNLOAD_URL=https://cache.ruby-lang.org/pub/ruby/3.1/ruby-3.1.5.tar.xz +ARG RUBY_DOWNLOAD_SHA256=f9375a45bdf1cc41298558e7ac6c367f7b6cdcccf7196618b21f0886ff583b91 +ARG SKIP_CHECKSUM_CHECK=0 +ENV RUBY_VERSION=${RUBY_VERSION} +ENV RUBY_DOWNLOAD_URL=${RUBY_DOWNLOAD_URL} +ENV RUBY_DOWNLOAD_SHA256=${RUBY_DOWNLOAD_SHA256} +ENV SKIP_CHECKSUM_CHECK=${SKIP_CHECKSUM_CHECK} # some of ruby's build scripts are written in ruby # we purge system ruby later to make sure our final image uses what we just built @@ -63,7 +68,9 @@ RUN set -eux; \ rm -rf /var/lib/apt/lists/*; \ \ wget -O ruby.tar.xz "$RUBY_DOWNLOAD_URL"; \ - echo "$RUBY_DOWNLOAD_SHA256 *ruby.tar.xz" | sha256sum --check --strict; \ + if [[ "$SKIP_CHECKSUM_CHECK" -ne "1" ]]; then \ + echo "$RUBY_DOWNLOAD_SHA256 *ruby.tar.xz" | sha256sum --check --strict; \ + fi; \ \ mkdir -p /usr/src/ruby; \ tar -xJf ruby.tar.xz -C /usr/src/ruby --strip-components=1; \ diff --git a/3.2/alpine3.18/Dockerfile b/3.2/alpine3.18/Dockerfile index b7ad3ec2d3..9513cfaa32 100644 --- a/3.2/alpine3.18/Dockerfile +++ b/3.2/alpine3.18/Dockerfile @@ -28,9 +28,14 @@ RUN set -eux; \ ENV LANG C.UTF-8 # https://www.ruby-lang.org/en/news/2024/04/23/ruby-3-2-4-released/ -ENV RUBY_VERSION 3.2.4 -ENV RUBY_DOWNLOAD_URL https://cache.ruby-lang.org/pub/ruby/3.2/ruby-3.2.4.tar.xz -ENV RUBY_DOWNLOAD_SHA256 e7f1653d653232ec433472489a91afbc7433c9f760cc822defe7437c9d95791b +ARG RUBY_VERSION=3.2.4 +ARG RUBY_DOWNLOAD_URL=https://cache.ruby-lang.org/pub/ruby/3.2/ruby-3.2.4.tar.xz +ARG RUBY_DOWNLOAD_SHA256=e7f1653d653232ec433472489a91afbc7433c9f760cc822defe7437c9d95791b +ARG SKIP_CHECKSUM_CHECK=0 +ENV RUBY_VERSION=${RUBY_VERSION} +ENV RUBY_DOWNLOAD_URL=${RUBY_DOWNLOAD_URL} +ENV RUBY_DOWNLOAD_SHA256=${RUBY_DOWNLOAD_SHA256} +ENV SKIP_CHECKSUM_CHECK=${SKIP_CHECKSUM_CHECK} # some of ruby's build scripts are written in ruby # we purge system ruby later to make sure our final image uses what we just built @@ -90,7 +95,9 @@ RUN set -eux; \ fi; \ \ wget -O ruby.tar.xz "$RUBY_DOWNLOAD_URL"; \ - echo "$RUBY_DOWNLOAD_SHA256 *ruby.tar.xz" | sha256sum --check --strict; \ + if [[ "$SKIP_CHECKSUM_CHECK" -ne "1" ]]; then \ + echo "$RUBY_DOWNLOAD_SHA256 *ruby.tar.xz" | sha256sum --check --strict; \ + fi; \ \ mkdir -p /usr/src/ruby; \ tar -xJf ruby.tar.xz -C /usr/src/ruby --strip-components=1; \ diff --git a/3.2/alpine3.19/Dockerfile b/3.2/alpine3.19/Dockerfile index a8c92e9cfb..f858bd5d21 100644 --- a/3.2/alpine3.19/Dockerfile +++ b/3.2/alpine3.19/Dockerfile @@ -28,9 +28,14 @@ RUN set -eux; \ ENV LANG C.UTF-8 # https://www.ruby-lang.org/en/news/2024/04/23/ruby-3-2-4-released/ -ENV RUBY_VERSION 3.2.4 -ENV RUBY_DOWNLOAD_URL https://cache.ruby-lang.org/pub/ruby/3.2/ruby-3.2.4.tar.xz -ENV RUBY_DOWNLOAD_SHA256 e7f1653d653232ec433472489a91afbc7433c9f760cc822defe7437c9d95791b +ARG RUBY_VERSION=3.2.4 +ARG RUBY_DOWNLOAD_URL=https://cache.ruby-lang.org/pub/ruby/3.2/ruby-3.2.4.tar.xz +ARG RUBY_DOWNLOAD_SHA256=e7f1653d653232ec433472489a91afbc7433c9f760cc822defe7437c9d95791b +ARG SKIP_CHECKSUM_CHECK=0 +ENV RUBY_VERSION=${RUBY_VERSION} +ENV RUBY_DOWNLOAD_URL=${RUBY_DOWNLOAD_URL} +ENV RUBY_DOWNLOAD_SHA256=${RUBY_DOWNLOAD_SHA256} +ENV SKIP_CHECKSUM_CHECK=${SKIP_CHECKSUM_CHECK} # some of ruby's build scripts are written in ruby # we purge system ruby later to make sure our final image uses what we just built @@ -90,7 +95,9 @@ RUN set -eux; \ fi; \ \ wget -O ruby.tar.xz "$RUBY_DOWNLOAD_URL"; \ - echo "$RUBY_DOWNLOAD_SHA256 *ruby.tar.xz" | sha256sum --check --strict; \ + if [[ "$SKIP_CHECKSUM_CHECK" -ne "1" ]]; then \ + echo "$RUBY_DOWNLOAD_SHA256 *ruby.tar.xz" | sha256sum --check --strict; \ + fi; \ \ mkdir -p /usr/src/ruby; \ tar -xJf ruby.tar.xz -C /usr/src/ruby --strip-components=1; \ diff --git a/3.2/bookworm/Dockerfile b/3.2/bookworm/Dockerfile index 74ce1a0dfb..b94f1ccda3 100644 --- a/3.2/bookworm/Dockerfile +++ b/3.2/bookworm/Dockerfile @@ -17,9 +17,14 @@ RUN set -eux; \ ENV LANG C.UTF-8 # https://www.ruby-lang.org/en/news/2024/04/23/ruby-3-2-4-released/ -ENV RUBY_VERSION 3.2.4 -ENV RUBY_DOWNLOAD_URL https://cache.ruby-lang.org/pub/ruby/3.2/ruby-3.2.4.tar.xz -ENV RUBY_DOWNLOAD_SHA256 e7f1653d653232ec433472489a91afbc7433c9f760cc822defe7437c9d95791b +ARG RUBY_VERSION=3.2.4 +ARG RUBY_DOWNLOAD_URL=https://cache.ruby-lang.org/pub/ruby/3.2/ruby-3.2.4.tar.xz +ARG RUBY_DOWNLOAD_SHA256=e7f1653d653232ec433472489a91afbc7433c9f760cc822defe7437c9d95791b +ARG SKIP_CHECKSUM_CHECK=0 +ENV RUBY_VERSION=${RUBY_VERSION} +ENV RUBY_DOWNLOAD_URL=${RUBY_DOWNLOAD_URL} +ENV RUBY_DOWNLOAD_SHA256=${RUBY_DOWNLOAD_SHA256} +ENV SKIP_CHECKSUM_CHECK=${SKIP_CHECKSUM_CHECK} # some of ruby's build scripts are written in ruby # we purge system ruby later to make sure our final image uses what we just built @@ -58,7 +63,9 @@ RUN set -eux; \ fi; \ \ wget -O ruby.tar.xz "$RUBY_DOWNLOAD_URL"; \ - echo "$RUBY_DOWNLOAD_SHA256 *ruby.tar.xz" | sha256sum --check --strict; \ + if [[ "$SKIP_CHECKSUM_CHECK" -ne "1" ]]; then \ + echo "$RUBY_DOWNLOAD_SHA256 *ruby.tar.xz" | sha256sum --check --strict; \ + fi; \ \ mkdir -p /usr/src/ruby; \ tar -xJf ruby.tar.xz -C /usr/src/ruby --strip-components=1; \ diff --git a/3.2/bullseye/Dockerfile b/3.2/bullseye/Dockerfile index 2b070f6c2f..2ebcfc77aa 100644 --- a/3.2/bullseye/Dockerfile +++ b/3.2/bullseye/Dockerfile @@ -17,9 +17,14 @@ RUN set -eux; \ ENV LANG C.UTF-8 # https://www.ruby-lang.org/en/news/2024/04/23/ruby-3-2-4-released/ -ENV RUBY_VERSION 3.2.4 -ENV RUBY_DOWNLOAD_URL https://cache.ruby-lang.org/pub/ruby/3.2/ruby-3.2.4.tar.xz -ENV RUBY_DOWNLOAD_SHA256 e7f1653d653232ec433472489a91afbc7433c9f760cc822defe7437c9d95791b +ARG RUBY_VERSION=3.2.4 +ARG RUBY_DOWNLOAD_URL=https://cache.ruby-lang.org/pub/ruby/3.2/ruby-3.2.4.tar.xz +ARG RUBY_DOWNLOAD_SHA256=e7f1653d653232ec433472489a91afbc7433c9f760cc822defe7437c9d95791b +ARG SKIP_CHECKSUM_CHECK=0 +ENV RUBY_VERSION=${RUBY_VERSION} +ENV RUBY_DOWNLOAD_URL=${RUBY_DOWNLOAD_URL} +ENV RUBY_DOWNLOAD_SHA256=${RUBY_DOWNLOAD_SHA256} +ENV SKIP_CHECKSUM_CHECK=${SKIP_CHECKSUM_CHECK} # some of ruby's build scripts are written in ruby # we purge system ruby later to make sure our final image uses what we just built @@ -58,7 +63,9 @@ RUN set -eux; \ fi; \ \ wget -O ruby.tar.xz "$RUBY_DOWNLOAD_URL"; \ - echo "$RUBY_DOWNLOAD_SHA256 *ruby.tar.xz" | sha256sum --check --strict; \ + if [[ "$SKIP_CHECKSUM_CHECK" -ne "1" ]]; then \ + echo "$RUBY_DOWNLOAD_SHA256 *ruby.tar.xz" | sha256sum --check --strict; \ + fi; \ \ mkdir -p /usr/src/ruby; \ tar -xJf ruby.tar.xz -C /usr/src/ruby --strip-components=1; \ diff --git a/3.2/slim-bookworm/Dockerfile b/3.2/slim-bookworm/Dockerfile index bf66d8db02..57d85b40ab 100644 --- a/3.2/slim-bookworm/Dockerfile +++ b/3.2/slim-bookworm/Dockerfile @@ -31,9 +31,14 @@ RUN set -eux; \ ENV LANG C.UTF-8 # https://www.ruby-lang.org/en/news/2024/04/23/ruby-3-2-4-released/ -ENV RUBY_VERSION 3.2.4 -ENV RUBY_DOWNLOAD_URL https://cache.ruby-lang.org/pub/ruby/3.2/ruby-3.2.4.tar.xz -ENV RUBY_DOWNLOAD_SHA256 e7f1653d653232ec433472489a91afbc7433c9f760cc822defe7437c9d95791b +ARG RUBY_VERSION=3.2.4 +ARG RUBY_DOWNLOAD_URL=https://cache.ruby-lang.org/pub/ruby/3.2/ruby-3.2.4.tar.xz +ARG RUBY_DOWNLOAD_SHA256=e7f1653d653232ec433472489a91afbc7433c9f760cc822defe7437c9d95791b +ARG SKIP_CHECKSUM_CHECK=0 +ENV RUBY_VERSION=${RUBY_VERSION} +ENV RUBY_DOWNLOAD_URL=${RUBY_DOWNLOAD_URL} +ENV RUBY_DOWNLOAD_SHA256=${RUBY_DOWNLOAD_SHA256} +ENV SKIP_CHECKSUM_CHECK=${SKIP_CHECKSUM_CHECK} # some of ruby's build scripts are written in ruby # we purge system ruby later to make sure our final image uses what we just built @@ -85,7 +90,9 @@ RUN set -eux; \ fi; \ \ wget -O ruby.tar.xz "$RUBY_DOWNLOAD_URL"; \ - echo "$RUBY_DOWNLOAD_SHA256 *ruby.tar.xz" | sha256sum --check --strict; \ + if [[ "$SKIP_CHECKSUM_CHECK" -ne "1" ]]; then \ + echo "$RUBY_DOWNLOAD_SHA256 *ruby.tar.xz" | sha256sum --check --strict; \ + fi; \ \ mkdir -p /usr/src/ruby; \ tar -xJf ruby.tar.xz -C /usr/src/ruby --strip-components=1; \ diff --git a/3.2/slim-bullseye/Dockerfile b/3.2/slim-bullseye/Dockerfile index 23897b7fa5..80e0274995 100644 --- a/3.2/slim-bullseye/Dockerfile +++ b/3.2/slim-bullseye/Dockerfile @@ -31,9 +31,14 @@ RUN set -eux; \ ENV LANG C.UTF-8 # https://www.ruby-lang.org/en/news/2024/04/23/ruby-3-2-4-released/ -ENV RUBY_VERSION 3.2.4 -ENV RUBY_DOWNLOAD_URL https://cache.ruby-lang.org/pub/ruby/3.2/ruby-3.2.4.tar.xz -ENV RUBY_DOWNLOAD_SHA256 e7f1653d653232ec433472489a91afbc7433c9f760cc822defe7437c9d95791b +ARG RUBY_VERSION=3.2.4 +ARG RUBY_DOWNLOAD_URL=https://cache.ruby-lang.org/pub/ruby/3.2/ruby-3.2.4.tar.xz +ARG RUBY_DOWNLOAD_SHA256=e7f1653d653232ec433472489a91afbc7433c9f760cc822defe7437c9d95791b +ARG SKIP_CHECKSUM_CHECK=0 +ENV RUBY_VERSION=${RUBY_VERSION} +ENV RUBY_DOWNLOAD_URL=${RUBY_DOWNLOAD_URL} +ENV RUBY_DOWNLOAD_SHA256=${RUBY_DOWNLOAD_SHA256} +ENV SKIP_CHECKSUM_CHECK=${SKIP_CHECKSUM_CHECK} # some of ruby's build scripts are written in ruby # we purge system ruby later to make sure our final image uses what we just built @@ -85,7 +90,9 @@ RUN set -eux; \ fi; \ \ wget -O ruby.tar.xz "$RUBY_DOWNLOAD_URL"; \ - echo "$RUBY_DOWNLOAD_SHA256 *ruby.tar.xz" | sha256sum --check --strict; \ + if [[ "$SKIP_CHECKSUM_CHECK" -ne "1" ]]; then \ + echo "$RUBY_DOWNLOAD_SHA256 *ruby.tar.xz" | sha256sum --check --strict; \ + fi; \ \ mkdir -p /usr/src/ruby; \ tar -xJf ruby.tar.xz -C /usr/src/ruby --strip-components=1; \ diff --git a/3.3/alpine3.18/Dockerfile b/3.3/alpine3.18/Dockerfile index 324bd23658..6ccf118ad1 100644 --- a/3.3/alpine3.18/Dockerfile +++ b/3.3/alpine3.18/Dockerfile @@ -28,9 +28,14 @@ RUN set -eux; \ ENV LANG C.UTF-8 # https://www.ruby-lang.org/en/news/2024/04/23/ruby-3-3-1-released/ -ENV RUBY_VERSION 3.3.1 -ENV RUBY_DOWNLOAD_URL https://cache.ruby-lang.org/pub/ruby/3.3/ruby-3.3.1.tar.xz -ENV RUBY_DOWNLOAD_SHA256 0686941a3ec395a15ae2a852487b2a88e5fb8a5518e188df00d8d1bb71a6349b +ARG RUBY_VERSION=3.3.1 +ARG RUBY_DOWNLOAD_URL=https://cache.ruby-lang.org/pub/ruby/3.3/ruby-3.3.1.tar.xz +ARG RUBY_DOWNLOAD_SHA256=0686941a3ec395a15ae2a852487b2a88e5fb8a5518e188df00d8d1bb71a6349b +ARG SKIP_CHECKSUM_CHECK=0 +ENV RUBY_VERSION=${RUBY_VERSION} +ENV RUBY_DOWNLOAD_URL=${RUBY_DOWNLOAD_URL} +ENV RUBY_DOWNLOAD_SHA256=${RUBY_DOWNLOAD_SHA256} +ENV SKIP_CHECKSUM_CHECK=${SKIP_CHECKSUM_CHECK} # some of ruby's build scripts are written in ruby # we purge system ruby later to make sure our final image uses what we just built @@ -88,7 +93,9 @@ RUN set -eux; \ fi; \ \ wget -O ruby.tar.xz "$RUBY_DOWNLOAD_URL"; \ - echo "$RUBY_DOWNLOAD_SHA256 *ruby.tar.xz" | sha256sum --check --strict; \ + if [[ "$SKIP_CHECKSUM_CHECK" -ne "1" ]]; then \ + echo "$RUBY_DOWNLOAD_SHA256 *ruby.tar.xz" | sha256sum --check --strict; \ + fi; \ \ mkdir -p /usr/src/ruby; \ tar -xJf ruby.tar.xz -C /usr/src/ruby --strip-components=1; \ diff --git a/3.3/alpine3.19/Dockerfile b/3.3/alpine3.19/Dockerfile index 40fcaabad2..11d7d6aa4b 100644 --- a/3.3/alpine3.19/Dockerfile +++ b/3.3/alpine3.19/Dockerfile @@ -28,9 +28,14 @@ RUN set -eux; \ ENV LANG C.UTF-8 # https://www.ruby-lang.org/en/news/2024/04/23/ruby-3-3-1-released/ -ENV RUBY_VERSION 3.3.1 -ENV RUBY_DOWNLOAD_URL https://cache.ruby-lang.org/pub/ruby/3.3/ruby-3.3.1.tar.xz -ENV RUBY_DOWNLOAD_SHA256 0686941a3ec395a15ae2a852487b2a88e5fb8a5518e188df00d8d1bb71a6349b +ARG RUBY_VERSION=3.3.1 +ARG RUBY_DOWNLOAD_URL=https://cache.ruby-lang.org/pub/ruby/3.3/ruby-3.3.1.tar.xz +ARG RUBY_DOWNLOAD_SHA256=0686941a3ec395a15ae2a852487b2a88e5fb8a5518e188df00d8d1bb71a6349b +ARG SKIP_CHECKSUM_CHECK=0 +ENV RUBY_VERSION=${RUBY_VERSION} +ENV RUBY_DOWNLOAD_URL=${RUBY_DOWNLOAD_URL} +ENV RUBY_DOWNLOAD_SHA256=${RUBY_DOWNLOAD_SHA256} +ENV SKIP_CHECKSUM_CHECK=${SKIP_CHECKSUM_CHECK} # some of ruby's build scripts are written in ruby # we purge system ruby later to make sure our final image uses what we just built @@ -88,7 +93,9 @@ RUN set -eux; \ fi; \ \ wget -O ruby.tar.xz "$RUBY_DOWNLOAD_URL"; \ - echo "$RUBY_DOWNLOAD_SHA256 *ruby.tar.xz" | sha256sum --check --strict; \ + if [[ "$SKIP_CHECKSUM_CHECK" -ne "1" ]]; then \ + echo "$RUBY_DOWNLOAD_SHA256 *ruby.tar.xz" | sha256sum --check --strict; \ + fi; \ \ mkdir -p /usr/src/ruby; \ tar -xJf ruby.tar.xz -C /usr/src/ruby --strip-components=1; \ diff --git a/3.3/bookworm/Dockerfile b/3.3/bookworm/Dockerfile index edccd883ed..23fa816bd6 100644 --- a/3.3/bookworm/Dockerfile +++ b/3.3/bookworm/Dockerfile @@ -17,9 +17,14 @@ RUN set -eux; \ ENV LANG C.UTF-8 # https://www.ruby-lang.org/en/news/2024/04/23/ruby-3-3-1-released/ -ENV RUBY_VERSION 3.3.1 -ENV RUBY_DOWNLOAD_URL https://cache.ruby-lang.org/pub/ruby/3.3/ruby-3.3.1.tar.xz -ENV RUBY_DOWNLOAD_SHA256 0686941a3ec395a15ae2a852487b2a88e5fb8a5518e188df00d8d1bb71a6349b +ARG RUBY_VERSION=3.3.1 +ARG RUBY_DOWNLOAD_URL=https://cache.ruby-lang.org/pub/ruby/3.3/ruby-3.3.1.tar.xz +ARG RUBY_DOWNLOAD_SHA256=0686941a3ec395a15ae2a852487b2a88e5fb8a5518e188df00d8d1bb71a6349b +ARG SKIP_CHECKSUM_CHECK=0 +ENV RUBY_VERSION=${RUBY_VERSION} +ENV RUBY_DOWNLOAD_URL=${RUBY_DOWNLOAD_URL} +ENV RUBY_DOWNLOAD_SHA256=${RUBY_DOWNLOAD_SHA256} +ENV SKIP_CHECKSUM_CHECK=${SKIP_CHECKSUM_CHECK} # some of ruby's build scripts are written in ruby # we purge system ruby later to make sure our final image uses what we just built @@ -57,7 +62,9 @@ RUN set -eux; \ fi; \ \ wget -O ruby.tar.xz "$RUBY_DOWNLOAD_URL"; \ - echo "$RUBY_DOWNLOAD_SHA256 *ruby.tar.xz" | sha256sum --check --strict; \ + if [[ "$SKIP_CHECKSUM_CHECK" -ne "1" ]]; then \ + echo "$RUBY_DOWNLOAD_SHA256 *ruby.tar.xz" | sha256sum --check --strict; \ + fi; \ \ mkdir -p /usr/src/ruby; \ tar -xJf ruby.tar.xz -C /usr/src/ruby --strip-components=1; \ diff --git a/3.3/bullseye/Dockerfile b/3.3/bullseye/Dockerfile index f03e56f183..2458321f13 100644 --- a/3.3/bullseye/Dockerfile +++ b/3.3/bullseye/Dockerfile @@ -17,9 +17,14 @@ RUN set -eux; \ ENV LANG C.UTF-8 # https://www.ruby-lang.org/en/news/2024/04/23/ruby-3-3-1-released/ -ENV RUBY_VERSION 3.3.1 -ENV RUBY_DOWNLOAD_URL https://cache.ruby-lang.org/pub/ruby/3.3/ruby-3.3.1.tar.xz -ENV RUBY_DOWNLOAD_SHA256 0686941a3ec395a15ae2a852487b2a88e5fb8a5518e188df00d8d1bb71a6349b +ARG RUBY_VERSION=3.3.1 +ARG RUBY_DOWNLOAD_URL=https://cache.ruby-lang.org/pub/ruby/3.3/ruby-3.3.1.tar.xz +ARG RUBY_DOWNLOAD_SHA256=0686941a3ec395a15ae2a852487b2a88e5fb8a5518e188df00d8d1bb71a6349b +ARG SKIP_CHECKSUM_CHECK=0 +ENV RUBY_VERSION=${RUBY_VERSION} +ENV RUBY_DOWNLOAD_URL=${RUBY_DOWNLOAD_URL} +ENV RUBY_DOWNLOAD_SHA256=${RUBY_DOWNLOAD_SHA256} +ENV SKIP_CHECKSUM_CHECK=${SKIP_CHECKSUM_CHECK} # some of ruby's build scripts are written in ruby # we purge system ruby later to make sure our final image uses what we just built @@ -57,7 +62,9 @@ RUN set -eux; \ fi; \ \ wget -O ruby.tar.xz "$RUBY_DOWNLOAD_URL"; \ - echo "$RUBY_DOWNLOAD_SHA256 *ruby.tar.xz" | sha256sum --check --strict; \ + if [[ "$SKIP_CHECKSUM_CHECK" -ne "1" ]]; then \ + echo "$RUBY_DOWNLOAD_SHA256 *ruby.tar.xz" | sha256sum --check --strict; \ + fi; \ \ mkdir -p /usr/src/ruby; \ tar -xJf ruby.tar.xz -C /usr/src/ruby --strip-components=1; \ diff --git a/3.3/slim-bookworm/Dockerfile b/3.3/slim-bookworm/Dockerfile index 5af2387d6d..6dc064d377 100644 --- a/3.3/slim-bookworm/Dockerfile +++ b/3.3/slim-bookworm/Dockerfile @@ -31,9 +31,14 @@ RUN set -eux; \ ENV LANG C.UTF-8 # https://www.ruby-lang.org/en/news/2024/04/23/ruby-3-3-1-released/ -ENV RUBY_VERSION 3.3.1 -ENV RUBY_DOWNLOAD_URL https://cache.ruby-lang.org/pub/ruby/3.3/ruby-3.3.1.tar.xz -ENV RUBY_DOWNLOAD_SHA256 0686941a3ec395a15ae2a852487b2a88e5fb8a5518e188df00d8d1bb71a6349b +ARG RUBY_VERSION=3.3.1 +ARG RUBY_DOWNLOAD_URL=https://cache.ruby-lang.org/pub/ruby/3.3/ruby-3.3.1.tar.xz +ARG RUBY_DOWNLOAD_SHA256=0686941a3ec395a15ae2a852487b2a88e5fb8a5518e188df00d8d1bb71a6349b +ARG SKIP_CHECKSUM_CHECK=0 +ENV RUBY_VERSION=${RUBY_VERSION} +ENV RUBY_DOWNLOAD_URL=${RUBY_DOWNLOAD_URL} +ENV RUBY_DOWNLOAD_SHA256=${RUBY_DOWNLOAD_SHA256} +ENV SKIP_CHECKSUM_CHECK=${SKIP_CHECKSUM_CHECK} # some of ruby's build scripts are written in ruby # we purge system ruby later to make sure our final image uses what we just built @@ -83,7 +88,9 @@ RUN set -eux; \ fi; \ \ wget -O ruby.tar.xz "$RUBY_DOWNLOAD_URL"; \ - echo "$RUBY_DOWNLOAD_SHA256 *ruby.tar.xz" | sha256sum --check --strict; \ + if [[ "$SKIP_CHECKSUM_CHECK" -ne "1" ]]; then \ + echo "$RUBY_DOWNLOAD_SHA256 *ruby.tar.xz" | sha256sum --check --strict; \ + fi; \ \ mkdir -p /usr/src/ruby; \ tar -xJf ruby.tar.xz -C /usr/src/ruby --strip-components=1; \ diff --git a/3.3/slim-bullseye/Dockerfile b/3.3/slim-bullseye/Dockerfile index 436b9af0f8..9877610c1b 100644 --- a/3.3/slim-bullseye/Dockerfile +++ b/3.3/slim-bullseye/Dockerfile @@ -31,9 +31,14 @@ RUN set -eux; \ ENV LANG C.UTF-8 # https://www.ruby-lang.org/en/news/2024/04/23/ruby-3-3-1-released/ -ENV RUBY_VERSION 3.3.1 -ENV RUBY_DOWNLOAD_URL https://cache.ruby-lang.org/pub/ruby/3.3/ruby-3.3.1.tar.xz -ENV RUBY_DOWNLOAD_SHA256 0686941a3ec395a15ae2a852487b2a88e5fb8a5518e188df00d8d1bb71a6349b +ARG RUBY_VERSION=3.3.1 +ARG RUBY_DOWNLOAD_URL=https://cache.ruby-lang.org/pub/ruby/3.3/ruby-3.3.1.tar.xz +ARG RUBY_DOWNLOAD_SHA256=0686941a3ec395a15ae2a852487b2a88e5fb8a5518e188df00d8d1bb71a6349b +ARG SKIP_CHECKSUM_CHECK=0 +ENV RUBY_VERSION=${RUBY_VERSION} +ENV RUBY_DOWNLOAD_URL=${RUBY_DOWNLOAD_URL} +ENV RUBY_DOWNLOAD_SHA256=${RUBY_DOWNLOAD_SHA256} +ENV SKIP_CHECKSUM_CHECK=${SKIP_CHECKSUM_CHECK} # some of ruby's build scripts are written in ruby # we purge system ruby later to make sure our final image uses what we just built @@ -83,7 +88,9 @@ RUN set -eux; \ fi; \ \ wget -O ruby.tar.xz "$RUBY_DOWNLOAD_URL"; \ - echo "$RUBY_DOWNLOAD_SHA256 *ruby.tar.xz" | sha256sum --check --strict; \ + if [[ "$SKIP_CHECKSUM_CHECK" -ne "1" ]]; then \ + echo "$RUBY_DOWNLOAD_SHA256 *ruby.tar.xz" | sha256sum --check --strict; \ + fi; \ \ mkdir -p /usr/src/ruby; \ tar -xJf ruby.tar.xz -C /usr/src/ruby --strip-components=1; \ diff --git a/Dockerfile.template b/Dockerfile.template index 5bbca8b1ea..4dbd3f5f48 100644 --- a/Dockerfile.template +++ b/Dockerfile.template @@ -57,9 +57,14 @@ ENV RUBY_MAJOR {{ env.version }} ENV RUBY_VERSION {{ .version }} ENV RUBY_DOWNLOAD_SHA256 {{ .sha256.xz }} {{ ) else ( -}} -ENV RUBY_VERSION {{ .version }} -ENV RUBY_DOWNLOAD_URL {{ .url.xz }} -ENV RUBY_DOWNLOAD_SHA256 {{ .sha256.xz }} +ARG RUBY_VERSION={{ .version }} +ARG RUBY_DOWNLOAD_URL={{ .url.xz }} +ARG RUBY_DOWNLOAD_SHA256={{ .sha256.xz }} +ARG SKIP_CHECKSUM_CHECK=0 +ENV RUBY_VERSION=${RUBY_VERSION} +ENV RUBY_DOWNLOAD_URL=${RUBY_DOWNLOAD_URL} +ENV RUBY_DOWNLOAD_SHA256=${RUBY_DOWNLOAD_SHA256} +ENV SKIP_CHECKSUM_CHECK=${SKIP_CHECKSUM_CHECK} {{ ) end -}} # some of ruby's build scripts are written in ruby @@ -209,7 +214,9 @@ RUN set -eux; \ {{ ) else ( -}} wget -O ruby.tar.xz "$RUBY_DOWNLOAD_URL"; \ {{ ) end -}} - echo "$RUBY_DOWNLOAD_SHA256 *ruby.tar.xz" | sha256sum --check --strict; \ + if [[ "$SKIP_CHECKSUM_CHECK" -ne "1" ]]; then \ + echo "$RUBY_DOWNLOAD_SHA256 *ruby.tar.xz" | sha256sum --check --strict; \ + fi; \ \ mkdir -p /usr/src/ruby; \ tar -xJf ruby.tar.xz -C /usr/src/ruby --strip-components=1; \