26 lines
833 B
Bash
Executable File
26 lines
833 B
Bash
Executable File
#!/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="."
|
|
export REUSE_DATABASE="false"
|
|
# 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
|
|
|
|
if [ "$1" == "--no-pleuston" ]
|
|
then
|
|
export REUSE_DATABASE="true"
|
|
docker-compose -f docker-compose-no-pleuston.yml up
|
|
|
|
elif [ "$1" == "--local-parity-node" ]
|
|
then
|
|
export KEEPER_NETWORK_NAME="ocean_poa_net_local"
|
|
docker-compose -f docker-compose-local-parity-node.yml up
|
|
|
|
else
|
|
docker-compose up
|
|
|
|
fi |