.ci/docker/jruby/13-jdk/Dockerfile in elastic-apm-4.6.1 vs .ci/docker/jruby/13-jdk/Dockerfile in elastic-apm-4.6.2
- old
+ new
@@ -4,14 +4,14 @@
&& apt-get install -y libc6-dev git tcc curl netbase --no-install-recommends \
&& apt-get install -y gcc \
&& rm -rf /var/lib/apt/lists/*
ENV JRUBY_VERSION 9.3.1.0
-ENV JRUBY_SHA256 9199707712c683c525252ccb1de5cb8e75f53b790c5b57a18f6367039ec79553
RUN mkdir -p /opt/jruby \
+ && curl -fSL https://repo1.maven.org/maven2/org/jruby/jruby-dist/${JRUBY_VERSION}/jruby-dist-${JRUBY_VERSION}-bin.tar.gz.sha256 -o /tmp/jruby.sha256 \
&& curl -fSL https://repo1.maven.org/maven2/org/jruby/jruby-dist/${JRUBY_VERSION}/jruby-dist-${JRUBY_VERSION}-bin.tar.gz -o /tmp/jruby.tar.gz \
- && echo "$JRUBY_SHA256 */tmp/jruby.tar.gz" | sha256sum -c - \
+ && echo "$(cat /tmp/jruby.sha256) */tmp/jruby.tar.gz" | sha256sum -c - \
&& tar -zx --strip-components=1 -f /tmp/jruby.tar.gz -C /opt/jruby \
&& update-alternatives --install /usr/local/bin/ruby ruby /opt/jruby/bin/jruby 1
# set the jruby binaries in the path
ENV PATH /opt/jruby/bin:$PATH