2018-09-27 11:30:07 +02:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
export OCEAN_VERSION=latest
|
|
|
|
# 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="true"
|
|
|
|
# Ganache specific option, these two options have no effect when not running ganache-cli
|
|
|
|
export GANACHE_DATABASE_PATH="."
|
2018-09-27 13:15:43 +02:00
|
|
|
export REUSE_DATABASE="false"
|
2018-09-27 11:30:07 +02:00
|
|
|
# Specify which ethereum client to run or connect to: kovan, ganache, or ocean_poa_net_local
|
|
|
|
export KEEPER_NETWORK_NAME="ganache"
|
|
|
|
export ARTIFACTS_FOLDER=~/.ocean/keeper-contracts/artifacts
|
|
|
|
|
2018-10-02 13:13:10 +02:00
|
|
|
if [ "$1" == "--no-pleuston" ]; then
|
2018-09-27 13:15:43 +02:00
|
|
|
|
2018-10-02 13:13:10 +02:00
|
|
|
export REUSE_DATABASE="true"
|
|
|
|
docker-compose --project-name=ocean -f docker-compose-no-pleuston.yml up
|
2018-09-27 13:15:43 +02:00
|
|
|
|
2018-10-02 13:13:10 +02:00
|
|
|
elif [ "$1" == "--local-parity-node" ]; then
|
|
|
|
|
|
|
|
export KEEPER_NETWORK_NAME="ocean_poa_net_local"
|
|
|
|
docker-compose --project-name=ocean -f docker-compose-local-parity-node.yml up
|
2018-09-27 13:15:43 +02:00
|
|
|
|
2018-10-02 13:13:10 +02:00
|
|
|
else
|
|
|
|
docker-compose --project-name=ocean up
|
2018-09-27 13:15:43 +02:00
|
|
|
fi
|