# Official repo only has a ppa for postgresql 9.3 at the moment (14/3/2014)
# When new LTS ships we can upgrade
-# VERSION 0.2.0
+# VERSION 0.2.2
FROM ubuntu:12.04
MAINTAINER Sam Saffron "https://twitter.com/samsaffron"
tar -xvjf jemalloc-3.4.1.tar.bz2 && cd jemalloc-3.4.1 && ./configure && make &&\
mv lib/libjemalloc.so.1 /usr/lib && cd / && rm -rf /jemalloc &&\
apt-get -y install runit monit socat &&\
+ mkdir -p /etc/runit/1.d &&\
apt-get clean &&\
rm -f /etc/apt/apt.conf.d/40proxy &&\
locale-gen en_US
+
+ADD runit-1 /etc/runit/1
+ADD runit-1.d-cleanup-pids /etc/runit/1.d/cleanup-pids
+ADD runit-2 /etc/runit/2
--- /dev/null
+#!/bin/bash
+
+/bin/run-parts --verbose --exit-on-error /etc/runit/1.d
--- /dev/null
+#!/bin/bash
+/bin/echo "Cleaning stale PID files"
+/bin/rm -f /var/run/*.pid
--- /dev/null
+#!/bin/bash
+/usr/bin/runsvdir -P /etc/service
-FROM samsaffron/discourse_base:0.2.1
+FROM samsaffron/discourse_base:0.2.2
MAINTAINER Sam Saffron "https://twitter.com/samsaffron"
cidfile=cids/"$config".cid
cidbootstrap=cids/"$config"_boostrap.cid
local_discourse=local_discourse
-image=samsaffron/discourse:0.2.1
+image=samsaffron/discourse:0.2.2
docker_path=`which docker.io || which docker`
docker_ip=`/sbin/ifconfig | \
fi
$docker_path run "${env[@]}" -h "`hostname`-$config" -e DOCKER_HOST_IP=$docker_ip --name $config -t --cidfile $cidfile $ports \
- -d $volumes $local_discourse/$config /usr/bin/runsvdir -P /etc/service
+ -d $volumes $local_discourse/$config /sbin/runit
exit 0
else