Created
October 25, 2013 20:53
-
-
Save klizhentas/7161659 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from mailgun/base:latest | |
ENV DEBIAN_FRONTEND noninteractive | |
run apt-get install -y postgresql-9.1 postgresql-contrib-9.1 | |
add . /src | |
run cp /src/*.conf /etc/postgresql/9.1/main/ | |
run su postgres sh -c "/usr/lib/postgresql/9.1/bin/postgres --single -D /var/lib/postgresql/9.1/main -c config_file=/etc/postgresql/9.1/main/postgresql.conf" < /src/psql-init.sql | |
run su postgres sh -c "/usr/lib/postgresql/9.1/bin/postgres --single mg_dev -D /var/lib/postgresql/9.1/main -c config_file=/etc/postgresql/9.1/main/postgresql.conf" < /src/create-extension.sql | |
run su postgres sh -c "/usr/lib/postgresql/9.1/bin/postgres --single mg_test -D /var/lib/postgresql/9.1/main -c config_file=/etc/postgresql/9.1/main/postgresql.conf" < /src/create-extension.sql | |
cmd ["sudo", "-u", "postgres", "/usr/lib/postgresql/9.1/bin/postgres", "-D", "/etc/postgresql/9.1/main/"] | |
expose 5432 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment