fe1ecb702c8744e5c9b06033df61dc62cad47d09
[discourse_docker.git] / image / discourse_dev / Dockerfile
1 # NAME: discourse/discourse_dev
2 # VERSION: 1.3.7
3 FROM discourse/base:1.3.7
4
5 MAINTAINER Sam Saffron "https://twitter.com/samsaffron"
6
7 # Give discourse user no-passwd sudo permissions (for bundle install)
8 ADD sudoers.discourse /etc/sudoers.d/discourse
9
10 # get redis going
11 ADD redis.template.yml /pups/redis.yml
12 RUN /pups/bin/pups /pups/redis.yml
13
14 RUN locale-gen en_US.UTF-8
15 ENV LANG en_US.UTF-8
16 ENV LANGUAGE en_US:en
17 ENV LC_ALL en_US.UTF-8
18
19 # get postgres going
20 ADD postgres.template.yml /pups/postgres.yml
21 RUN LANG=en_US.UTF-8 /pups/bin/pups /pups/postgres.yml
22
23 # move default postgres_data out of the way
24 RUN mv /shared/postgres_data /shared/postgres_data_orig
25
26 # re-instantiate data on boot if needed (this will allow it to persist across
27 # invocations when used with a mounted volume)
28 ADD ensure-database /etc/runit/1.d/ensure-database