Skip to content

Commit 9d4071a

Browse files
committed
Setup 'ruby' to point to jruby
1 parent da39f6b commit 9d4071a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

1.7/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ FROM java:8
22
ENV JRUBY_VERSION 1.7.15
33
RUN mkdir /opt/jruby \
44
&& curl http://jruby.org.s3.amazonaws.com/downloads/${JRUBY_VERSION}/jruby-bin-${JRUBY_VERSION}.tar.gz \
5-
| tar -zxC /opt/jruby --strip-components=1
5+
| tar -zxC /opt/jruby --strip-components=1 \
6+
&& update-alternatives --install /usr/local/bin/ruby ruby /opt/jruby/bin/jruby 1
67
ENV PATH /opt/jruby/bin:$PATH
78

89
RUN echo 'gem: --no-rdoc --no-ri' >> /.gemrc

0 commit comments

Comments
 (0)