# NAME: discourse/base
-# VERSION: 1.3.10
+# VERSION: 1.4.0
FROM ubuntu:16.04
ENV PG_MAJOR 9.5
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='`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
# Build and install ImageMagick
-wget -O $WDIR/ImageMagick.tar.gz "http://www.imagemagick.org/download/ImageMagick-6.9.7-0.tar.gz"
+wget -O $WDIR/ImageMagick.tar.gz "http://www.imagemagick.org/download/ImageMagick-6.9.8-3.tar.gz"
IMDIR=$WDIR/$(tar tzf $WDIR/ImageMagick.tar.gz --wildcards "ImageMagick-*/configure" |cut -d/ -f1)
tar zxf $WDIR/ImageMagick.tar.gz -C $WDIR
cd $IMDIR
DEFAULT_IMAGES = %i[base discourse discourse_test discourse_dev discourse_bench]
todo = options[:image] || DEFAULT_IMAGES
-version = options[:version] || '1.3.10'
+version = options[:version] || '1.4.0'
if ENV["USER"] != "root"
STDERR.puts "Build script must be ran as root due to docker-squash"
# NAME: discourse/discourse
-# VERSION: 1.3.10
-FROM discourse/base:1.3.10
+# VERSION: 1.4.0
+FROM discourse/base:1.4.0
MAINTAINER Sam Saffron "https://twitter.com/samsaffron"
# NAME: discourse/discourse_bench
-# VERSION: 1.3.10
-FROM discourse/discourse_test:1.3.10
+# VERSION: 1.4.0
+FROM discourse/discourse_test:1.4.0
MAINTAINER Gerhard Schlager <mail@gerhard-schlager.at>
# NAME: discourse/discourse_dev
-# VERSION: 1.3.10
-FROM discourse/base:1.3.10
+# VERSION: 1.4.0
+FROM discourse/base:1.4.0
MAINTAINER Sam Saffron "https://twitter.com/samsaffron"
# NAME: discourse/discourse_fast_switch
-# VERSION: 1.3.10
+# VERSION: 1.4.0
# Allow to easily switch Ruby version in images that derive off this
-FROM discourse/base:1.3.10
+FROM discourse/base:1.4.0
MAINTAINER Sam Saffron "https://twitter.com/samsaffron"
# NAME: discourse/discourse_test
-# VERSION: 1.3.10
-FROM discourse/discourse:1.3.10
+# VERSION: 1.4.0
+FROM discourse/discourse:1.4.0
MAINTAINER Sam Saffron "https://twitter.com/samsaffron"
elif [ $LOCAL = $BASE ]; then
echo "Updating Launcher"
git pull || (echo 'failed to update' && exit 1)
-
+
for (( i=${#BASH_ARGV[@]}-1,j=0; i>=0,j<${#BASH_ARGV[@]}; i--,j++ ))
do
args[$j]=${BASH_ARGV[$i]}