1
0
mirror of https://github.com/oceanprotocol/barge.git synced 2024-11-22 17:50:13 +01:00

add subgraph deploy module

This commit is contained in:
alexcos20 2022-02-12 05:18:59 -08:00
parent b66ede0ad4
commit 67e0000ab1
4 changed files with 20 additions and 1 deletions

View File

@ -108,6 +108,7 @@ export AQUARIUS_VERSION=v2.0.0
| `--no-dashboard` | Start up Ocean without the `dashboard` Building Block. | | `--no-dashboard` | Start up Ocean without the `dashboard` Building Block. |
| `--with-rbac` | Start up Ocean with RBAC Server | | `--with-rbac` | Start up Ocean with RBAC Server |
| `--with-thegraph` | Start up Ocean with graphnode,postgresql | | `--with-thegraph` | Start up Ocean with graphnode,postgresql |
| `--deploy-ocean-subgraph` | Deploys ocean-subgraph |
| `--skip-deploy` | Start up Ocean without deploying the contracts. Useful when ethereum node already has contracts.| | `--skip-deploy` | Start up Ocean without deploying the contracts. Useful when ethereum node already has contracts.|
| `--force-pull` | Force pulling the latest revision of the used Docker images. | | `--force-pull` | Force pulling the latest revision of the used Docker images. |
| `--purge` | Removes the Docker containers, volumes, artifact folder and networks used by the script. | | `--purge` | Removes the Docker containers, volumes, artifact folder and networks used by the script. |

View File

@ -0,0 +1,12 @@
version: '3'
services:
subgraph:
image: oceanprotocol/subgraph:${SUBGRAPH_VERSION:-latest}
networks:
backend:
ipv4_address: 172.15.0.19
depends_on:
- graph-node
- ocean-contracts
volumes:
- ${OCEAN_ARTIFACTS_FOLDER}:/ocean-contracts/artifacts/

View File

@ -21,7 +21,7 @@ services:
postgres_pass: let-me-in postgres_pass: let-me-in
postgres_db: graph-node postgres_db: graph-node
ipfs: '172.15.0.16:5001' ipfs: '172.15.0.16:5001'
ethereum: 'barge:${NETWORK_RPC_URL}' ethereum: 'development:${NETWORK_RPC_URL}'
RUST_LOG: info RUST_LOG: info
postgres: postgres:
image: postgres image: postgres

View File

@ -30,6 +30,7 @@ COMPOSE_DIR="${DIR}/compose-files"
export AQUARIUS_VERSION=${AQUARIUS_VERSION:-v4main} export AQUARIUS_VERSION=${AQUARIUS_VERSION:-v4main}
export PROVIDER_VERSION=${PROVIDER_VERSION:-v4main} export PROVIDER_VERSION=${PROVIDER_VERSION:-v4main}
export SUBGRAPH_VERSION=${SUBGRAPH_VERSION:-v4main}
export CONTRACTS_VERSION=${CONTRACTS_VERSION:-v4main_postaudit} export CONTRACTS_VERSION=${CONTRACTS_VERSION:-v4main_postaudit}
export RBAC_VERSION=${RBAC_VERSION:-next} export RBAC_VERSION=${RBAC_VERSION:-next}
@ -233,6 +234,11 @@ while :; do
COMPOSE_FILES+=" -f ${COMPOSE_DIR}/thegraph.yml" COMPOSE_FILES+=" -f ${COMPOSE_DIR}/thegraph.yml"
printf $COLOR_Y'Starting with TheGraph...\n\n'$COLOR_RESET printf $COLOR_Y'Starting with TheGraph...\n\n'$COLOR_RESET
;; ;;
--deploy-ocean-subgraph)
COMPOSE_FILES+=" -f ${COMPOSE_DIR}/ocean_subgraph.yml"
COMPOSE_FILES+=" -f ${COMPOSE_DIR}/thegraph.yml"
printf $COLOR_Y'Deploying ocean-subgraph...\n\n'$COLOR_RESET
;;
--no-ganache) --no-ganache)
COMPOSE_FILES="${COMPOSE_FILES/ -f ${COMPOSE_DIR}\/ganache.yml/}" COMPOSE_FILES="${COMPOSE_FILES/ -f ${COMPOSE_DIR}\/ganache.yml/}"
COMPOSE_FILES="${COMPOSE_FILES/ -f ${COMPOSE_DIR}\/ocean_contracts.yml/}" COMPOSE_FILES="${COMPOSE_FILES/ -f ${COMPOSE_DIR}\/ocean_contracts.yml/}"