mirror of
https://github.com/oceanprotocol/barge.git
synced 2024-12-02 05:57:21 +01:00
commit
28aa10a05d
@ -114,6 +114,7 @@ will use the default Docker image tags for Aquarius, Keeper Contracts and Common
|
|||||||
| `--reuse-ganache-database` | Configures a running `ganache` node to use a persistent database. |
|
| `--reuse-ganache-database` | Configures a running `ganache` node to use a persistent database. |
|
||||||
| `--force-pull` | Force pulling the latest revision of the used Docker images. |
|
| `--force-pull` | Force pulling the latest revision of the used Docker images. |
|
||||||
| `--purge` | Removes the Docker containers, volumes, artifact folder and networks used by the script. |
|
| `--purge` | Removes the Docker containers, volumes, artifact folder and networks used by the script. |
|
||||||
|
| `--exposeip` | Binds the components to that specific ip. Exemple: ./start_ocean.sh --exposeip 192.168.0.1 |
|
||||||
|
|
||||||
## Docker Building Blocks
|
## Docker Building Blocks
|
||||||
|
|
||||||
@ -234,7 +235,7 @@ you will have available a keeper node in the local and private Spree Network wit
|
|||||||
Use one of the above accounts to populate `PROVIDER_ADDRESS`, `PROVIDER_PASSWORD` and `PROVIDER_KEYFILE` in `start_ocean.sh`.
|
Use one of the above accounts to populate `PROVIDER_ADDRESS`, `PROVIDER_PASSWORD` and `PROVIDER_KEYFILE` in `start_ocean.sh`.
|
||||||
This account will is used in `brizo` and `events-handler` as the `provider` account which is important for processing the
|
This account will is used in `brizo` and `events-handler` as the `provider` account which is important for processing the
|
||||||
service agreements flow. The `PROVIDER_KEYFILE` must be placed in the `accounts` folder and must match the ethereum
|
service agreements flow. The `PROVIDER_KEYFILE` must be placed in the `accounts` folder and must match the ethereum
|
||||||
address from `PROVIDER_ADDRESS`. The `PROVIDER_ADDRESS` is also set in `pleuston` instance so that published assets get
|
address from `PROVIDER_ADDRESS`. The `PROVIDER_ADDRESS` is also set in `commons` instance so that published assets get
|
||||||
assigned the correct provider address.
|
assigned the correct provider address.
|
||||||
|
|
||||||
### Spree Mnemonic
|
### Spree Mnemonic
|
||||||
|
@ -2,6 +2,18 @@
|
|||||||
# start_ocean.sh
|
# start_ocean.sh
|
||||||
# Copyright (c) 2019 Ocean Protocol contributors
|
# Copyright (c) 2019 Ocean Protocol contributors
|
||||||
# SPDX-License-Identifier: Apache-2.0
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
|
IP="localhost"
|
||||||
|
optspec=":-:"
|
||||||
|
while getopts "$optspec" optchar; do
|
||||||
|
case "${optchar}" in
|
||||||
|
-)
|
||||||
|
case "${OPTARG}" in
|
||||||
|
exposeip)
|
||||||
|
IP="${!OPTIND}"; OPTIND=$(( $OPTIND + 1 ))
|
||||||
|
;;
|
||||||
|
esac;;
|
||||||
|
esac
|
||||||
|
done
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
@ -42,7 +54,11 @@ export GANACHE_DATABASE_PATH="${DIR}"
|
|||||||
export GANACHE_REUSE_DATABASE="false"
|
export GANACHE_REUSE_DATABASE="false"
|
||||||
|
|
||||||
# Specify the ethereum default RPC container provider
|
# Specify the ethereum default RPC container provider
|
||||||
export KEEPER_RPC_HOST="keeper-node"
|
if [ ${IP} = "localhost" ]; then
|
||||||
|
export KEEPER_RPC_HOST="keeper-node"
|
||||||
|
else
|
||||||
|
export KEEPER_RPC_HOST=${IP}
|
||||||
|
fi
|
||||||
export KEEPER_RPC_PORT="8545"
|
export KEEPER_RPC_PORT="8545"
|
||||||
export KEEPER_RPC_URL="http://"${KEEPER_RPC_HOST}:${KEEPER_RPC_PORT}
|
export KEEPER_RPC_URL="http://"${KEEPER_RPC_HOST}:${KEEPER_RPC_PORT}
|
||||||
# Use this seed only on Spree! (Spree is the default.)
|
# Use this seed only on Spree! (Spree is the default.)
|
||||||
@ -68,28 +84,37 @@ CHECK_ELASTIC_VM_COUNT=true
|
|||||||
export BRIZO_WORKERS=${BRIZO_WORKERS:-5}
|
export BRIZO_WORKERS=${BRIZO_WORKERS:-5}
|
||||||
export BRIZO_LOG_LEVEL="INFO"
|
export BRIZO_LOG_LEVEL="INFO"
|
||||||
export EVENTS_HANDLER_LOG_LEVEL="INFO"
|
export EVENTS_HANDLER_LOG_LEVEL="INFO"
|
||||||
export BRIZO_URL=http://localhost:8030
|
export BRIZO_URL=http://${IP}:8030
|
||||||
|
|
||||||
# Set a valid parity address and password to have seamless interaction with the `keeper`
|
# Set a valid parity address and password to have seamless interaction with the `keeper`
|
||||||
# it has to exist on the secret store signing node and as well on the keeper node
|
# it has to exist on the secret store signing node and as well on the keeper node
|
||||||
export PROVIDER_ADDRESS=0x068ed00cf0441e4829d9784fcbe7b9e26d4bd8d0
|
export PROVIDER_ADDRESS=0x068ed00cf0441e4829d9784fcbe7b9e26d4bd8d0
|
||||||
export PROVIDER_PASSWORD=secret
|
export PROVIDER_PASSWORD=secret
|
||||||
export PROVIDER_KEYFILE="/accounts/provider.json"
|
export PROVIDER_KEYFILE="/accounts/provider.json"
|
||||||
export ACCOUNTS_FOLDER="../accounts"
|
export ACCOUNTS_FOLDER="../accounts"
|
||||||
|
if [ ${IP} = "localhost" ]; then
|
||||||
export SECRET_STORE_URL=http://secret-store:12001
|
export SECRET_STORE_URL=http://secret-store:12001
|
||||||
export SIGNING_NODE_URL=http://secret-store-signing-node:8545
|
export SIGNING_NODE_URL=http://secret-store-signing-node:8545
|
||||||
|
export AQUARIUS_URI=http://aquarius:5000
|
||||||
export AQUARIUS_URI=http://aquarius:5000
|
export FAUCET_URL=http://localhost:3001
|
||||||
|
export COMMONS_SERVER_URL=http://localhost:4000
|
||||||
|
export COMMONS_CLIENT_URL=http://localhost:3000
|
||||||
|
export COMMONS_KEEPER_RPC_HOST=http://localhost:8545
|
||||||
|
export COMMONS_SECRET_STORE_URL=http://localhost:12001
|
||||||
|
else
|
||||||
|
export SECRET_STORE_URL=http://${IP}:12001
|
||||||
|
export SIGNING_NODE_URL=http://${IP}:8545
|
||||||
|
export AQUARIUS_URI=http://${IP}:5000
|
||||||
|
export FAUCET_URL=http://${IP}:3001
|
||||||
|
export COMMONS_SERVER_URL=http://${IP}:4000
|
||||||
|
export COMMONS_CLIENT_URL=http://${IP}:3000
|
||||||
|
export COMMONS_KEEPER_RPC_HOST=http://${IP}:8545
|
||||||
|
export COMMONS_SECRET_STORE_URL=http://${IP}:12001
|
||||||
|
fi
|
||||||
# Default Faucet options
|
# Default Faucet options
|
||||||
export FAUCET_TIMESPAN=${FAUCET_TIMESPAN:-24}
|
export FAUCET_TIMESPAN=${FAUCET_TIMESPAN:-24}
|
||||||
export FAUCET_URL=http://localhost:3001
|
|
||||||
|
|
||||||
#commons
|
#commons
|
||||||
export COMMONS_SERVER_URL=http://localhost:4000
|
|
||||||
export COMMONS_CLIENT_URL=http://localhost:3000
|
|
||||||
export COMMONS_KEEPER_RPC_HOST=http://localhost:8545
|
|
||||||
export COMMONS_SECRET_STORE_URL=http://localhost:12001
|
|
||||||
export COMMONS_BRIZO_URL=${BRIZO_URL}
|
export COMMONS_BRIZO_URL=${BRIZO_URL}
|
||||||
export COMMONS_AQUARIUS_URI=${AQUARIUS_URI}
|
export COMMONS_AQUARIUS_URI=${AQUARIUS_URI}
|
||||||
export COMMONS_FAUCET_URL=${FAUCET_URL}
|
export COMMONS_FAUCET_URL=${FAUCET_URL}
|
||||||
@ -101,13 +126,14 @@ export LOCAL_GROUP_ID=$(id -g)
|
|||||||
|
|
||||||
#add aquarius to /etc/hosts
|
#add aquarius to /etc/hosts
|
||||||
|
|
||||||
if grep -q "aquarius" /etc/hosts; then
|
if [ ${IP} = "localhost" ]; then
|
||||||
echo "aquarius exists"
|
if grep -q "aquarius" /etc/hosts; then
|
||||||
else
|
echo "aquarius exists"
|
||||||
echo "127.0.0.1 aquarius" | sudo tee -a /etc/hosts
|
else
|
||||||
|
echo "127.0.0.1 aquarius" | sudo tee -a /etc/hosts
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
# colors
|
# colors
|
||||||
COLOR_R="\033[0;31m" # red
|
COLOR_R="\033[0;31m" # red
|
||||||
COLOR_G="\033[0;32m" # green
|
COLOR_G="\033[0;32m" # green
|
||||||
@ -204,6 +230,8 @@ DOCKER_COMPOSE_EXTRA_OPTS="${DOCKER_COMPOSE_EXTRA_OPTS:-}"
|
|||||||
|
|
||||||
while :; do
|
while :; do
|
||||||
case $1 in
|
case $1 in
|
||||||
|
--exposeip)
|
||||||
|
;;
|
||||||
#################################################
|
#################################################
|
||||||
# Log level
|
# Log level
|
||||||
#################################################
|
#################################################
|
||||||
|
Loading…
Reference in New Issue
Block a user