UserNotFound / docker-postgresql

PostgreSQL on Docker

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

aptible/postgresql

Docker Repository on Quay.io Build Status

PostgreSQL, on top of Debian Wheezy.

Installation and Usage

docker pull quay.io/aptible/postgresql:${VERSION:-latest}

This is an image conforming to the Aptible database specification. To run a server for development purposes, execute

docker create --name data quay.io/aptible/postgresql
docker run --volumes-from data -e USERNAME=aptible -e PASSPHRASE=pass -e DATABASE=db quay.io/aptible/postgresql --initialize
docker run --volumes-from data -P quay.io/aptible/postgresql

The first command sets up a data container named data which will hold the configuration and data for the database. The second command creates a PostgreSQL instance with a username, passphrase and database name of your choice. The third command starts the database server.

SSL

The PostgreSQL server is configured to enforce SSL for any TCP connection. It uses a self-signed certificate generated at startup time, or a certificate / key pair found in SSL_CERTIFICATE and SSL_KEY.

Available Versions (Tags)

  • latest: Currently PostgreSQL 11
  • 11: PostgreSQL 11
  • 10: PostgreSQL 10
  • 9.6: PostgreSQL 9.6
  • 9.5: PostgreSQL 9.5
  • 9.4: PostgreSQL 9.4 (EOL 2020-02-13)
  • 9.3: PostgreSQL 9.3 (EOL 2018-11-08)

Tests

Tests are run as part of the Dockerfile build. To execute them separately within a container, run:

bats test

Deployment

To push the Docker image to Quay, run the following command:

make release

Continuous Integration

Images are built and pushed to Docker Hub on every deploy. Because Quay currently only supports build triggers where the Docker tag name exactly matches a GitHub branch/tag name, we must run the following script to synchronize all our remote branches after a merge to master:

make sync-branches

Copyright and License

MIT License, see LICENSE for details.

Copyright (c) 2019 Aptible and contributors.

About

PostgreSQL on Docker

License:MIT License


Languages

Language:Shell 72.1%Language:Makefile 10.9%Language:Python 9.4%Language:HTML 7.4%Language:Dockerfile 0.2%