cid recovery code for invalid cids and such
[discourse_docker.git] / image / base / Dockerfile
CommitLineData
e1903539
SS
1# DOCKER-VERSION 0.6.7 : samsaffron/discourse_base
2
3# 13.10 - 04 has a missing ppa for postgresql 9.2 at the moment (26/10/2013)
4FROM ubuntu:12.10
5
6MAINTAINER Sam Saffron "https://twitter.com/samsaffron"
7
8RUN apt-get -y update &&\
9 apt-get -y upgrade &&\
10 apt-get -y install software-properties-common &&\
11 add-apt-repository -y ppa:rwky/redis &&\
12 add-apt-repository -y ppa:nginx/stable &&\
13 add-apt-repository -y ppa:pitti/postgresql &&\
14 apt-get -y update &&\
15 apt-get install -y build-essential git curl libxml2-dev \
16 libxslt-dev libcurl4-openssl-dev \
17 libssl-dev libyaml-dev libtool \
18 libxslt-dev libxml2-dev gawk curl \
19 pngcrush imagemagick \
20 postgresql-9.2 postgresql-client-9.2 \
21 postgresql-contrib-9.2 libpq-dev libreadline-dev \
22 nginx wget language-pack-en sudo cron \
23 psmisc &&\
24 dpkg-divert --local --rename --add /sbin/initctl &&\
25 ln -s /bin/true /sbin/initctl &&\
26 apt-get install -y redis-server haproxy openssh-server &&\
27 echo 'gem: --no-document' >> /etc/gemrc &&\
28 mkdir /src && cd /src &&\
29 git clone https://github.com/sstephenson/ruby-build.git && cd / &&\
30 cd /src/ruby-build &&\
31 ./install.sh && cd / &&\
32 rm -rf /src/ruby-build &&\
33 ruby-build 2.0.0-p353 /usr/local &&\
34 gem update --system &&\
b234b92a 35 gem install bundler &&\
e1903539
SS
36 cd / && git clone https://github.com/SamSaffron/pups.git &&\
37 mkdir /jemalloc && cd /jemalloc &&\
38 wget http://www.canonware.com/download/jemalloc/jemalloc-3.4.1.tar.bz2 &&\
39 tar -xvjf jemalloc-3.4.1.tar.bz2 && cd jemalloc-3.4.1 && ./configure && make &&\
40 mv lib/libjemalloc.so.1 /usr/lib && cd / && rm -rf /jemalloc &&\
41 apt-get install -y runit monit && apt-get clean && locale-gen en_US