Skip to content

Instantly share code, notes, and snippets.

@jsierles
Created May 28, 2014 18:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jsierles/0cb9f6a80c8c7a13ad2e to your computer and use it in GitHub Desktop.
Save jsierles/0cb9f6a80c8c7a13ad2e to your computer and use it in GitHub Desktop.
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