1 # NAME: discourse/discourse_dev
3 FROM discourse/base:1.3.9
5 MAINTAINER Sam Saffron "https://twitter.com/samsaffron"
7 # Create discourse user and /var/www location for both
8 # discourse and dev images.
9 RUN useradd discourse -s /bin/bash -m -U &&\
12 # Give discourse user no-passwd sudo permissions (for bundle install)
13 ADD sudoers.discourse /etc/sudoers.d/discourse
16 ADD redis.template.yml /pups/redis.yml
17 RUN /pups/bin/pups /pups/redis.yml
19 RUN locale-gen en_US.UTF-8
22 ENV LC_ALL en_US.UTF-8
25 ADD postgres.template.yml /pups/postgres.yml
26 RUN LANG=en_US.UTF-8 /pups/bin/pups /pups/postgres.yml
28 # move default postgres_data out of the way
29 RUN mv /shared/postgres_data /shared/postgres_data_orig
31 # re-instantiate data on boot if needed (this will allow it to persist across
32 # invocations when used with a mounted volume)
33 ADD ensure-database /etc/runit/1.d/ensure-database