mirror of
https://github.com/oceanprotocol/barge.git
synced 2024-12-02 05:57:21 +01:00
Merge pull request #91 from oceanprotocol/feature/fix_path_spaces
Patch if project dir has spaces
This commit is contained in:
commit
34af3a31f0
@ -1,6 +1,9 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )"
|
||||
export BRIZO_ENV_FILE="${DIR}/brizo.env"
|
||||
|
||||
# Patch $DIR if spaces (BRIZO_ENV_FILE does not need patch)
|
||||
DIR="${DIR/ /\\ }"
|
||||
COMPOSE_DIR="${DIR}/compose-files"
|
||||
|
||||
@ -21,8 +24,6 @@ export NODE_COMPOSE_FILE="${COMPOSE_DIR}/nodes/nile_node.yml"
|
||||
export GANACHE_DATABASE_PATH="${DIR}"
|
||||
export GANACHE_REUSE_DATABASE="false"
|
||||
|
||||
export BRIZO_ENV_FILE="${DIR}/brizo.env"
|
||||
|
||||
# Specify the ethereum default RPC container provider
|
||||
export KEEPER_RPC_HOST='keeper-node'
|
||||
export KEEPER_RPC_PORT='8545'
|
||||
@ -172,7 +173,7 @@ while :; do
|
||||
then
|
||||
docker-compose --project-name=$PROJECT_NAME $COMPOSE_FILES -f ${NODE_COMPOSE_FILE} pull
|
||||
fi
|
||||
docker-compose --project-name=$PROJECT_NAME $COMPOSE_FILES -f ${NODE_COMPOSE_FILE} up --remove-orphans
|
||||
eval docker-compose --project-name=$PROJECT_NAME $COMPOSE_FILES -f ${NODE_COMPOSE_FILE} up --remove-orphans
|
||||
break
|
||||
esac
|
||||
shift
|
||||
|
Loading…
Reference in New Issue
Block a user