mirror of
https://github.com/oceanprotocol/barge.git
synced 2024-11-22 09:47:04 +01:00
refactor more
This commit is contained in:
parent
dbdd0c355f
commit
e10d515d8f
@ -5,9 +5,8 @@ PARITY_ADDRESS=0x00bd138abd70e2f00903268f3db08f2d25677c9e
|
|||||||
PARITY_PASSWORD=node0
|
PARITY_PASSWORD=node0
|
||||||
|
|
||||||
AQUARIUS_URL=http://aquarius:5000
|
AQUARIUS_URL=http://aquarius:5000
|
||||||
BRIZO_URL=http://brizo:8030
|
|
||||||
SECRET_STORE_URL=http://secret-store:12001
|
SECRET_STORE_URL=http://secret-store:12001
|
||||||
RPC_URL=http://blockchain-node:8545
|
RPC_URL=http://keeper-node:8545
|
||||||
|
|
||||||
AZURE_ACCOUNT_NAME=
|
AZURE_ACCOUNT_NAME=
|
||||||
AZURE_ACCOUNT_KEY=
|
AZURE_ACCOUNT_KEY=
|
||||||
|
@ -11,3 +11,10 @@ services:
|
|||||||
- mongodb
|
- mongodb
|
||||||
environment:
|
environment:
|
||||||
DB_HOSTNAME: mongodb
|
DB_HOSTNAME: mongodb
|
||||||
|
|
||||||
|
mongodb:
|
||||||
|
image: mongo:3.6
|
||||||
|
command: mongod
|
||||||
|
networks:
|
||||||
|
backend:
|
||||||
|
ipv4_address: 172.15.0.11
|
||||||
|
@ -8,7 +8,7 @@ services:
|
|||||||
backend:
|
backend:
|
||||||
ipv4_address: 172.15.0.17
|
ipv4_address: 172.15.0.17
|
||||||
depends_on:
|
depends_on:
|
||||||
- blockchain-node
|
- keeper-node
|
||||||
env_file:
|
env_file:
|
||||||
- ${BRIZO_ENV_FILE}
|
- ${BRIZO_ENV_FILE}
|
||||||
environment:
|
environment:
|
||||||
|
@ -14,6 +14,6 @@ services:
|
|||||||
KEEPER_RPC_PORT: ${KEEPER_RPC_PORT}
|
KEEPER_RPC_PORT: ${KEEPER_RPC_PORT}
|
||||||
KEEPER_RPC_URL: ${KEEPER_RPC_URL}
|
KEEPER_RPC_URL: ${KEEPER_RPC_URL}
|
||||||
depends_on:
|
depends_on:
|
||||||
- blockchain-node
|
- keeper-node
|
||||||
volumes:
|
volumes:
|
||||||
- ${KEEPER_ARTIFACTS_FOLDER}:/keeper-contracts/artifacts/
|
- ${KEEPER_ARTIFACTS_FOLDER}:/keeper-contracts/artifacts/
|
||||||
|
@ -1,8 +0,0 @@
|
|||||||
version: '2.1'
|
|
||||||
services:
|
|
||||||
mongodb:
|
|
||||||
image: mongo:3.6
|
|
||||||
command: mongod
|
|
||||||
networks:
|
|
||||||
backend:
|
|
||||||
ipv4_address: 172.15.0.11
|
|
@ -10,5 +10,5 @@ networks:
|
|||||||
gateway: 172.15.0.1
|
gateway: 172.15.0.1
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
parity-node:
|
keeper-node:
|
||||||
secret-store:
|
secret-store:
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
version: '2.1'
|
version: '2.1'
|
||||||
services:
|
services:
|
||||||
blockchain-node:
|
keeper-node:
|
||||||
image: trufflesuite/ganache-cli:latest
|
image: trufflesuite/ganache-cli:latest
|
||||||
ports:
|
ports:
|
||||||
- 8545:8545
|
- 8545:8545
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
version: '2.1'
|
version: '2.1'
|
||||||
services:
|
services:
|
||||||
blockchain-node:
|
keeper-node:
|
||||||
image: oceanprotocol/parity-ethereum:beta
|
image: oceanprotocol/parity-ethereum:beta
|
||||||
entrypoint: /opt/parity/parity
|
entrypoint: /opt/parity/parity
|
||||||
command:
|
command:
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
version: '2.1'
|
version: '2.1'
|
||||||
services:
|
services:
|
||||||
blockchain-node:
|
keeper-node:
|
||||||
image: oceanprotocol/parity-ethereum:beta
|
image: oceanprotocol/parity-ethereum:beta
|
||||||
entrypoint: /opt/parity/parity
|
entrypoint: /opt/parity/parity
|
||||||
command:
|
command:
|
||||||
@ -18,7 +18,7 @@ services:
|
|||||||
--unlock 0x00bd138abd70e2f00903268f3db08f2d25677c9e
|
--unlock 0x00bd138abd70e2f00903268f3db08f2d25677c9e
|
||||||
volumes:
|
volumes:
|
||||||
- ../parity/parity/config:/home/parity/parity/config
|
- ../parity/parity/config:/home/parity/parity/config
|
||||||
- parity-node:/home/parity/.local/share/io.parity.ethereum/
|
- keeper-node:/home/parity/.local/share/io.parity.ethereum/
|
||||||
- ../parity/parity/authorities/validator0.json:/home/parity/.local/share/io.parity.ethereum/keys/ocean-network/validator.json
|
- ../parity/parity/authorities/validator0.json:/home/parity/.local/share/io.parity.ethereum/keys/ocean-network/validator.json
|
||||||
- ../parity/parity/keys:/home/parity/.local/share/io.parity.ethereum/keys/ocean-network
|
- ../parity/parity/keys:/home/parity/.local/share/io.parity.ethereum/keys/ocean-network
|
||||||
- ../parity/parity/authorities/validator0.pwd:/home/parity/parity/validator.pwd
|
- ../parity/parity/authorities/validator0.pwd:/home/parity/parity/validator.pwd
|
||||||
|
@ -8,6 +8,7 @@ services:
|
|||||||
ports:
|
ports:
|
||||||
- 3000:3000
|
- 3000:3000
|
||||||
depends_on:
|
depends_on:
|
||||||
|
- keeper-node
|
||||||
- aquarius
|
- aquarius
|
||||||
- brizo
|
- brizo
|
||||||
environment:
|
environment:
|
||||||
|
@ -39,8 +39,11 @@ services:
|
|||||||
--jsonrpc-interface all
|
--jsonrpc-interface all
|
||||||
--jsonrpc-apis secretstore
|
--jsonrpc-apis secretstore
|
||||||
--jsonrpc-cors all
|
--jsonrpc-cors all
|
||||||
|
--keys-path /home/parity/.local/keys
|
||||||
ports:
|
ports:
|
||||||
- 9545:8545
|
- 9545:8545
|
||||||
|
volumes:
|
||||||
|
- ../parity/parity/keys:/home/parity/.local/keys/DevelopmentChain:ro
|
||||||
networks:
|
networks:
|
||||||
backend:
|
backend:
|
||||||
ipv4_address: 172.15.0.18
|
ipv4_address: 172.15.0.18
|
@ -9,7 +9,7 @@ export PROJECT_NAME="ocean"
|
|||||||
export KEEPER_DEPLOY_CONTRACTS="true"
|
export KEEPER_DEPLOY_CONTRACTS="true"
|
||||||
export KEEPER_ARTIFACTS_FOLDER=$HOME/.ocean/keeper-contracts/artifacts
|
export KEEPER_ARTIFACTS_FOLDER=$HOME/.ocean/keeper-contracts/artifacts
|
||||||
# Specify which ethereum client to run or connect to: development, kovan, or ocean_poa_net_local
|
# Specify which ethereum client to run or connect to: development, kovan, or ocean_poa_net_local
|
||||||
export KEEPER_NETWORK_NAME="development"
|
export KEEPER_NETWORK_NAME="ocean_poa_net_local"
|
||||||
|
|
||||||
# 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}"
|
||||||
@ -18,7 +18,7 @@ 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_HOST='blockchain-node'
|
export KEEPER_RPC_HOST='keeper-node'
|
||||||
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}
|
||||||
|
|
||||||
@ -47,7 +47,6 @@ export NODE_FILE=${COMPOSE_DIR}/nodes/pond_node.yml
|
|||||||
|
|
||||||
COMPOSE_FILES=""
|
COMPOSE_FILES=""
|
||||||
COMPOSE_FILES+=" -f ${COMPOSE_DIR}/network_volumes.yml"
|
COMPOSE_FILES+=" -f ${COMPOSE_DIR}/network_volumes.yml"
|
||||||
COMPOSE_FILES+=" -f ${COMPOSE_DIR}/mongodb.yml"
|
|
||||||
COMPOSE_FILES+=" -f ${COMPOSE_DIR}/pleuston.yml"
|
COMPOSE_FILES+=" -f ${COMPOSE_DIR}/pleuston.yml"
|
||||||
COMPOSE_FILES+=" -f ${COMPOSE_DIR}/aquarius.yml"
|
COMPOSE_FILES+=" -f ${COMPOSE_DIR}/aquarius.yml"
|
||||||
COMPOSE_FILES+=" -f ${COMPOSE_DIR}/brizo.yml"
|
COMPOSE_FILES+=" -f ${COMPOSE_DIR}/brizo.yml"
|
||||||
@ -79,18 +78,12 @@ while :; do
|
|||||||
#################################################
|
#################################################
|
||||||
# Node type switches
|
# Node type switches
|
||||||
#################################################
|
#################################################
|
||||||
# connect you to kovan
|
# connects you to kovan
|
||||||
--local-kovan-node)
|
--local-kovan-node)
|
||||||
export NODE_FILE=${COMPOSE_DIR}/nodes/kovan_node.yml
|
export NODE_FILE=${COMPOSE_DIR}/nodes/kovan_node.yml
|
||||||
export KEEPER_NETWORK_NAME="kovan"
|
export KEEPER_NETWORK_NAME="kovan"
|
||||||
printf $COLOR_Y'Starting with local Kovan node...\n\n'$COLOR_RESET
|
printf $COLOR_Y'Starting with local Kovan node...\n\n'$COLOR_RESET
|
||||||
;;
|
;;
|
||||||
# connects to ocean testnet
|
|
||||||
--local-lake-node)
|
|
||||||
export NODE_FILE=${COMPOSE_DIR}/nodes/lake_node.yml
|
|
||||||
export KEEPER_NETWORK_NAME="ocean_poa_aws"
|
|
||||||
printf $COLOR_Y'Starting with local Pond node...\n\n'$COLOR_RESET
|
|
||||||
;;
|
|
||||||
# spins up a new ganache blockchain
|
# spins up a new ganache blockchain
|
||||||
--local-ganache-node)
|
--local-ganache-node)
|
||||||
COMPOSE_FILES+=" -f ${COMPOSE_DIR}/keeper_contracts.yml"
|
COMPOSE_FILES+=" -f ${COMPOSE_DIR}/keeper_contracts.yml"
|
||||||
@ -99,6 +92,12 @@ while :; do
|
|||||||
export KEEPER_DEPLOY_CONTRACTS="true"
|
export KEEPER_DEPLOY_CONTRACTS="true"
|
||||||
printf $COLOR_Y'Starting with local Ganache node...\n\n'$COLOR_RESET
|
printf $COLOR_Y'Starting with local Ganache node...\n\n'$COLOR_RESET
|
||||||
;;
|
;;
|
||||||
|
# connects you to ocean testnet
|
||||||
|
--local-lake-node)
|
||||||
|
export NODE_FILE=${COMPOSE_DIR}/nodes/lake_node.yml
|
||||||
|
export KEEPER_NETWORK_NAME="ocean_poa_aws"
|
||||||
|
printf $COLOR_Y'Starting with local Lake node...\n\n'$COLOR_RESET
|
||||||
|
;;
|
||||||
# spins up pond local testnet
|
# spins up pond local testnet
|
||||||
--local-pond-node)
|
--local-pond-node)
|
||||||
COMPOSE_FILES+=" -f ${COMPOSE_DIR}/keeper_contracts.yml"
|
COMPOSE_FILES+=" -f ${COMPOSE_DIR}/keeper_contracts.yml"
|
||||||
@ -113,7 +112,7 @@ while :; do
|
|||||||
--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}_keeper-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 $KEEPER_ARTIFACTS_FOLDER? " -n 1 -r
|
read -p "Are you sure you want to delete $KEEPER_ARTIFACTS_FOLDER? " -n 1 -r
|
||||||
echo
|
echo
|
||||||
|
Loading…
Reference in New Issue
Block a user