mirror of
https://github.com/oceanprotocol/barge.git
synced 2024-12-02 05:57:21 +01:00
Merge branch 'develop' of github.com:oceanprotocol/docker-images into feature/refactor
This commit is contained in:
commit
18c52bb61f
@ -66,6 +66,7 @@ Option | Description
|
|||||||
`--no-pleuston` | Start up Ocean without an instance of `pleuston`. Helpful for development on `pleuston`.
|
`--no-pleuston` | Start up Ocean without an instance of `pleuston`. Helpful for development on `pleuston`.
|
||||||
`--local-parity-node` | Runs a local parity POA node and Secret Store instead of ganache-cli.
|
`--local-parity-node` | Runs a local parity POA node and Secret Store instead of ganache-cli.
|
||||||
`--reuse-database` | Start up Ocean and reuse the Database from ganache. Helpful for development.
|
`--reuse-database` | Start up Ocean and reuse the Database from ganache. Helpful for development.
|
||||||
|
`--purge` | Remove the volumes, local folder and networks used by the script.
|
||||||
|
|
||||||
For example, if you do:
|
For example, if you do:
|
||||||
|
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )"
|
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )"
|
||||||
COMPOSE_DIR="${DIR}/compose-files"
|
COMPOSE_DIR="${DIR}/compose-files"
|
||||||
# Must be set to true for the first run, change it to "false" to avoid migrating the smart contracts on each run.
|
# Must be set to true for the first run, change it to "false" to avoid migrating the smart contracts on each run.
|
||||||
export DEPLOY_CONTRACTS="false"
|
export DEPLOY_CONTRACTS="true"
|
||||||
# Ganache specific option, these two options have no effect when not running ganache-cli
|
# Ganache specific option, these two options have no effect when not running ganache-cli
|
||||||
export GANACHE_DATABASE_PATH="${DIR}"
|
export GANACHE_DATABASE_PATH="${DIR}"
|
||||||
export REUSE_DATABASE="false"
|
export REUSE_DATABASE="false"
|
||||||
@ -11,6 +11,7 @@ export REUSE_DATABASE="false"
|
|||||||
export KEEPER_NETWORK_NAME="ganache"
|
export KEEPER_NETWORK_NAME="ganache"
|
||||||
export ARTIFACTS_FOLDER=$HOME/.ocean/keeper-contracts/artifacts
|
export ARTIFACTS_FOLDER=$HOME/.ocean/keeper-contracts/artifacts
|
||||||
export BRIZO_ENV_FILE=$DIR/brizo.env
|
export BRIZO_ENV_FILE=$DIR/brizo.env
|
||||||
|
export PROJECT_NAME="ocean"
|
||||||
# Specify the ethereum default RPC container provider
|
# Specify the ethereum default RPC container provider
|
||||||
export RPC_URL='keeper-contracts'
|
export RPC_URL='keeper-contracts'
|
||||||
|
|
||||||
@ -65,6 +66,18 @@ while :; do
|
|||||||
export KEEPER_NETWORK_NAME="ocean_poa_net_local"
|
export KEEPER_NETWORK_NAME="ocean_poa_net_local"
|
||||||
printf $COLOR_Y'Starting with local Parity node...\n\n'$COLOR_RESET
|
printf $COLOR_Y'Starting with local Parity node...\n\n'$COLOR_RESET
|
||||||
;;
|
;;
|
||||||
|
--purge)
|
||||||
|
docker network rm $PROJECT_NAME_backend || true
|
||||||
|
docker network rm $PROJECT_NAME_default || true
|
||||||
|
docker volume rm $PROJECT_NAME_parity-node || true
|
||||||
|
docker volume rm $PROJECT_NAME_secret-store || true
|
||||||
|
read -p "Are you sure you want to delete $ARTIFACTS_FOLDER? " -n 1 -r
|
||||||
|
echo
|
||||||
|
if [[ $REPLY =~ ^[Yy]$ ]]
|
||||||
|
then
|
||||||
|
rm -rf $ARTIFACTS_FOLDER
|
||||||
|
fi
|
||||||
|
;;
|
||||||
--) # End of all options.
|
--) # End of all options.
|
||||||
shift
|
shift
|
||||||
break
|
break
|
||||||
@ -75,7 +88,7 @@ while :; do
|
|||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
printf $COLOR_Y'Starting Ocean...\n\n'$COLOR_RESET
|
printf $COLOR_Y'Starting Ocean...\n\n'$COLOR_RESET
|
||||||
docker-compose --project-name=ocean $COMPOSE_FILES up
|
docker-compose --project-name=$PROJECT_NAME $COMPOSE_FILES up
|
||||||
break
|
break
|
||||||
esac
|
esac
|
||||||
shift
|
shift
|
||||||
|
Loading…
x
Reference in New Issue
Block a user