@@ -26,19 +26,20 @@ ENV BASH_ENV /etc/rubybashrc
26
26
27
27
# install rubies and fix permissions on
28
28
RUN bash -c " \
29
- export CFLAGS='-s -O3 -fno-fast-math -fPIC' && \
30
- for v in jruby-9.3.2 .0 ; do \
31
- rvm install --binary \$v --patch \$(echo ~/patches/ruby-\$v/* | tr ' ' ','); \
32
- done && \
33
- rvm cleanup all && \
34
- find /usr/local/rvm -type d -print0 | sudo xargs -0 chmod g+sw "
29
+ export CFLAGS='-s -O3 -fno-fast-math -fPIC' && \
30
+ for v in jruby-9.4.0 .0 ; do \
31
+ rvm install --binary \$v --patch \$(echo ~/patches/ruby-\$v/* | tr ' ' ','); \
32
+ done && \
33
+ rvm cleanup all \
34
+ "
35
35
36
- # Install rake-compiler and typical gems in all Rubies
37
- # do not generate documentation for gems
38
- RUN echo "gem: --no-ri --no-rdoc" >> ~/.gemrc && \
39
- bash -c " \
40
- rvm all do gem install --no-document bundler 'bundler:~>1.16' rake-compiler hoe rubygems-tasks && \
41
- find /usr/local/rvm -type d -print0 | sudo xargs -0 chmod g+sw "
36
+ RUN bash -c " \
37
+ echo "gem: --no-ri --no-rdoc" >> ~/.gemrc && \
38
+ rvm all do gem update --system --no-document && \
39
+ rvm all do gem update --no-document && \
40
+ rvm all do gem install bundler --no-document && \
41
+ rvm all do gem install --no-document rake-compiler:1.2.1 \
42
+ "
42
43
43
44
# Install rake-compiler's cross rubies in global dir instead of /root
44
45
RUN sudo mkdir -p /usr/local/rake-compiler && \
@@ -47,8 +48,9 @@ RUN sudo mkdir -p /usr/local/rake-compiler && \
47
48
48
49
USER root
49
50
50
- RUN bash -c "rvm alias create default jruby-9.3.2.0"
51
- RUN echo "rvm use jruby-9.3.2.0 > /dev/null" >> /etc/rubybashrc
51
+ RUN find /usr/local/rvm -type d -print0 | sudo xargs -0 chmod g+sw
52
+ RUN bash -c "rvm alias create default jruby-9.4.0.0"
53
+ RUN echo "rvm use jruby-9.4.0.0 > /dev/null" >> /etc/rubybashrc
52
54
53
55
# Add rvm to the global bashrc
54
56
RUN echo "source /etc/profile.d/rvm.sh" >> /etc/bash.bashrc
0 commit comments