Skip to content

Commit 7d3e3c8

Browse files
committed
Add jruby 9000 pre1
1 parent 1524ec7 commit 7d3e3c8

4 files changed

Lines changed: 50 additions & 20 deletions

File tree

9000/Dockerfile

Lines changed: 0 additions & 20 deletions
This file was deleted.

9000/jdk/Dockerfile

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
FROM java:8-jdk
2+
ENV JRUBY_VERSION 9.0.0.0.pre1
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+
ENV GEM_HOME /usr/local/bundle
12+
ENV PATH $GEM_HOME/bin:$PATH
13+
RUN gem install bundler \
14+
&& bundle config --global path "$GEM_HOME" \
15+
&& bundle config --global bin "$GEM_HOME/bin"
16+
17+
# don't create ".bundle" in all our apps
18+
ENV BUNDLE_APP_CONFIG $GEM_HOME
19+
20+
CMD [ "irb" ]

9000/jre/Dockerfile

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
FROM java:8-jre
2+
ENV JRUBY_VERSION 9.0.0.0.pre1
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+
ENV GEM_HOME /usr/local/bundle
12+
ENV PATH $GEM_HOME/bin:$PATH
13+
RUN gem install bundler \
14+
&& bundle config --global path "$GEM_HOME" \
15+
&& bundle config --global bin "$GEM_HOME/bin"
16+
17+
# don't create ".bundle" in all our apps
18+
ENV BUNDLE_APP_CONFIG $GEM_HOME
19+
20+
CMD [ "irb" ]

9000/onbuild/Dockerfile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
FROM jruby:9.0.0.0.pre1
2+
3+
RUN mkdir -p /usr/src/app
4+
WORKDIR /usr/src/app
5+
6+
ONBUILD ADD Gemfile /usr/src/app/
7+
ONBUILD ADD Gemfile.lock /usr/src/app/
8+
ONBUILD RUN bundle install --system
9+
10+
ONBUILD ADD . /usr/src/app

0 commit comments

Comments
 (0)