From 2b466e1a8f48468c0672805bdb24cd28face6703 Mon Sep 17 00:00:00 2001 From: David Boreham Date: Thu, 10 Aug 2023 15:41:40 -0600 Subject: [PATCH] Initial version --- .../docker-compose-fixturenet-graph-node.yml | 45 +++++++++++++++++++ .../container-build/cerc-graph-node/build.sh | 4 ++ app/data/container-image-list.txt | 1 + app/data/repository-list.txt | 1 + .../stacks/fixturenet-graph-node/README.md | 3 ++ .../stacks/fixturenet-graph-node/stack.yml | 10 +++++ 6 files changed, 64 insertions(+) create mode 100644 app/data/compose/docker-compose-fixturenet-graph-node.yml create mode 100755 app/data/container-build/cerc-graph-node/build.sh create mode 100644 app/data/stacks/fixturenet-graph-node/README.md create mode 100644 app/data/stacks/fixturenet-graph-node/stack.yml diff --git a/app/data/compose/docker-compose-fixturenet-graph-node.yml b/app/data/compose/docker-compose-fixturenet-graph-node.yml new file mode 100644 index 00000000..4f30961f --- /dev/null +++ b/app/data/compose/docker-compose-fixturenet-graph-node.yml @@ -0,0 +1,45 @@ +services: + graph-node: + image: cerc/graph-node:local + environment: + ipfs: ipfs:5001 + postgres_host: db + postgres_port: 5432 + postgres_user: graph-node + postgres_pass: password + postgres_db: graph-node + ports: + - "8000" + - "8001" + - "8020" + - "8030" + ipfs: + image: ipfs/kubo:master-2023-02-20-714a968 + volumes: + - ipfs-import:/import + - ipfs-data:/data/ipfs + ports: + - "8080" + - "4001" + - "5001" + db: + image: postgres:14-alpine + volumes: + - db-data:/var/lib/postgresql/data + environment: + POSTGRES_USER: "graph-node" + POSTGRES_DB: "graph-node" + POSTGRES_PASSWORD: "password" + healthcheck: + test: ["CMD", "nc", "-v", "localhost", "5432"] + interval: 30s + timeout: 10s + retries: 10 + start_period: 3s + ports: + - "5432" + +volumes: + ipfs-import: + ipfs-data: + db-data: diff --git a/app/data/container-build/cerc-graph-node/build.sh b/app/data/container-build/cerc-graph-node/build.sh new file mode 100755 index 00000000..4a0ab035 --- /dev/null +++ b/app/data/container-build/cerc-graph-node/build.sh @@ -0,0 +1,4 @@ +#!/usr/bin/env bash +# Build a local version of the graphprotocol/graph-node image (among reasons: the upstream image is not built for arm) +source ${CERC_CONTAINER_BASE_DIR}/build-base.sh +docker build -t cerc/graph-node:local -f ${CERC_REPO_BASE_DIR}/graph-node/docker/Dockerfile ${build_command_args} ${CERC_REPO_BASE_DIR}/graph-node diff --git a/app/data/container-image-list.txt b/app/data/container-image-list.txt index 444ee995..751b40a3 100644 --- a/app/data/container-image-list.txt +++ b/app/data/container-image-list.txt @@ -47,3 +47,4 @@ cerc/reth cerc/sushiswap-v3-core cerc/sushiswap-v3-periphery cerc/watcher-sushiswap +cerc/graph-node diff --git a/app/data/repository-list.txt b/app/data/repository-list.txt index a3509035..7069850b 100644 --- a/app/data/repository-list.txt +++ b/app/data/repository-list.txt @@ -41,3 +41,4 @@ git.vdb.to/cerc-io/plugeth git.vdb.to/cerc-io/plugeth-statediff github.com/cerc-io/sushiswap-v3-core github.com/cerc-io/sushiswap-v3-periphery +github.com/graphprotocol/graph-node diff --git a/app/data/stacks/fixturenet-graph-node/README.md b/app/data/stacks/fixturenet-graph-node/README.md new file mode 100644 index 00000000..6e010b50 --- /dev/null +++ b/app/data/stacks/fixturenet-graph-node/README.md @@ -0,0 +1,3 @@ +# Graph-Node Fixturenet + +Experimental \ No newline at end of file diff --git a/app/data/stacks/fixturenet-graph-node/stack.yml b/app/data/stacks/fixturenet-graph-node/stack.yml new file mode 100644 index 00000000..727cceb4 --- /dev/null +++ b/app/data/stacks/fixturenet-graph-node/stack.yml @@ -0,0 +1,10 @@ +version: "1.0" +name: fixturenet-graph-node +description: "A graph-node fixturenet" +repos: + - github.com/graphprotocol/graph-node +containers: + - cerc/graph-node +pods: + - fixturenet-graph-node +