Sign inSign up

adagility/postgres

By adagility

Updated almost 11 years ago

Postgres container to work with docker-it-scala

Image
0

1.4K

adagility/postgres repository overview

Same as the official postgres image, but instead of running

exec gosu postgres "$@"

this runs gosu postgres pg_ctl -D "$PGDATA" -w start, echos 'PostgreSQL server is ready!' and executes an infinite while loop while true; do sleep 2; done

We needed an indication of when the server was up in the logs -- that is how to check the container is ready in docker-it-scala.

Running in the foreground just wasn't going to do, although the exec gosu .. was nicer, the available logs would falsely alert that the postgres container was up in our CI servers, and things would start to fail randomly (time to actually get the database up varies on a CI server).

For now this is a workable solution that produces consistent results in our CI server.

Tag summary

Content type

Image

Digest

sha256:7c80fb47c

Size

95.6 MB

Last updated

almost 11 years ago

docker pull adagility/postgres:9.4.4