Add support for Ruby 2.4 in 1.4.0.
[discourse_docker.git] / image / discourse_bench / Dockerfile
CommitLineData
3447089f 1# NAME: discourse/discourse_bench
88ee2e35
GXT
2# VERSION: 1.4.0
3FROM discourse/discourse_test:1.4.0
bb7f0d46
GS
4
5MAINTAINER Gerhard Schlager <mail@gerhard-schlager.at>
6
7# Install ApacheBench
8RUN apt-get install -y apache2-utils libsqlite3-dev
9
10# configure Git to suppress warnings
11RUN git config --global user.email "you@example.com" &&\
12 git config --global user.name "Your Name"
13
14RUN git pull &&\
15 sudo -u discourse bundle install --standalone
16
17RUN gem install facter &&\
18 gem install mailcatcher
19
20# reconfigure PostgreSQL template databases to use UTF-8
21# otherwise rake db:create fails
3447089f
JR
22RUN pg_dropcluster --stop 9.5 main &&\
23 pg_createcluster --start -e UTF-8 9.5 main
bb7f0d46
GS
24
25# create role "discourse"
26RUN /etc/init.d/postgresql start &&\
f401cd6c 27 sleep 5 &&\
bb7f0d46
GS
28 sudo -u postgres createuser --superuser discourse
29
30ADD run_bench.sh /tmp/run_bench.sh
31RUN chmod +x /tmp/run_bench.sh
32
33ENTRYPOINT ["/tmp/run_bench.sh"]