File tree Expand file tree Collapse file tree 4 files changed +132
-0
lines changed
Expand file tree Collapse file tree 4 files changed +132
-0
lines changed Original file line number Diff line number Diff line change 1+ FROM eclipse-temurin:21-jdk-focal
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 9.3.13.0
6+ ENV JRUBY_SHA256 da60d6cb5c4e4d191abe20448e337b394b27bf0e095133966bcab8ac1191f51d
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-focal
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 9.3.13.0
6+ ENV JRUBY_SHA256 da60d6cb5c4e4d191abe20448e337b394b27bf0e095133966bcab8ac1191f51d
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-jdk-focal
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 9.4.5.0
6+ ENV JRUBY_SHA256 a40f78c4641ccc86752e16b2da247fd6bc9fbcf9a4864cf1be36f7ff7b35684c
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-focal
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 9.4.5.0
6+ ENV JRUBY_SHA256 a40f78c4641ccc86752e16b2da247fd6bc9fbcf9a4864cf1be36f7ff7b35684c
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+
You can’t perform that action at this time.
0 commit comments