Created
May 28, 2014 18:52
-
-
Save jsierles/0cb9f6a80c8c7a13ad2e to your computer and use it in GitHub Desktop.
This file contains 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
ROM cenx/centos:6.5 | |
RUN rpm -i http://yum.postgresql.org/9.3/redhat/rhel-6-x86_64/pgdg-centos93-9.3-1.noarch.rpm | |
RUN yum install -y postgresql93-server postgresql93-contrib | |
RUN mkdir /var/run/postgresql | |
RUN chown postgres:postgres /var/run/postgresql | |
VOLUME /var/lib/pgsql/9.3/data | |
RUN su - postgres -c '/usr/pgsql-9.3/bin/initdb -D /var/lib/pgsql/9.3/data' | |
ADD pg_hba.conf /var/lib/pgsql/9.3/data/pg_hba.conf | |
ADD postgresql.conf /var/lib/pgsql/9.3/data/postgresql.conf | |
ADD pg_start.sh /usr/local/bin/ | |
RUN chmod +x /usr/local/bin/pg_start.sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment