File tree Expand file tree Collapse file tree 6 files changed +152
-0
lines changed Expand file tree Collapse file tree 6 files changed +152
-0
lines changed Original file line number Diff line number Diff line change 1+ 10.0.0.0
Original file line number Diff line number Diff line change 1+ FROM eclipse-temurin:21-jdk-jammy
2+
3+ RUN apt-get update && apt-get install -y libc6-dev make --no-install-recommends && rm -rf /var/lib/apt/lists/*
4+
5+ ENV JRUBY_VERSION 10.0.0.0
6+ ENV JRUBY_SHA256 427d9827ed23fe6b4d11fe61665c75dd7476ba36a0438376eb310ce2a8d24733
7+ RUN mkdir /opt/jruby \
8+ && 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 \
9+ && echo "$JRUBY_SHA256 /tmp/jruby.tar.gz" | sha256sum -c - \
10+ && tar -zx --strip-components=1 -f /tmp/jruby.tar.gz -C /opt/jruby \
11+ && rm /tmp/jruby.tar.gz \
12+ && update-alternatives --install /usr/local/bin/ruby ruby /opt/jruby/bin/jruby 1
13+ ENV PATH /opt/jruby/bin:$PATH
14+
15+ # skip installing gem documentation
16+ RUN mkdir -p /opt/jruby/etc \
17+ && { \
18+ echo 'install: --no-document' ; \
19+ echo 'update: --no-document' ; \
20+ } >> /opt/jruby/etc/gemrc
21+
22+ RUN gem install bundler rake net-telnet xmlrpc
23+
24+ # don't create ".bundle" in all our apps
25+ ENV GEM_HOME /usr/local/bundle
26+ ENV BUNDLE_SILENCE_ROOT_WARNING=1 \
27+ BUNDLE_APP_CONFIG="$GEM_HOME"
28+ ENV PATH $GEM_HOME/bin:$PATH
29+ # adjust permissions of a few directories for running "gem install" as an arbitrary user
30+ RUN mkdir -p "$GEM_HOME" && chmod 777 "$GEM_HOME"
31+
32+ CMD [ "irb" ]
33+
Original file line number Diff line number Diff line change 1+ FROM eclipse-temurin:24-jdk-jammy
2+
3+ RUN apt-get update && apt-get install -y libc6-dev make --no-install-recommends && rm -rf /var/lib/apt/lists/*
4+
5+ ENV JRUBY_VERSION 10.0.0.0
6+ ENV JRUBY_SHA256 427d9827ed23fe6b4d11fe61665c75dd7476ba36a0438376eb310ce2a8d24733
7+ RUN mkdir /opt/jruby \
8+ && 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 \
9+ && echo "$JRUBY_SHA256 /tmp/jruby.tar.gz" | sha256sum -c - \
10+ && tar -zx --strip-components=1 -f /tmp/jruby.tar.gz -C /opt/jruby \
11+ && rm /tmp/jruby.tar.gz \
12+ && update-alternatives --install /usr/local/bin/ruby ruby /opt/jruby/bin/jruby 1
13+ ENV PATH /opt/jruby/bin:$PATH
14+
15+ # skip installing gem documentation
16+ RUN mkdir -p /opt/jruby/etc \
17+ && { \
18+ echo 'install: --no-document' ; \
19+ echo 'update: --no-document' ; \
20+ } >> /opt/jruby/etc/gemrc
21+
22+ RUN gem install bundler rake net-telnet xmlrpc
23+
24+ # don't create ".bundle" in all our apps
25+ ENV GEM_HOME /usr/local/bundle
26+ ENV BUNDLE_SILENCE_ROOT_WARNING=1 \
27+ BUNDLE_APP_CONFIG="$GEM_HOME"
28+ ENV PATH $GEM_HOME/bin:$PATH
29+ # adjust permissions of a few directories for running "gem install" as an arbitrary user
30+ RUN mkdir -p "$GEM_HOME" && chmod 777 "$GEM_HOME"
31+
32+ CMD [ "irb" ]
33+
Original file line number Diff line number Diff line change 1+ FROM eclipse-temurin:21-jre-jammy
2+
3+ RUN apt-get update && apt-get install -y libc6-dev make --no-install-recommends && rm -rf /var/lib/apt/lists/*
4+
5+ ENV JRUBY_VERSION 10.0.0.0
6+ ENV JRUBY_SHA256 427d9827ed23fe6b4d11fe61665c75dd7476ba36a0438376eb310ce2a8d24733
7+ RUN mkdir /opt/jruby \
8+ && 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 \
9+ && echo "$JRUBY_SHA256 /tmp/jruby.tar.gz" | sha256sum -c - \
10+ && tar -zx --strip-components=1 -f /tmp/jruby.tar.gz -C /opt/jruby \
11+ && rm /tmp/jruby.tar.gz \
12+ && update-alternatives --install /usr/local/bin/ruby ruby /opt/jruby/bin/jruby 1
13+ ENV PATH /opt/jruby/bin:$PATH
14+
15+ # skip installing gem documentation
16+ RUN mkdir -p /opt/jruby/etc \
17+ && { \
18+ echo 'install: --no-document' ; \
19+ echo 'update: --no-document' ; \
20+ } >> /opt/jruby/etc/gemrc
21+
22+ RUN gem install bundler rake net-telnet xmlrpc
23+
24+ # don't create ".bundle" in all our apps
25+ ENV GEM_HOME /usr/local/bundle
26+ ENV BUNDLE_SILENCE_ROOT_WARNING=1 \
27+ BUNDLE_APP_CONFIG="$GEM_HOME"
28+ ENV PATH $GEM_HOME/bin:$PATH
29+ # adjust permissions of a few directories for running "gem install" as an arbitrary user
30+ RUN mkdir -p "$GEM_HOME" && chmod 777 "$GEM_HOME"
31+
32+ CMD [ "irb" ]
33+
Original file line number Diff line number Diff line change 1+ FROM eclipse-temurin:24-jre-jammy
2+
3+ RUN apt-get update && apt-get install -y libc6-dev make --no-install-recommends && rm -rf /var/lib/apt/lists/*
4+
5+ ENV JRUBY_VERSION 10.0.0.0
6+ ENV JRUBY_SHA256 427d9827ed23fe6b4d11fe61665c75dd7476ba36a0438376eb310ce2a8d24733
7+ RUN mkdir /opt/jruby \
8+ && 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 \
9+ && echo "$JRUBY_SHA256 /tmp/jruby.tar.gz" | sha256sum -c - \
10+ && tar -zx --strip-components=1 -f /tmp/jruby.tar.gz -C /opt/jruby \
11+ && rm /tmp/jruby.tar.gz \
12+ && update-alternatives --install /usr/local/bin/ruby ruby /opt/jruby/bin/jruby 1
13+ ENV PATH /opt/jruby/bin:$PATH
14+
15+ # skip installing gem documentation
16+ RUN mkdir -p /opt/jruby/etc \
17+ && { \
18+ echo 'install: --no-document' ; \
19+ echo 'update: --no-document' ; \
20+ } >> /opt/jruby/etc/gemrc
21+
22+ RUN gem install bundler rake net-telnet xmlrpc
23+
24+ # don't create ".bundle" in all our apps
25+ ENV GEM_HOME /usr/local/bundle
26+ ENV BUNDLE_SILENCE_ROOT_WARNING=1 \
27+ BUNDLE_APP_CONFIG="$GEM_HOME"
28+ ENV PATH $GEM_HOME/bin:$PATH
29+ # adjust permissions of a few directories for running "gem install" as an arbitrary user
30+ RUN mkdir -p "$GEM_HOME" && chmod 777 "$GEM_HOME"
31+
32+ CMD [ "irb" ]
33+
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ (
4+ set -e
5+
6+ JRUBY_VERSION=$( < VERSION)
7+ SHA=" $( curl -SLfs https://repo1.maven.org/maven2/org/jruby/jruby-dist/${JRUBY_VERSION} /jruby-dist-${JRUBY_VERSION} -bin.tar.gz.sha256) "
8+ SHA=$( printf ' %s' ${SHA} )
9+
10+ for i in $( ls) ; do
11+ if [ -d " $i " ]; then
12+ echo setting version on " $i /Dockerfile"
13+ sed -i -- " s/ENV\ JRUBY_VERSION.*/ENV JRUBY_VERSION ${JRUBY_VERSION} /" " $i /Dockerfile"
14+ sed -i -- " s/ENV\ JRUBY_SHA256.*/ENV JRUBY_SHA256 ${SHA} /" " $i /Dockerfile"
15+ fi
16+ done
17+
18+ echo versions updated to $JRUBY_VERSION @ $SHA
19+ )
You can’t perform that action at this time.
0 commit comments