Sign inSign up

dpirotte/postgres-dev

By dpirotte

•Updated over 7 years ago

Docker image useful for building Debian packages for Postgres extensions

Image
1

2.8K

dpirotte/postgres-dev repository overview

⁠docker-postgres-dev

stars pulls pulls pulls Build Status

Docker image useful for building Debian packages for Postgres extensions.

docker pull dpirotte/postgres-dev:stretch

This image includes the Postgres database server with development headers for all versions of Postgres in PGDG. It also includes fpm⁠ and fpm-cookery⁠ to easily create packages.

Tags correspond to the OS version.

DistroVersionTag
DebianJessie (8.x)jessie
DebianStretch (9.x)stretch, latest
UbuntuTrusty Tahr (14.04)trusty
UbuntuXenial Xerus (16.04)xenial
UbuntuBionic Beaver (18.04)bionic

Servers and development headers for Postgres 9.3, 9.4, 9.5, 9.6, 10, and 11 are included.

⁠Usage

This image was designed to make it easier to build and test Postgres extensions against multiple versions of Postgres.

For example, in your Makefile, you can use an environment variable (e.g. PG_VERSION) to find the right version of pg_config. Then, you can run something like the following to test your extension:

docker run \
  --rm -it \
  -e PG_VERSION=11 \
  -v ${PWD}:/build \
  -w /build \
  dpirotte/postgres-dev:stretch \
  bash -c "pg_ctlcluster 11 main start ; make clean install installcheck"

Tag summary

Content type

Image

Digest

Size

566.3 MB

Last updated

over 7 years ago

docker pull dpirotte/postgres-dev