Skip to content

Instantly share code, notes, and snippets.

@cryptix
Created June 13, 2014 10:00
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 cryptix/72aa47fba3afa5730b5d to your computer and use it in GitHub Desktop.
Save cryptix/72aa47fba3afa5730b5d to your computer and use it in GitHub Desktop.
postgres docker image
# 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"]
@bdbull
Copy link

bdbull commented Sep 29, 2014

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.

@krujos
Copy link

krujos commented Oct 10, 2014

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment