mattaylor / docker-postgres-plv8

Docker image postgres with plv8

Home Page:https://registry.hub.docker.com/u/clkao/postgres-plv8/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

postgres-plv8

Docker images for running plv8 1.4, 1.5 and 2.0 on Postgres 9 (9.4, 9.5 and 9.6). Based on the official Postgres image.

clkao/postgres-plv8 clkao/postgres-plv8

Supported tags and respective Dockerfile links

Usage

How to use this image

This image behaves exactly like the official Postgres image with the only difference being the inclusion of the plv8 extension.

$ docker run --rm --name postgres -it clkao/postgres-plv8:9.6-2.0
$ docker run --rm --link postgres:postgres -it clkao/postgres-plv8:9.6-2.0 bash -c "psql -U postgres -h \$POSTGRES_PORT_5432_TCP_ADDR -t -c \"CREATE EXTENSION plv8; SELECT extversion FROM pg_extension WHERE extname = 'plv8';\""

You should see the version of the plv8 extension installed.

You can optionally create a service using docker-compose:

postgres:
  image: clkao/postgres-plv8:9.6-2.0

Image variants

The clkao/postgres-plv8 image comes in multiple flavors:

clkao/postgres-plv8:latest

Points to the latest release available of Postgres stable with compatible plv8 installed. Occasionally pre-release versions will be included.

clkao/postgres-plv8:<postgresVersion>-<plv8Version>

Points to the latest release available of Postgres <postgresVersion> with the latest release available of plv8 <plv8Version> installed.

Supported Docker versions

This image is officially supported on Docker version 1.10, with support for older versions provided on a best-effort basis.

License

MIT

About

Docker image postgres with plv8

https://registry.hub.docker.com/u/clkao/postgres-plv8/

License:MIT License