Skip to content

bitnine-oss/agensgraph-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

61 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tag Info

  • v2.13.1
    • v2.13.1 - alpine:3.17
    • v2.13.1-debian - debian:bullseye-slim
    • v2.13.1-rockylinux - rockylinux/rockylinux:8.7
  • v2.13.0
    • v2.13.0 - alpine:3.16
    • v2.13.0-debian - debian:bullseye-slim
    • v2.13.0-rockylinux - rockylinux/rockylinux:8.4
  • v2.12.0
    • v2.12.0 - alpine:3.14
    • v2.12.0-debian - debian:bullseye-slim
    • v2.12.0-rockylinux - rockylinux/rockylinux:8.4
  • v2.5.0
    • v2.5.0 - alpine:3.14
    • v2.5.0-debian - debian:bullseye-slim
    • v2.5.0-centos - centos:8
  • v2.1.3
    • v2.1.3 - alpine:3.13
    • v2.1.3-debian - debian:stretch
  • older than v2.1.1
    • Based on CentOS 7

Getting started

Quick start

$ docker run --name agensgraph -e POSTGRES_PASSWORD=agensgraph -d bitnine/agensgraph:v2.1.3
# Username: postgres
# Password: agensgraph

Advanced

$ docker run -d \
    --name agensgraph \
    -e POSTGRES_PASSWORD=agensgraph \
    -e PGDATA=/var/lib/postgresql/data/pgdata \
    -v /custom/mount:/var/lib/postgresql/data \
    bitnine/agensgraph:v2.1.3

Deep into AgensGraph

The image already has a graph("agens_graph"), and you can see the list of graphs created with the \dG command.

$ docker exec -it {NAME OR CONTAINER_ID} /bin/bash
bash-5.1# psql -U postgres
psql (10.4)
Type "help" for help.

postgres=# CREATE GRAPH AGENS;
CREATE GRAPH
postgres=# SET GRAPH_PATH=AGENS;
SET
postgres=# CREATE (:person {name: 'Tom'})-[:knows]->(:person {name: 'Summer'});
UPDATE 3
postgres=# CREATE (:person {name: 'Pat'})-[:knows]->(:person {name: 'Nikki'});
UPDATE 3
postgres=# CREATE (:person {name: 'Olive'})-[:knows]->(:person {name: 'Todd'});
UPDATE 3
postgres=# MATCH (n) RETURN n;
               n               
-------------------------------
 person[3.7]{"name": "Tom"}
 person[3.8]{"name": "Summer"}
 person[3.9]{"name": "Pat"}
 person[3.10]{"name": "Nikki"}
 person[3.11]{"name": "Olive"}
 person[3.12]{"name": "Todd"}
(6 rows)

Older than v2.1.3

Usage (docker)

Image download
$ docker pull bitnine/agensgraph:v2.1.1
Create Volume
$ docker volume create --name myvolume
Container starting
  • agens
    • Temporary mode $ docker run -it bitnine/agensgraph:v2.1.1 agens
    • Save mode $ docker run -i -t -v myvolume:/home/agens/AgensGraph/data bitnine/agensgraph:v2.1.1 agens
  • bash $ docker run -it bitnine/agensgraph:v2.1.1 /bin/bash

Usage (AgensGraph)

The image already has a graph("agens_graph"), and you can see the list of graphs created with the \dG command.

  • list graph agens=# \dG
  • set graph agens=# set graph_path=graph_name;
  • show graph agens=# show graph_path;

Reference