Inspired by of clkao/postgres-plv8
Docker images for running plv8 based on Amazon RDS support (9.3, 9.4, 9.5, 9.6, 10) using the RDS supported plv8 version as defined in the AWS Docs. Based on the official Postgres image.
9.5.2-1.4.4
(9.5.2-1.4.4/Dockerfile)
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 unidays/postgres-plv8:9.5.2-1.4.4
$ docker run --rm --link postgres:postgres -it unidays/postgres-plv8:9.5.2-1.4.4 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: unidays/postgres-plv8:9.5.2-1.4.4
The unidays/postgres-plv8
image comes in multiple flavors:
Points to the latest release available of Postgres <postgresVersion>
on AWS RDS with the latest release available of plv8 <plv8Version>
installed.
This image is officially supported on Docker version 1.10, with support for older versions provided on a best-effort basis.
MIT