Skip to content

在 postgres 基础上增加了 plv8,后者可以使用 JavaScript 开发存储过程

Notifications You must be signed in to change notification settings

lip8up/docker-postgres-plv8

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

postgres-plv8

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

clkao/postgres-plv8 clkao/postgres-plv8 ![clkao/postgres-plv8][docker-size-image] ![clkao/postgres-plv8][docker-layers-image]

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-1.5
$ docker run --rm --link postgres:postgres -it postgres-plv8:9.6-1.5 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-1.5

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

在 postgres 基础上增加了 plv8,后者可以使用 JavaScript 开发存储过程

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Dockerfile 100.0%