# When new LTS ships we can upgrade
# NAME: discourse_base
-# VERSION: 1.0.8
+# VERSION: 1.0.9
FROM ubuntu:14.04
libxslt-dev libcurl4-openssl-dev \
libssl-dev libyaml-dev libtool \
libxml2-dev gawk \
- pngcrush imagemagick gifsicle \
+ pngcrush gifsicle \
postgresql-9.3 postgresql-client-9.3 \
postgresql-contrib-9.3 libpq-dev libreadline-dev \
nginx language-pack-en sudo cron anacron \
apt-get install -y nodejs &&\
npm install uglify-js -g
+ADD install-imagemagick /tmp/install-imagemagick
+RUN /tmp/install-imagemagick
+
RUN add-apt-repository ppa:ubuntu-toolchain-r/test &&\
apt-get update &&\
apt-get install -y gcc-4.9 &&\
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.0.0-p594 /usr/local &&\
+ cd / && rm -rf /src/ruby-build && ruby-build 2.0.0-p643 /usr/local &&\
gem update --system &&\
gem install bundler &&\
rm -rf /usr/local/share/ri/2.0.0/system &&\
--- /dev/null
+#!/bin/bash
+set -o errexit
+
+# Install build deps
+apt-get -y -q remove imagemagick
+apt-get -y -q install autoconf libbz2-dev libjpeg-dev libtiff-dev libfreetype6-dev
+
+PREFIX=/usr/local
+WDIR=/tmp/imagemagick
+mkdir -p $WDIR
+
+# Build and install libpng
+git clone -b v1.6.16 git://git.code.sf.net/p/libpng/code $WDIR/libpng
+cd $WDIR/libpng
+./autogen.sh
+./configure --prefix=$PREFIX
+make all && make install
+
+# Build and install ImageMagick
+wget -O $WDIR/ImageMagick.tar.gz "http://www.imagemagick.org/download/ImageMagick.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
+LDFLAGS=-L$PREFIX/lib CFLAGS=-I$PREFIX/include ./configure \
+ --prefix=$PREFIX \
+ --enable-static \
+ --enable-bounds-checking \
+ --enable-hdri \
+ --enable-hugepages \
+ --with-threads \
+ --with-modules \
+ --with-quantum-depth=16 \
+ --without-magick-plus-plus \
+ --with-bzlib \
+ --with-zlib \
+ --without-autotrace \
+ --with-freetype \
+ --with-jpeg \
+ --without-lcms \
+ --with-lzma \
+ --with-png \
+ --with-tiff
+make all && make install
+
+cd $HOME
+rm -rf $WDIR
+ldconfig
# When new LTS ships we can upgrade
# VERSION 0.1.0
-FROM samsaffron/discourse_base:1.0.7
+FROM samsaffron/discourse_base:1.0.9
MAINTAINER Sam Saffron "https://twitter.com/samsaffron"
#
require 'pty'
-$version = "1.0.8"
+$version = "1.0.9"
$docker_squash = "https://github.com/jwilder/docker-squash/releases/download/v0.0.11/docker-squash-linux-amd64-v0.0.11.tar.gz"
-# Current version 1.0.8
-FROM samsaffron/discourse_base:1.0.8
+# Current version 1.0.9
+FROM samsaffron/discourse_base:1.0.9
MAINTAINER Sam Saffron "https://twitter.com/samsaffron"