1
0
mirror of https://github.com/oceanprotocol/barge.git synced 2024-12-02 05:57:21 +01:00

fix brizo env

This commit is contained in:
Sebastian Gerske 2018-12-05 12:16:18 +01:00
parent 1695301c26
commit dbdd0c355f
6 changed files with 27 additions and 24 deletions

14
.env
View File

@ -1,11 +1,13 @@
# 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.
DEPLOY_CONTRACTS=true KEEPER_DEPLOY_CONTRACTS=true
# Specify which ethereum client to run or connect to: kovan, ganache, or ocean_poa_net_local
KEEPER_NETWORK_NAME=development
KEEPER_ARTIFACTS_FOLDER=~/.ocean/keeper-contracts/artifacts
# 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
GANACHE_DATABASE_PATH=. GANACHE_DATABASE_PATH=.
REUSE_DATABASE=false GANACHE_REUSE_DATABASE=false
# Specify which ethereum client to run or connect to: kovan, ganache, or ocean_poa_net_local
KEEPER_NETWORK_NAME=ganache
ARTIFACTS_FOLDER=~/.ocean/keeper-contracts/artifacts
# Specify which ocean version use: stable, latests, ... # Specify which ocean version use: stable, latests, ...
OCEAN_VERSION=stable OCEAN_VERSION=stable
COMPOSE_FILE=docker-compose.yml

View File

@ -7,7 +7,7 @@ PARITY_PASSWORD=node0
AQUARIUS_URL=http://aquarius:5000 AQUARIUS_URL=http://aquarius:5000
BRIZO_URL=http://brizo:8030 BRIZO_URL=http://brizo:8030
SECRET_STORE_URL=http://secret-store:12001 SECRET_STORE_URL=http://secret-store:12001
RPC_URL=${KEEPER_URL} RPC_URL=http://blockchain-node:8545
AZURE_ACCOUNT_NAME= AZURE_ACCOUNT_NAME=
AZURE_ACCOUNT_KEY= AZURE_ACCOUNT_KEY=

View File

@ -12,6 +12,6 @@ services:
env_file: env_file:
- ${BRIZO_ENV_FILE} - ${BRIZO_ENV_FILE}
environment: environment:
KEEPER_URL: http://${KEEPER_RPC_URL}:${KEEPER_RPC_PORT} KEEPER_URL: ${KEEPER_RPC_URL}
volumes: volumes:
- ${ARTIFACTS_FOLDER}:/usr/local/keeper-contracts/:ro - ${KEEPER_ARTIFACTS_FOLDER}:/usr/local/keeper-contracts/:ro

View File

@ -6,11 +6,13 @@ services:
backend: backend:
ipv4_address: 172.15.0.14 ipv4_address: 172.15.0.14
environment: environment:
LOCAL_CONTRACTS: "false" DEPLOY_CONTRACTS: ${KEEPER_DEPLOY_CONTRACTS}
DEPLOY_CONTRACTS: ${DEPLOY_CONTRACTS} REUSE_DATABASE: ${GANACHE_REUSE_DATABASE}
REUSE_DATABASE: "false" DATABASE_PATH: "/ganache-db"
NETWORK_NAME: ${KEEPER_NETWORK_NAME} NETWORK_NAME: ${KEEPER_NETWORK_NAME}
POA_HOST: ${KEEPER_RPC_URL} KEEPER_RPC_HOST: ${KEEPER_RPC_HOST}
KEEPER_RPC_PORT: ${KEEPER_RPC_PORT}
KEEPER_RPC_URL: ${KEEPER_RPC_URL}
depends_on: depends_on:
- blockchain-node - blockchain-node
volumes: volumes:

View File

@ -14,6 +14,6 @@ services:
# Need browser to connect to exposed ports # Need browser to connect to exposed ports
KEEPER_HOST: localhost KEEPER_HOST: localhost
AQUARIUS_HOST: localhost AQUARIUS_HOST: localhost
LOCAL_CONTRACTS: ${DEPLOY_CONTRACTS} LOCAL_CONTRACTS: ${KEEPER_DEPLOY_CONTRACTS}
volumes: volumes:
- ${ARTIFACTS_FOLDER}:/pleuston/node_modules/@oceanprotocol/keeper-contracts/artifacts/:ro - ${KEEPER_ARTIFACTS_FOLDER}:/pleuston/node_modules/@oceanprotocol/keeper-contracts/artifacts/:ro

View File

@ -18,10 +18,9 @@ export GANACHE_REUSE_DATABASE="false"
export BRIZO_ENV_FILE=$DIR/brizo.env export BRIZO_ENV_FILE=$DIR/brizo.env
# Specify the ethereum default RPC container provider # Specify the ethereum default RPC container provider
export KEEPER_RPC_URL='blockchain-node' export KEEPER_RPC_HOST='blockchain-node'
export KEEPER_RPC_PORT='8545' export KEEPER_RPC_PORT='8545'
export KEEPER_URL="http://"${KEEPER_RPC_URL}:${KEEPER_RPC_PORT} export KEEPER_RPC_URL="http://"${KEEPER_RPC_HOST}:${KEEPER_RPC_PORT}
# colors # colors
COLOR_R="\033[0;31m" # red COLOR_R="\033[0;31m" # red
@ -112,15 +111,15 @@ while :; do
# Cleaning switches # Cleaning switches
################################################# #################################################
--purge) --purge)
docker network rm $PROJECT_NAME_backend || true docker network rm ${PROJECT_NAME}_backend || true
docker network rm $PROJECT_NAME_default || true docker network rm ${PROJECT_NAME}_default || true
docker volume rm $PROJECT_NAME_parity-node || true docker volume rm ${PROJECT_NAME}_parity-node || true
docker volume rm $PROJECT_NAME_secret-store || true docker volume rm ${PROJECT_NAME}_secret-store || true
read -p "Are you sure you want to delete $ARTIFACTS_FOLDER? " -n 1 -r read -p "Are you sure you want to delete $KEEPER_ARTIFACTS_FOLDER? " -n 1 -r
echo echo
if [[ $REPLY =~ ^[Yy]$ ]] if [[ $REPLY =~ ^[Yy]$ ]]
then then
rm -rf $ARTIFACTS_FOLDER rm -rf ${KEEPER_ARTIFACTS_FOLDER}
fi fi
;; ;;
--) # End of all options. --) # End of all options.