Browse Source

start.sh: skip starting faucet and storage services if no chain setup scenario runs

Mokhtar Naamani 3 years ago
parent
commit
dd3d2e4778
1 changed files with 12 additions and 12 deletions
  1. 12 12
      start.sh

+ 12 - 12
start.sh

@@ -28,6 +28,12 @@ then
   docker-compose up -d joystream-node
 fi
 
+## Query Node Infrastructure
+./query-node/start.sh
+
+## Orion
+docker-compose up -d orion
+
 ## Init the chain with some state
 if [[ $SKIP_CHAIN_SETUP != 'true' ]]; then
   set -a
@@ -41,20 +47,14 @@ if [[ $SKIP_CHAIN_SETUP != 'true' ]]; then
   export COLOSSUS_1_TRANSACTOR_KEY=$(docker run --rm --pull=always docker.io/parity/subkey:2.0.1 inspect ${COLOSSUS_1_TRANSACTOR_URI} --output-type json | jq .ss58Address -r)
   export DISTRIBUTOR_1_URL=${DISTRIBUTOR_1_URL:="http://${HOST_IP}:3334"}
   ./tests/integration-tests/run-test-scenario.sh ${INIT_CHAIN_SCENARIO}
-fi
 
-## Member faucet
-docker-compose up -d faucet
+  ## Member faucet
+  docker-compose up -d faucet
 
-## Query Node Infrastructure
-./query-node/start.sh
-
-## Storage Infrastructure Nodes
-docker-compose up -d colossus-1
-docker-compose up -d distributor-1
-
-## Orion
-docker-compose up -d orion
+  ## Storage Infrastructure Nodes
+  docker-compose up -d colossus-1
+  docker-compose up -d distributor-1
+fi
 
 if [ "${PERSIST}" == true ]
 then