The postgresql modules
  • Shell 36.9%
  • Python 33.4%
  • Roff 20.9%
  • Dockerfile 7%
  • Makefile 1.8%
Find a file
Nils Philippsen fcb7466f35 tests: hold off until daemon is available
The postgresql container initializes DB files e.a. in these tests, this
can take a couple of seconds. Try contacting it for up to 20 seconds,
and only then run the tests: create a table, store something in it and
retrieve it again.
2017-05-24 16:35:30 +02:00
root/usr bring in line with github.com/container-images 2017-05-19 11:46:10 +02:00
tests tests: hold off until daemon is available 2017-05-24 16:35:30 +02:00
.gitignore Initial setup of the repo 2017-03-28 13:52:02 +00:00
Dockerfile bring in line with github.com/container-images 2017-05-19 11:46:10 +02:00
module-postgresql.repo.in bring in line with github.com/container-images 2017-05-19 11:46:10 +02:00
postgresql.yaml weed out unnecessary components 2017-05-18 11:37:07 +02:00
README.md bring in line with github.com/container-images 2017-05-19 11:46:10 +02:00
sources Initial setup of the repo 2017-03-28 13:52:02 +00:00

PostgreSQL

PostgreSQL is an object-relational Database Management System.

This is based on the SCL container image for version 9.5 at:

https://github.com/sclorg/postgresql-container

Configuration

You must either specify the following environment variables:

  • POSTGRESQL_USER
  • POSTGRESQL_PASSWORD
  • POSTGRESQL_DATABASE

Or the following environment variable:

  • POSTGRESQL_ADMIN_PASSWORD

Or both.

Optional settings:

  • POSTGRESQL_MAX_CONNECTIONS (default: 100)
  • POSTGRESQL_MAX_PREPARED_TRANSACTIONS (default: 0)
  • POSTGRESQL_SHARED_BUFFERS (default: 32MB)

Running in docker

docker run -v <dbroot_path>:/var/lib/pgsql:Z -p 5432:5432 -e POSTGRESQL_USER=<user> -e POSTGRESQL_PASSWORD=<password> -e POSTGRESQL_DATABASE=<database> modularitycontainers/postgresql

Substitute these placeholders with real values:

  • dbroot_path - path to the database root on the host which should be mounted on /var/lib/pgsql in the container. Note that the postgres user (uid 26) needs to be able to read and write in that directory.
  • user, password, database - details with which a database and user should be created if the database cluster directory isn't initialized yet.