Created
June 13, 2014 10:00
-
-
Save cryptix/72aa47fba3afa5730b5d to your computer and use it in GitHub Desktop.
postgres docker image
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
# DOCKER-VERSION 1.0.0 | |
FROM postgres:9.3 | |
# install extensions thanks @georged | |
RUN cd contrib/pgcrypto && make && make install | |
ADD . /schemaSetup | |
# try to statup db.. blocks... :/ | |
# RUN ["/usr/src/postgres/docker-entrypoint.sh", "postgres", "-d"] | |
# install our schemas | |
RUN ["sh", "/schemaSetup/Restore_FreshDB.sh"] | |
EXPOSE 5432 | |
# expose volumes for logging and utilize raid | |
VOLUME ["/etc/postgresql", "/var/log/postgresql", "/var/lib/postgresql"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Not sure if you guys are still stuck on this, I got around it the blocking with this Dockerfile. It more or less cuts up the entry point and is pretty gross, but "works" for my needs.
https://gist.github.com/krujos/83b44e59e06eb7c15e67