Update to Ruby 2.4.1
authorRafael dos Santos Silva <xfalcox@gmail.com>
Mon, 17 Apr 2017 14:45:48 +0000 (11:45 -0300)
committerRafael dos Santos Silva <xfalcox@gmail.com>
Mon, 17 Apr 2017 14:45:48 +0000 (11:45 -0300)
image/base/Dockerfile

index 6e587dd995667b773c48ba4a3aef85edf21da837..66bfbb57724d542242705e0fa424c7f199607f91 100644 (file)
@@ -70,19 +70,18 @@ RUN mkdir /lockless && cd /lockless && curl -O https://locklessinc.com/downloads
 RUN echo 'gem: --no-document' >> /usr/local/etc/gemrc &&\
     mkdir /src && cd /src && git clone https://github.com/sstephenson/ruby-build.git &&\
     cd /src/ruby-build && ./install.sh &&\
-    cd / && rm -rf /src/ruby-build && ruby-build 2.3.3 /usr/local
+    cd / && rm -rf /src/ruby-build && ruby-build 2.4.1 /usr/local
 
 RUN gem install bundler &&\
-    rm -rf /usr/local/share/ri/2.3.0/system &&\
+    rm -rf /usr/local/share/ri/2.4.1/system &&\
     cd / && git clone https://github.com/SamSaffron/pups.git
 
 ADD install-imagemagick /tmp/install-imagemagick
 RUN /tmp/install-imagemagick
 
 # Validate install
-RUN ruby -e "v = %x(convert -version); ['png','tiff','jpeg','freetype'].each{ |f| ((STDERR.puts('no ' + f +  ' support in imagemagick')); exit(-1)) unless v.include?(f)}"
+RUN ruby -Eutf-8 -e "v = \`convert -version\`; %w{png tiff jpeg freetype}.each { |f| unless v.include?(f); STDERR.puts('no ' + f +  ' support in imagemagick'); exit(-1); end }"
 
-#
 ADD install-pngcrush /tmp/install-pngcrush
 RUN /tmp/install-pngcrush