mirror of
https://github.com/oceanprotocol/barge.git
synced 2024-12-02 05:57:21 +01:00
add ---skip-subgraph-deploy
This commit is contained in:
parent
67e0000ab1
commit
930e57ece1
@ -107,8 +107,8 @@ export AQUARIUS_VERSION=v2.0.0
|
||||
| `--no-ganache` | Start up Ocean without the `ganache` Building Block. |
|
||||
| `--no-dashboard` | Start up Ocean without the `dashboard` Building Block. |
|
||||
| `--with-rbac` | Start up Ocean with RBAC Server |
|
||||
| `--with-thegraph` | Start up Ocean with graphnode,postgresql |
|
||||
| `--deploy-ocean-subgraph` | Deploys ocean-subgraph |
|
||||
| `--with-thegraph` | Start up Ocean with graphnode,postgresql and deploys ocean-subgraph |
|
||||
| `---skip-subgraph-deploy` | Will skip deployment of ocean-subgraphs |
|
||||
| `--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. |
|
||||
| `--purge` | Removes the Docker containers, volumes, artifact folder and networks used by the script. |
|
||||
|
@ -1,12 +0,0 @@
|
||||
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/
|
@ -37,6 +37,20 @@ services:
|
||||
POSTGRES_DB: graph-node
|
||||
volumes:
|
||||
- graphpgsql:/var/lib/postgresql/data
|
||||
subgraph:
|
||||
image: oceanprotocol/subgraph:${SUBGRAPH_VERSION:-latest}
|
||||
networks:
|
||||
backend:
|
||||
ipv4_address: 172.15.0.19
|
||||
environment:
|
||||
DEPLOY_SUBGRAPH: ${DEPLOY_SUBGRAPH}
|
||||
depends_on:
|
||||
- graph-node
|
||||
- ocean-contracts
|
||||
volumes:
|
||||
- ${OCEAN_ARTIFACTS_FOLDER}:/ocean-contracts/artifacts/
|
||||
volumes:
|
||||
graphpgsql:
|
||||
|
||||
|
||||
|
||||
|
@ -62,6 +62,7 @@ export GANACHE_MNEMONIC=${GANACHE_MNEMONIC:-"taxi music thumb unique chat sand c
|
||||
export OCEAN_HOME="${HOME}/.ocean"
|
||||
export CONTRACTS_OWNER_ROLE_ADDRESS="${CONTRACTS_OWNER_ROLE_ADDRESS}"
|
||||
export DEPLOY_CONTRACTS=true
|
||||
export DEPLOY_SUBGRAPH=true
|
||||
export OCEAN_ARTIFACTS_FOLDER="${OCEAN_HOME}/ocean-contracts/artifacts"
|
||||
mkdir -p ${OCEAN_ARTIFACTS_FOLDER}
|
||||
export OCEAN_C2D_FOLDER="${OCEAN_HOME}/ocean-c2d/"
|
||||
@ -234,11 +235,6 @@ while :; do
|
||||
COMPOSE_FILES+=" -f ${COMPOSE_DIR}/thegraph.yml"
|
||||
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)
|
||||
COMPOSE_FILES="${COMPOSE_FILES/ -f ${COMPOSE_DIR}\/ganache.yml/}"
|
||||
COMPOSE_FILES="${COMPOSE_FILES/ -f ${COMPOSE_DIR}\/ocean_contracts.yml/}"
|
||||
@ -252,7 +248,6 @@ while :; do
|
||||
COMPOSE_FILES="${COMPOSE_FILES/ -f ${COMPOSE_DIR}\/elasticsearch.yml/}"
|
||||
printf $COLOR_Y'Starting without Elastic search...\n\n'$COLOR_RESET
|
||||
;;
|
||||
|
||||
--no-dashboard)
|
||||
COMPOSE_FILES="${COMPOSE_FILES/ -f ${COMPOSE_DIR}\/dashboard.yml/}"
|
||||
printf $COLOR_Y'Starting without Dashboard ...\n\n'$COLOR_RESET
|
||||
@ -261,6 +256,10 @@ while :; do
|
||||
export DEPLOY_CONTRACTS=false
|
||||
printf $COLOR_Y'Ocean contracts will not be deployed, the last deployment (if any) will be intact ...\n\n'$COLOR_RESET
|
||||
;;
|
||||
--skip-subgraph-deploy)
|
||||
export DEPLOY_SUBGRAPH=false
|
||||
printf $COLOR_Y'Ocean subgraph will not be deployed, the last deployment (if any) will be intact ...\n\n'$COLOR_RESET
|
||||
;;
|
||||
#################################################
|
||||
# Cleaning switches
|
||||
#################################################
|
||||
|
Loading…
Reference in New Issue
Block a user