add test that ensures bootstrap can not run when postgres is running
[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
0b0d6fcb
MB
8RUN echo "debconf debconf/frontend select Teletype" | debconf-set-selections &&\
9 apt-get -y update &&\
e1903539
SS
10 apt-get -y upgrade &&\
11 apt-get -y install software-properties-common &&\
0b0d6fcb 12 apt-add-repository "deb http://archive.ubuntu.com/ubuntu $(lsb_release -sc) main universe" &&\
e1903539
SS
13 add-apt-repository -y ppa:rwky/redis &&\
14 add-apt-repository -y ppa:nginx/stable &&\
15 add-apt-repository -y ppa:pitti/postgresql &&\
16 apt-get -y update &&\
d08dd53f
RH
17 apt-get -y install build-essential git curl wget \
18 libxslt-dev libcurl4-openssl-dev \
19 libssl-dev libyaml-dev libtool \
20 libxml2-dev gawk \
21 pngcrush imagemagick \
22 postgresql-9.2 postgresql-client-9.2 \
23 postgresql-contrib-9.2 libpq-dev libreadline-dev \
24 nginx language-pack-en sudo cron \
25 psmisc &&\
e1903539
SS
26 dpkg-divert --local --rename --add /sbin/initctl &&\
27 ln -s /bin/true /sbin/initctl &&\
d08dd53f 28 apt-get -y install redis-server haproxy openssh-server &&\
e1903539 29 echo 'gem: --no-document' >> /etc/gemrc &&\
d08dd53f
RH
30 mkdir /src && cd /src && git clone https://github.com/sstephenson/ruby-build.git &&\
31 cd /src/ruby-build && ./install.sh &&\
32 cd / && rm -rf /src/ruby-build && ruby-build 2.0.0-p353 /usr/local &&\
e1903539 33 gem update --system &&\
b234b92a 34 gem install bundler &&\
e1903539
SS
35 cd / && git clone https://github.com/SamSaffron/pups.git &&\
36 mkdir /jemalloc && cd /jemalloc &&\
37 wget http://www.canonware.com/download/jemalloc/jemalloc-3.4.1.tar.bz2 &&\
38 tar -xvjf jemalloc-3.4.1.tar.bz2 && cd jemalloc-3.4.1 && ./configure && make &&\
39 mv lib/libjemalloc.so.1 /usr/lib && cd / && rm -rf /jemalloc &&\
d08dd53f
RH
40 apt-get -y install runit monit &&\
41 apt-get clean &&\
42 locale-gen en_US