# When new LTS ships we can upgrade
# NAME: discourse_base
-# VERSION: 1.0.5
+# VERSION: 1.0.6
FROM ubuntu:14.04
apt-mark hold initscripts &&\
apt-get -y upgrade &&\
add-apt-repository -y ppa:rwky/redis &&\
- add-apt-repository -y ppa:nginx/stable &&\
+ add-apt-repository -y ppa:nginx/development &&\
apt-get install -y curl && curl http://apt.postgresql.org/pub/repos/apt/ACCC4CF8.asc | apt-key add - &&\
echo "deb http://apt.postgresql.org/pub/repos/apt/ trusty-pgdg main" | \
tee /etc/apt/sources.list.d/postgres.list &&\
apt-get clean &&\
rm -f /etc/apt/apt.conf.d/40proxy &&\
locale-gen en_US &&\
- wget https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-1.9.7-linux-x86_64.tar.bz2 &&\
- tar -xjf phantomjs-1.9.7-linux-x86_64.tar.bz2 &&\
- rm phantomjs-1.9.7-linux-x86_64.tar.bz2 &&\
- cp phantomjs-1.9.7-linux-x86_64/bin/phantomjs /bin/phantomjs &&\
- rm -fr phantomjs-1.9.7-linux-x86_64 &&\
+ wget https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-1.9.8-linux-x86_64.tar.bz2 &&\
+ tar -xjf phantomjs-1.9.8-linux-x86_64.tar.bz2 &&\
+ rm phantomjs-1.9.8-linux-x86_64.tar.bz2 &&\
+ cp phantomjs-1.9.8-linux-x86_64/bin/phantomjs /bin/phantomjs &&\
+ rm -fr phantomjs-1.9.8-linux-x86_64 &&\
wget http://static.jonof.id.au/dl/kenutils/pngout-20130221-linux.tar.gz &&\
tar -xvf pngout-20130221-linux.tar.gz &&\
rm pngout-20130221-linux.tar.gz &&\
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.0.0-p576 /usr/local &&\
+ cd / && rm -rf /src/ruby-build && ruby-build 2.0.0-p594 /usr/local &&\
gem update --system &&\
gem install bundler &&\
rm -rf /usr/local/share/ri/2.0.0/system &&\
-# Current version 1.0.5
-FROM samsaffron/discourse_base:1.0.5
+# Current version 1.0.6
+FROM samsaffron/discourse_base:1.0.6
MAINTAINER Sam Saffron "https://twitter.com/samsaffron"
# Discourse specific bits
RUN useradd discourse -s /bin/bash -m -U &&\
- mkdir /var/www && cd /var/www &&\
+ mkdir -p /var/www && cd /var/www &&\
git clone https://github.com/discourse/discourse.git &&\
cd discourse &&\
git remote set-branches --add origin tests-passed &&\
cidfile=cids/"$config".cid
cidbootstrap=cids/"$config"_boostrap.cid
local_discourse=local_discourse
-image=samsaffron/discourse:1.0.5
+image=samsaffron/discourse:1.0.6
docker_path=`which docker.io || which docker`
if [ "${SUPERVISED}" = "true" ]; then