diff --git a/3.0/alpine3.16/Dockerfile b/3.0/alpine3.16/Dockerfile index 76f99ef7d..644eb34be 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 1bbb0cbfe..7ac98915f 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 ddf71619e..f8370acd7 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 7f8ba05ed..41173fc8d 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 d2d74ca98..ec6856c00 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 eed94cc85..eb8f9f16c 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 c96596633..d0f3c258c 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 8d4fe5ce4..d3c4ee4c7 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 07bad766c..f38d594ce 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 f6adcb60a..af58969ac 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 e44218141..41ad2dea1 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 b7ad3ec2d..ec4942160 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 a8c92e9cf..bbbe0aacb 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 74ce1a0df..fa6c1b4a8 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 2b070f6c2..5cb759d7b 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 bf66d8db0..0c7fc9d63 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 23897b7fa..5f615d9ea 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 324bd2365..38a4c365b 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 40fcaabad..1ae1b3f8f 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 edccd883e..75d6c7bc9 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 f03e56f18..e45fe714f 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 5af2387d6..479291415 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 436b9af0f..91821a51f 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 5bbca8b1e..1645e8358 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; \