Skip to content

Commit 85c44cd

Browse files
committed
Introduce JRE 17 images
1 parent 686eba8 commit 85c44cd

File tree

3 files changed

+68
-0
lines changed

3 files changed

+68
-0
lines changed

.github/workflows/test.yml

+2
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,13 @@ jobs:
1616
- 9.3/jdk17/Dockerfile
1717
- 9.3/jre8/Dockerfile
1818
- 9.3/jre11/Dockerfile
19+
- 9.3/jre17/Dockerfile
1920
- 9.4/jdk8/Dockerfile
2021
- 9.4/jdk11/Dockerfile
2122
- 9.4/jdk17/Dockerfile
2223
- 9.4/jre8/Dockerfile
2324
- 9.4/jre11/Dockerfile
25+
- 9.4/jre17/Dockerfile
2426
runs-on: ubuntu-latest
2527

2628
steps:

9.3/jre17/Dockerfile

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
FROM eclipse-temurin:17-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.10.0
6+
ENV JRUBY_SHA256 c78c127e0aa166f257eeab03c4733ba3d96a445314eff7e5dc1f8154d2b5ae45
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+

9.4/jre17/Dockerfile

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
FROM eclipse-temurin:17-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.3.0
6+
ENV JRUBY_SHA256 b097e08c5669e8a188288e113911d12b4ad2bd67a2c209d6dfa8445d63a4d8c9
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+

0 commit comments

Comments
 (0)