Skip to content

Commit 1524ec7

Browse files
committed
Add jdk version
1 parent 550e7f4 commit 1524ec7

2 files changed

Lines changed: 23 additions & 0 deletions

File tree

1.7/jdk/Dockerfile

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
FROM java:8-jdk
2+
ENV JRUBY_VERSION 1.7.18
3+
RUN mkdir /opt/jruby \
4+
&& curl -sSL https://s3.amazonaws.com/jruby.org/downloads/${JRUBY_VERSION}/jruby-bin-${JRUBY_VERSION}.tar.gz \
5+
| tar -zxC /opt/jruby --strip-components=1 \
6+
&& update-alternatives --install /usr/local/bin/ruby ruby /opt/jruby/bin/jruby 1
7+
ENV PATH /opt/jruby/bin:$PATH
8+
9+
RUN echo 'gem: --no-rdoc --no-ri' >> /.gemrc
10+
11+
# docker-library/java#19
12+
RUN /var/lib/dpkg/info/ca-certificates-java.postinst configure
13+
14+
ENV GEM_HOME /usr/local/bundle
15+
ENV PATH $GEM_HOME/bin:$PATH
16+
RUN gem install bundler \
17+
&& bundle config --global path "$GEM_HOME" \
18+
&& bundle config --global bin "$GEM_HOME/bin"
19+
20+
# don't create ".bundle" in all our apps
21+
ENV BUNDLE_APP_CONFIG $GEM_HOME
22+
23+
CMD [ "irb" ]
File renamed without changes.

0 commit comments

Comments
 (0)