mirror of
https://github.com/docker-library/ruby.git
synced 2022-11-09 11:41:34 -05:00
Download smaller ruby tarball xz instead of gz
This commit is contained in:
parent
d82d2672e0
commit
6e2934a351
16 changed files with 91 additions and 75 deletions
|
@ -9,7 +9,7 @@ RUN mkdir -p /usr/local/etc \
|
|||
|
||||
ENV RUBY_MAJOR 2.1
|
||||
ENV RUBY_VERSION 2.1.10
|
||||
ENV RUBY_DOWNLOAD_SHA256 fb2e454d7a5e5a39eb54db0ec666f53eeb6edc593d1d2b970ae4d150b831dd20
|
||||
ENV RUBY_DOWNLOAD_SHA256 5be9f8d5d29d252cd7f969ab7550e31bbb001feb4a83532301c0dd3b5006e148
|
||||
ENV RUBYGEMS_VERSION 2.6.8
|
||||
|
||||
# some of ruby's build scripts are written in ruby
|
||||
|
@ -20,17 +20,18 @@ RUN set -ex \
|
|||
bison \
|
||||
libgdbm-dev \
|
||||
ruby \
|
||||
xz-utils \
|
||||
' \
|
||||
&& apt-get update \
|
||||
&& apt-get install -y --no-install-recommends $buildDeps \
|
||||
&& rm -rf /var/lib/apt/lists/* \
|
||||
\
|
||||
&& wget -O ruby.tar.gz "https://cache.ruby-lang.org/pub/ruby/${RUBY_MAJOR%-rc}/ruby-$RUBY_VERSION.tar.gz" \
|
||||
&& echo "$RUBY_DOWNLOAD_SHA256 *ruby.tar.gz" | sha256sum -c - \
|
||||
&& 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 -c - \
|
||||
\
|
||||
&& mkdir -p /usr/src/ruby \
|
||||
&& tar -xzf ruby.tar.gz -C /usr/src/ruby --strip-components=1 \
|
||||
&& rm ruby.tar.gz \
|
||||
&& tar -xJf ruby.tar.xz -C /usr/src/ruby --strip-components=1 \
|
||||
&& rm ruby.tar.xz \
|
||||
\
|
||||
&& cd /usr/src/ruby \
|
||||
\
|
||||
|
|
|
@ -9,7 +9,7 @@ RUN mkdir -p /usr/local/etc \
|
|||
|
||||
ENV RUBY_MAJOR 2.1
|
||||
ENV RUBY_VERSION 2.1.10
|
||||
ENV RUBY_DOWNLOAD_SHA256 fb2e454d7a5e5a39eb54db0ec666f53eeb6edc593d1d2b970ae4d150b831dd20
|
||||
ENV RUBY_DOWNLOAD_SHA256 5be9f8d5d29d252cd7f969ab7550e31bbb001feb4a83532301c0dd3b5006e148
|
||||
ENV RUBYGEMS_VERSION 2.6.8
|
||||
|
||||
# some of ruby's build scripts are written in ruby
|
||||
|
@ -42,13 +42,14 @@ RUN set -ex \
|
|||
tar \
|
||||
yaml-dev \
|
||||
zlib-dev \
|
||||
xz \
|
||||
\
|
||||
&& wget -O ruby.tar.gz "https://cache.ruby-lang.org/pub/ruby/${RUBY_MAJOR%-rc}/ruby-$RUBY_VERSION.tar.gz" \
|
||||
&& echo "$RUBY_DOWNLOAD_SHA256 *ruby.tar.gz" | sha256sum -c - \
|
||||
&& 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 -c - \
|
||||
\
|
||||
&& mkdir -p /usr/src/ruby \
|
||||
&& tar -xzf ruby.tar.gz -C /usr/src/ruby --strip-components=1 \
|
||||
&& rm ruby.tar.gz \
|
||||
&& tar -xJf ruby.tar.xz -C /usr/src/ruby --strip-components=1 \
|
||||
&& rm ruby.tar.xz \
|
||||
\
|
||||
&& cd /usr/src/ruby \
|
||||
\
|
||||
|
|
|
@ -21,7 +21,7 @@ RUN mkdir -p /usr/local/etc \
|
|||
|
||||
ENV RUBY_MAJOR 2.1
|
||||
ENV RUBY_VERSION 2.1.10
|
||||
ENV RUBY_DOWNLOAD_SHA256 fb2e454d7a5e5a39eb54db0ec666f53eeb6edc593d1d2b970ae4d150b831dd20
|
||||
ENV RUBY_DOWNLOAD_SHA256 5be9f8d5d29d252cd7f969ab7550e31bbb001feb4a83532301c0dd3b5006e148
|
||||
ENV RUBYGEMS_VERSION 2.6.8
|
||||
|
||||
# some of ruby's build scripts are written in ruby
|
||||
|
@ -42,17 +42,18 @@ RUN set -ex \
|
|||
make \
|
||||
ruby \
|
||||
wget \
|
||||
xz-utils \
|
||||
' \
|
||||
&& apt-get update \
|
||||
&& apt-get install -y --no-install-recommends $buildDeps \
|
||||
&& rm -rf /var/lib/apt/lists/* \
|
||||
\
|
||||
&& wget -O ruby.tar.gz "https://cache.ruby-lang.org/pub/ruby/${RUBY_MAJOR%-rc}/ruby-$RUBY_VERSION.tar.gz" \
|
||||
&& echo "$RUBY_DOWNLOAD_SHA256 *ruby.tar.gz" | sha256sum -c - \
|
||||
&& 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 -c - \
|
||||
\
|
||||
&& mkdir -p /usr/src/ruby \
|
||||
&& tar -xzf ruby.tar.gz -C /usr/src/ruby --strip-components=1 \
|
||||
&& rm ruby.tar.gz \
|
||||
&& tar -xJf ruby.tar.xz -C /usr/src/ruby --strip-components=1 \
|
||||
&& rm ruby.tar.xz \
|
||||
\
|
||||
&& cd /usr/src/ruby \
|
||||
\
|
||||
|
|
|
@ -9,7 +9,7 @@ RUN mkdir -p /usr/local/etc \
|
|||
|
||||
ENV RUBY_MAJOR 2.2
|
||||
ENV RUBY_VERSION 2.2.6
|
||||
ENV RUBY_DOWNLOAD_SHA256 de8e192791cb157d610c48a9a9ff6e7f19d67ce86052feae62b82e3682cc675f
|
||||
ENV RUBY_DOWNLOAD_SHA256 9414ecc0d09cf71c9a24e8dc82fcc87919ac7359fb08db2791d6c32bfd157339
|
||||
ENV RUBYGEMS_VERSION 2.6.8
|
||||
|
||||
# some of ruby's build scripts are written in ruby
|
||||
|
@ -20,17 +20,18 @@ RUN set -ex \
|
|||
bison \
|
||||
libgdbm-dev \
|
||||
ruby \
|
||||
xz-utils \
|
||||
' \
|
||||
&& apt-get update \
|
||||
&& apt-get install -y --no-install-recommends $buildDeps \
|
||||
&& rm -rf /var/lib/apt/lists/* \
|
||||
\
|
||||
&& wget -O ruby.tar.gz "https://cache.ruby-lang.org/pub/ruby/${RUBY_MAJOR%-rc}/ruby-$RUBY_VERSION.tar.gz" \
|
||||
&& echo "$RUBY_DOWNLOAD_SHA256 *ruby.tar.gz" | sha256sum -c - \
|
||||
&& 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 -c - \
|
||||
\
|
||||
&& mkdir -p /usr/src/ruby \
|
||||
&& tar -xzf ruby.tar.gz -C /usr/src/ruby --strip-components=1 \
|
||||
&& rm ruby.tar.gz \
|
||||
&& tar -xJf ruby.tar.xz -C /usr/src/ruby --strip-components=1 \
|
||||
&& rm ruby.tar.xz \
|
||||
\
|
||||
&& cd /usr/src/ruby \
|
||||
\
|
||||
|
|
|
@ -9,7 +9,7 @@ RUN mkdir -p /usr/local/etc \
|
|||
|
||||
ENV RUBY_MAJOR 2.2
|
||||
ENV RUBY_VERSION 2.2.6
|
||||
ENV RUBY_DOWNLOAD_SHA256 de8e192791cb157d610c48a9a9ff6e7f19d67ce86052feae62b82e3682cc675f
|
||||
ENV RUBY_DOWNLOAD_SHA256 9414ecc0d09cf71c9a24e8dc82fcc87919ac7359fb08db2791d6c32bfd157339
|
||||
ENV RUBYGEMS_VERSION 2.6.8
|
||||
|
||||
# some of ruby's build scripts are written in ruby
|
||||
|
@ -42,13 +42,14 @@ RUN set -ex \
|
|||
tar \
|
||||
yaml-dev \
|
||||
zlib-dev \
|
||||
xz \
|
||||
\
|
||||
&& wget -O ruby.tar.gz "https://cache.ruby-lang.org/pub/ruby/${RUBY_MAJOR%-rc}/ruby-$RUBY_VERSION.tar.gz" \
|
||||
&& echo "$RUBY_DOWNLOAD_SHA256 *ruby.tar.gz" | sha256sum -c - \
|
||||
&& 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 -c - \
|
||||
\
|
||||
&& mkdir -p /usr/src/ruby \
|
||||
&& tar -xzf ruby.tar.gz -C /usr/src/ruby --strip-components=1 \
|
||||
&& rm ruby.tar.gz \
|
||||
&& tar -xJf ruby.tar.xz -C /usr/src/ruby --strip-components=1 \
|
||||
&& rm ruby.tar.xz \
|
||||
\
|
||||
&& cd /usr/src/ruby \
|
||||
\
|
||||
|
|
|
@ -21,7 +21,7 @@ RUN mkdir -p /usr/local/etc \
|
|||
|
||||
ENV RUBY_MAJOR 2.2
|
||||
ENV RUBY_VERSION 2.2.6
|
||||
ENV RUBY_DOWNLOAD_SHA256 de8e192791cb157d610c48a9a9ff6e7f19d67ce86052feae62b82e3682cc675f
|
||||
ENV RUBY_DOWNLOAD_SHA256 9414ecc0d09cf71c9a24e8dc82fcc87919ac7359fb08db2791d6c32bfd157339
|
||||
ENV RUBYGEMS_VERSION 2.6.8
|
||||
|
||||
# some of ruby's build scripts are written in ruby
|
||||
|
@ -42,17 +42,18 @@ RUN set -ex \
|
|||
make \
|
||||
ruby \
|
||||
wget \
|
||||
xz-utils \
|
||||
' \
|
||||
&& apt-get update \
|
||||
&& apt-get install -y --no-install-recommends $buildDeps \
|
||||
&& rm -rf /var/lib/apt/lists/* \
|
||||
\
|
||||
&& wget -O ruby.tar.gz "https://cache.ruby-lang.org/pub/ruby/${RUBY_MAJOR%-rc}/ruby-$RUBY_VERSION.tar.gz" \
|
||||
&& echo "$RUBY_DOWNLOAD_SHA256 *ruby.tar.gz" | sha256sum -c - \
|
||||
&& 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 -c - \
|
||||
\
|
||||
&& mkdir -p /usr/src/ruby \
|
||||
&& tar -xzf ruby.tar.gz -C /usr/src/ruby --strip-components=1 \
|
||||
&& rm ruby.tar.gz \
|
||||
&& tar -xJf ruby.tar.xz -C /usr/src/ruby --strip-components=1 \
|
||||
&& rm ruby.tar.xz \
|
||||
\
|
||||
&& cd /usr/src/ruby \
|
||||
\
|
||||
|
|
|
@ -9,7 +9,7 @@ RUN mkdir -p /usr/local/etc \
|
|||
|
||||
ENV RUBY_MAJOR 2.3
|
||||
ENV RUBY_VERSION 2.3.3
|
||||
ENV RUBY_DOWNLOAD_SHA256 241408c8c555b258846368830a06146e4849a1d58dcaf6b14a3b6a73058115b7
|
||||
ENV RUBY_DOWNLOAD_SHA256 1a4fa8c2885734ba37b97ffdb4a19b8fba0e8982606db02d936e65bac07419dc
|
||||
ENV RUBYGEMS_VERSION 2.6.8
|
||||
|
||||
# some of ruby's build scripts are written in ruby
|
||||
|
@ -20,17 +20,18 @@ RUN set -ex \
|
|||
bison \
|
||||
libgdbm-dev \
|
||||
ruby \
|
||||
xz-utils \
|
||||
' \
|
||||
&& apt-get update \
|
||||
&& apt-get install -y --no-install-recommends $buildDeps \
|
||||
&& rm -rf /var/lib/apt/lists/* \
|
||||
\
|
||||
&& wget -O ruby.tar.gz "https://cache.ruby-lang.org/pub/ruby/${RUBY_MAJOR%-rc}/ruby-$RUBY_VERSION.tar.gz" \
|
||||
&& echo "$RUBY_DOWNLOAD_SHA256 *ruby.tar.gz" | sha256sum -c - \
|
||||
&& 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 -c - \
|
||||
\
|
||||
&& mkdir -p /usr/src/ruby \
|
||||
&& tar -xzf ruby.tar.gz -C /usr/src/ruby --strip-components=1 \
|
||||
&& rm ruby.tar.gz \
|
||||
&& tar -xJf ruby.tar.xz -C /usr/src/ruby --strip-components=1 \
|
||||
&& rm ruby.tar.xz \
|
||||
\
|
||||
&& cd /usr/src/ruby \
|
||||
\
|
||||
|
|
|
@ -9,7 +9,7 @@ RUN mkdir -p /usr/local/etc \
|
|||
|
||||
ENV RUBY_MAJOR 2.3
|
||||
ENV RUBY_VERSION 2.3.3
|
||||
ENV RUBY_DOWNLOAD_SHA256 241408c8c555b258846368830a06146e4849a1d58dcaf6b14a3b6a73058115b7
|
||||
ENV RUBY_DOWNLOAD_SHA256 1a4fa8c2885734ba37b97ffdb4a19b8fba0e8982606db02d936e65bac07419dc
|
||||
ENV RUBYGEMS_VERSION 2.6.8
|
||||
|
||||
# some of ruby's build scripts are written in ruby
|
||||
|
@ -42,13 +42,14 @@ RUN set -ex \
|
|||
tar \
|
||||
yaml-dev \
|
||||
zlib-dev \
|
||||
xz \
|
||||
\
|
||||
&& wget -O ruby.tar.gz "https://cache.ruby-lang.org/pub/ruby/${RUBY_MAJOR%-rc}/ruby-$RUBY_VERSION.tar.gz" \
|
||||
&& echo "$RUBY_DOWNLOAD_SHA256 *ruby.tar.gz" | sha256sum -c - \
|
||||
&& 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 -c - \
|
||||
\
|
||||
&& mkdir -p /usr/src/ruby \
|
||||
&& tar -xzf ruby.tar.gz -C /usr/src/ruby --strip-components=1 \
|
||||
&& rm ruby.tar.gz \
|
||||
&& tar -xJf ruby.tar.xz -C /usr/src/ruby --strip-components=1 \
|
||||
&& rm ruby.tar.xz \
|
||||
\
|
||||
&& cd /usr/src/ruby \
|
||||
\
|
||||
|
|
|
@ -21,7 +21,7 @@ RUN mkdir -p /usr/local/etc \
|
|||
|
||||
ENV RUBY_MAJOR 2.3
|
||||
ENV RUBY_VERSION 2.3.3
|
||||
ENV RUBY_DOWNLOAD_SHA256 241408c8c555b258846368830a06146e4849a1d58dcaf6b14a3b6a73058115b7
|
||||
ENV RUBY_DOWNLOAD_SHA256 1a4fa8c2885734ba37b97ffdb4a19b8fba0e8982606db02d936e65bac07419dc
|
||||
ENV RUBYGEMS_VERSION 2.6.8
|
||||
|
||||
# some of ruby's build scripts are written in ruby
|
||||
|
@ -42,17 +42,18 @@ RUN set -ex \
|
|||
make \
|
||||
ruby \
|
||||
wget \
|
||||
xz-utils \
|
||||
' \
|
||||
&& apt-get update \
|
||||
&& apt-get install -y --no-install-recommends $buildDeps \
|
||||
&& rm -rf /var/lib/apt/lists/* \
|
||||
\
|
||||
&& wget -O ruby.tar.gz "https://cache.ruby-lang.org/pub/ruby/${RUBY_MAJOR%-rc}/ruby-$RUBY_VERSION.tar.gz" \
|
||||
&& echo "$RUBY_DOWNLOAD_SHA256 *ruby.tar.gz" | sha256sum -c - \
|
||||
&& 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 -c - \
|
||||
\
|
||||
&& mkdir -p /usr/src/ruby \
|
||||
&& tar -xzf ruby.tar.gz -C /usr/src/ruby --strip-components=1 \
|
||||
&& rm ruby.tar.gz \
|
||||
&& tar -xJf ruby.tar.xz -C /usr/src/ruby --strip-components=1 \
|
||||
&& rm ruby.tar.xz \
|
||||
\
|
||||
&& cd /usr/src/ruby \
|
||||
\
|
||||
|
|
|
@ -9,7 +9,7 @@ RUN mkdir -p /usr/local/etc \
|
|||
|
||||
ENV RUBY_MAJOR 2.4
|
||||
ENV RUBY_VERSION 2.4.0
|
||||
ENV RUBY_DOWNLOAD_SHA256 152fd0bd15a90b4a18213448f485d4b53e9f7662e1508190aa5b702446b29e3d
|
||||
ENV RUBY_DOWNLOAD_SHA256 3a87fef45cba48b9322236be60c455c13fd4220184ce7287600361319bb63690
|
||||
ENV RUBYGEMS_VERSION 2.6.8
|
||||
|
||||
# some of ruby's build scripts are written in ruby
|
||||
|
@ -20,17 +20,18 @@ RUN set -ex \
|
|||
bison \
|
||||
libgdbm-dev \
|
||||
ruby \
|
||||
xz-utils \
|
||||
' \
|
||||
&& apt-get update \
|
||||
&& apt-get install -y --no-install-recommends $buildDeps \
|
||||
&& rm -rf /var/lib/apt/lists/* \
|
||||
\
|
||||
&& wget -O ruby.tar.gz "https://cache.ruby-lang.org/pub/ruby/${RUBY_MAJOR%-rc}/ruby-$RUBY_VERSION.tar.gz" \
|
||||
&& echo "$RUBY_DOWNLOAD_SHA256 *ruby.tar.gz" | sha256sum -c - \
|
||||
&& 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 -c - \
|
||||
\
|
||||
&& mkdir -p /usr/src/ruby \
|
||||
&& tar -xzf ruby.tar.gz -C /usr/src/ruby --strip-components=1 \
|
||||
&& rm ruby.tar.gz \
|
||||
&& tar -xJf ruby.tar.xz -C /usr/src/ruby --strip-components=1 \
|
||||
&& rm ruby.tar.xz \
|
||||
\
|
||||
&& cd /usr/src/ruby \
|
||||
\
|
||||
|
|
|
@ -9,7 +9,7 @@ RUN mkdir -p /usr/local/etc \
|
|||
|
||||
ENV RUBY_MAJOR 2.4
|
||||
ENV RUBY_VERSION 2.4.0
|
||||
ENV RUBY_DOWNLOAD_SHA256 152fd0bd15a90b4a18213448f485d4b53e9f7662e1508190aa5b702446b29e3d
|
||||
ENV RUBY_DOWNLOAD_SHA256 3a87fef45cba48b9322236be60c455c13fd4220184ce7287600361319bb63690
|
||||
ENV RUBYGEMS_VERSION 2.6.8
|
||||
|
||||
# some of ruby's build scripts are written in ruby
|
||||
|
@ -42,13 +42,14 @@ RUN set -ex \
|
|||
tar \
|
||||
yaml-dev \
|
||||
zlib-dev \
|
||||
xz \
|
||||
\
|
||||
&& wget -O ruby.tar.gz "https://cache.ruby-lang.org/pub/ruby/${RUBY_MAJOR%-rc}/ruby-$RUBY_VERSION.tar.gz" \
|
||||
&& echo "$RUBY_DOWNLOAD_SHA256 *ruby.tar.gz" | sha256sum -c - \
|
||||
&& 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 -c - \
|
||||
\
|
||||
&& mkdir -p /usr/src/ruby \
|
||||
&& tar -xzf ruby.tar.gz -C /usr/src/ruby --strip-components=1 \
|
||||
&& rm ruby.tar.gz \
|
||||
&& tar -xJf ruby.tar.xz -C /usr/src/ruby --strip-components=1 \
|
||||
&& rm ruby.tar.xz \
|
||||
\
|
||||
&& cd /usr/src/ruby \
|
||||
\
|
||||
|
|
|
@ -21,7 +21,7 @@ RUN mkdir -p /usr/local/etc \
|
|||
|
||||
ENV RUBY_MAJOR 2.4
|
||||
ENV RUBY_VERSION 2.4.0
|
||||
ENV RUBY_DOWNLOAD_SHA256 152fd0bd15a90b4a18213448f485d4b53e9f7662e1508190aa5b702446b29e3d
|
||||
ENV RUBY_DOWNLOAD_SHA256 3a87fef45cba48b9322236be60c455c13fd4220184ce7287600361319bb63690
|
||||
ENV RUBYGEMS_VERSION 2.6.8
|
||||
|
||||
# some of ruby's build scripts are written in ruby
|
||||
|
@ -42,17 +42,18 @@ RUN set -ex \
|
|||
make \
|
||||
ruby \
|
||||
wget \
|
||||
xz-utils \
|
||||
' \
|
||||
&& apt-get update \
|
||||
&& apt-get install -y --no-install-recommends $buildDeps \
|
||||
&& rm -rf /var/lib/apt/lists/* \
|
||||
\
|
||||
&& wget -O ruby.tar.gz "https://cache.ruby-lang.org/pub/ruby/${RUBY_MAJOR%-rc}/ruby-$RUBY_VERSION.tar.gz" \
|
||||
&& echo "$RUBY_DOWNLOAD_SHA256 *ruby.tar.gz" | sha256sum -c - \
|
||||
&& 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 -c - \
|
||||
\
|
||||
&& mkdir -p /usr/src/ruby \
|
||||
&& tar -xzf ruby.tar.gz -C /usr/src/ruby --strip-components=1 \
|
||||
&& rm ruby.tar.gz \
|
||||
&& tar -xJf ruby.tar.xz -C /usr/src/ruby --strip-components=1 \
|
||||
&& rm ruby.tar.xz \
|
||||
\
|
||||
&& cd /usr/src/ruby \
|
||||
\
|
||||
|
|
|
@ -42,13 +42,14 @@ RUN set -ex \
|
|||
tar \
|
||||
yaml-dev \
|
||||
zlib-dev \
|
||||
xz \
|
||||
\
|
||||
&& wget -O ruby.tar.gz "https://cache.ruby-lang.org/pub/ruby/${RUBY_MAJOR%-rc}/ruby-$RUBY_VERSION.tar.gz" \
|
||||
&& echo "$RUBY_DOWNLOAD_SHA256 *ruby.tar.gz" | sha256sum -c - \
|
||||
&& 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 -c - \
|
||||
\
|
||||
&& mkdir -p /usr/src/ruby \
|
||||
&& tar -xzf ruby.tar.gz -C /usr/src/ruby --strip-components=1 \
|
||||
&& rm ruby.tar.gz \
|
||||
&& tar -xJf ruby.tar.xz -C /usr/src/ruby --strip-components=1 \
|
||||
&& rm ruby.tar.xz \
|
||||
\
|
||||
&& cd /usr/src/ruby \
|
||||
\
|
||||
|
|
|
@ -42,17 +42,18 @@ RUN set -ex \
|
|||
make \
|
||||
ruby \
|
||||
wget \
|
||||
xz-utils \
|
||||
' \
|
||||
&& apt-get update \
|
||||
&& apt-get install -y --no-install-recommends $buildDeps \
|
||||
&& rm -rf /var/lib/apt/lists/* \
|
||||
\
|
||||
&& wget -O ruby.tar.gz "https://cache.ruby-lang.org/pub/ruby/${RUBY_MAJOR%-rc}/ruby-$RUBY_VERSION.tar.gz" \
|
||||
&& echo "$RUBY_DOWNLOAD_SHA256 *ruby.tar.gz" | sha256sum -c - \
|
||||
&& 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 -c - \
|
||||
\
|
||||
&& mkdir -p /usr/src/ruby \
|
||||
&& tar -xzf ruby.tar.gz -C /usr/src/ruby --strip-components=1 \
|
||||
&& rm ruby.tar.gz \
|
||||
&& tar -xJf ruby.tar.xz -C /usr/src/ruby --strip-components=1 \
|
||||
&& rm ruby.tar.xz \
|
||||
\
|
||||
&& cd /usr/src/ruby \
|
||||
\
|
||||
|
|
|
@ -20,17 +20,18 @@ RUN set -ex \
|
|||
bison \
|
||||
libgdbm-dev \
|
||||
ruby \
|
||||
xz-utils \
|
||||
' \
|
||||
&& apt-get update \
|
||||
&& apt-get install -y --no-install-recommends $buildDeps \
|
||||
&& rm -rf /var/lib/apt/lists/* \
|
||||
\
|
||||
&& wget -O ruby.tar.gz "https://cache.ruby-lang.org/pub/ruby/${RUBY_MAJOR%-rc}/ruby-$RUBY_VERSION.tar.gz" \
|
||||
&& echo "$RUBY_DOWNLOAD_SHA256 *ruby.tar.gz" | sha256sum -c - \
|
||||
&& 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 -c - \
|
||||
\
|
||||
&& mkdir -p /usr/src/ruby \
|
||||
&& tar -xzf ruby.tar.gz -C /usr/src/ruby --strip-components=1 \
|
||||
&& rm ruby.tar.gz \
|
||||
&& tar -xJf ruby.tar.xz -C /usr/src/ruby --strip-components=1 \
|
||||
&& rm ruby.tar.xz \
|
||||
\
|
||||
&& cd /usr/src/ruby \
|
||||
\
|
||||
|
|
|
@ -8,7 +8,7 @@ if [ ${#versions[@]} -eq 0 ]; then
|
|||
versions=( */ )
|
||||
fi
|
||||
versions=( "${versions[@]%/}" )
|
||||
shaPage=$(curl -fsSL 'https://www.ruby-lang.org/en/downloads/' | tr '\r\n' ' ')
|
||||
releasePage=$(curl -fsSL 'https://www.ruby-lang.org/en/downloads/releases/' | tr '\r\n' ' ')
|
||||
|
||||
latest_gem_version() {
|
||||
curl -sSL "https://rubygems.org/api/v1/gems/$1.json" | sed -r 's/^.*"version":"([^"]+)".*$/\1/'
|
||||
|
@ -35,7 +35,7 @@ for version in "${versions[@]}"; do
|
|||
|
||||
fullVersion=
|
||||
for tryVersion in "${allVersions[@]}"; do
|
||||
if echo "$shaPage" | grep -q "Ruby ${tryVersion}<"; then
|
||||
if echo "$releasePage" | grep -q "Ruby ${tryVersion}<"; then
|
||||
fullVersion="$tryVersion"
|
||||
break
|
||||
fi
|
||||
|
@ -45,7 +45,8 @@ for version in "${versions[@]}"; do
|
|||
echo >&2 "warning: cannot determine sha for $version (tried all of ${allVersions[*]}); skipping"
|
||||
continue
|
||||
fi
|
||||
shaVal="$(echo "$shaPage" | sed -r "s/.*Ruby ${fullVersion}<\/a><br \/>\s*sha256: ([^<]+).*/\1/")"
|
||||
versionReleasePage="$(curl -fsSL 'https://www.ruby-lang.org/en/downloads/releases/' | grep "<td>Ruby $fullVersion</td>" -A 2 | awk -F'"' '{print $2}' | xargs)"
|
||||
shaVal="$(curl -fsSL "https://www.ruby-lang.org/$versionReleasePage" | grep "ruby-$fullVersion.tar.xz" -A 5 | grep SHA256 | awk '{print $2}')"
|
||||
|
||||
sedStr="
|
||||
s!%%VERSION%%!$version!g;
|
||||
|
|
Loading…
Reference in a new issue