-
Notifications
You must be signed in to change notification settings - Fork 733
/
Dockerfile
67 lines (62 loc) · 3.32 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
# 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.2
FROM ubuntu:14.04
MAINTAINER Sam Saffron "https://twitter.com/samsaffron"
RUN echo "debconf debconf/frontend select Teletype" | debconf-set-selections &&\
apt-get -y install fping &&\
sh -c "fping proxy && echo 'Acquire { Retries \"0\"; HTTP { Proxy \"http://proxy:3128\";}; };' > /etc/apt/apt.conf.d/40proxy || true" &&\
apt-get -y update &&\
apt-get -y install software-properties-common &&\
add-apt-repository "deb http://archive.ubuntu.com/ubuntu $(lsb_release -sc) main universe" &&\
add-apt-repository "deb http://archive.ubuntu.com/ubuntu $(lsb_release -sc)-updates main universe" &&\
apt-get -y update &&\
apt-mark hold initscripts &&\
apt-get -y upgrade &&\
add-apt-repository -y ppa:rwky/redis &&\
add-apt-repository -y ppa:nginx/stable &&\
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 -y update &&\
apt-get -y install build-essential git curl wget \
libxslt-dev libcurl4-openssl-dev \
libssl-dev libyaml-dev libtool \
libxml2-dev gawk \
pngcrush imagemagick \
postgresql-9.3 postgresql-client-9.3 \
postgresql-contrib-9.3 libpq-dev libreadline-dev \
nginx language-pack-en sudo cron \
psmisc rsyslog &&\
dpkg-divert --local --rename --add /sbin/initctl &&\
sh -c "test -f /sbin/initctl || ln -s /bin/true /sbin/initctl" &&\
apt-get -y install redis-server haproxy openssh-server &&\
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-p481 /usr/local &&\
gem update --system &&\
gem install bundler &&\
cd / && git clone https://github.com/SamSaffron/pups.git &&\
mkdir /jemalloc && cd /jemalloc &&\
wget http://www.canonware.com/download/jemalloc/jemalloc-3.4.1.tar.bz2 &&\
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 &&
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 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 &&\
cp pngout-20130221-linux/x86_64/pngout /bin/pngout &&\
rm -rf pngout-20130221-linux
ADD runit-1 /etc/runit/1
ADD runit-1.d-cleanup-pids /etc/runit/1.d/cleanup-pids
ADD runit-2 /etc/runit/2