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"] |
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.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm curious if you ever solved this. I'm stuck at this point as well. Thinking about going with a base ubuntu image and install postgres myself so I have the ability to run an "init" script.