Sign inSign up

turicas/agensgraph

By turicas

•Updated over 1 year ago

Agensgraph Docker image based on official PostgreSQL image

Image
1

2.9K

turicas/agensgraph repository overview

⁠Agensgraph Docker

This is a Agensgraph⁠ Docker image based on the official PostgreSQL Docker image⁠ (not on Agensgraph's image⁠, which has some issues). The current Agensgraph source is based on PostgreSQL 14.

⁠Versions

At the time I've built these images, only the last minor release was considered for each version (there are only versions for the biggest Z in X.Y.Z). Only images for 2.x.x are being maintained (agensgraph 1.3.2 depends on postgres 9.6).

Each agensgraph version comes with a different postgres version:

Agensgraphpostgres
(latest) 2.14.1⁠ (2024-01-16)14.6⁠ (2022-11-10)
2.13.1⁠ (2023-01-11)13.9⁠ (2022-11-10)
2.12.1⁠ (2023-01-11)12.13⁠ (2022-11-10)
2.5.0⁠ (2021-10-06)11.11⁠ (2021-02-11)
2.1.3⁠ (2020-07-13)10.4⁠ (2018-05-10)

⁠Running

To have a better experience, you may want to have a specific password, a separate volume for data, change the shared memory size and publish the server port into the host machine:

docker run \
	--name=myagens \
	--env POSTGRES_PASSWORD=myprecious \
	--env PGDATA=/var/lib/postgresql/data/pgdata \
	--env GRAPH_DB=agens \
	--volume $(pwd)/agens-data:/var/lib/postgresql/data \
	--shm-size=256MB \
	--publish 15432:5432 \
	--detach \
	turicas/agensgraph:VERSION

Note: agens is the default graph name and you don't need to pass GRAPH_DB if you don't want to change it.

You can then connect to the server from the host machine:

psql postgres://postgres:myprecious@localhost:15432/postgres
# then: SET graph_path = agens; ...

Check also the official PostgreSQL Docker image⁠ documentation.

⁠Building

Check turicas/agensgraph-docker git repository⁠ for more information.

git clone https://github.com/turicas/agensgraph-docker.git
cd agensgraph-docker
# Replace 'VERSION' with the latest one and 'PG_VERSION' with postgres target version
git checkout -b feature/agensgraph-VERSION origin/feature/agensgraph-VERSION
docker build -t turicas/agensgraph:VERSION PG_VERSION/bookworm

Tag summary

Content type

Image

Digest

sha256:25f5b1b7f…

Size

59 MB

Last updated

over 1 year ago

docker pull turicas/agensgraph