1
0
mirror of https://github.com/oceanprotocol/barge.git synced 2024-11-22 09:47:04 +01:00

Added option acl_contract

This commit is contained in:
Javier Cortejoso 2018-12-27 15:14:20 +01:00
parent 6ed7bdd1b8
commit 7fd3270002
No known key found for this signature in database
GPG Key ID: FBEEF3131E39EBCF
3 changed files with 17 additions and 3 deletions

View File

@ -82,6 +82,7 @@ Option | Description
`--local-nile-node` | Runs a node of the `nile` network and connects the node to the `nile` network. `--local-nile-node` | Runs a node of the `nile` network and connects the node to the `nile` network.
`--local-kovan-node` | Runs a light node of the `kovan` network and connects the node to the `kovan` network. `--local-kovan-node` | Runs a light node of the `kovan` network and connects the node to the `kovan` network.
`--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.
`--acl-contract` | Configures secret-store `acl_contract` option to enable secret-store authorization.
`--purge` | Removes the containers, volumes, artifact folder and networks used by the script. `--purge` | Removes the containers, volumes, artifact folder and networks used by the script.
## Docker Building Blocks ## Docker Building Blocks

View File

@ -1,8 +1,10 @@
version: '2.1' version: '2.1'
services: services:
secret-store: secret-store:
image: oceanprotocol/parity-ethereum:master image: oceanprotocol/parity-ethereum:acl_docker
entrypoint: /opt/parity/parity entrypoint: /entrypoint.sh
environment:
CONFIGURE_ACL: "${CONFIGURE_ACL}"
command: command:
--config /etc/parity/secretstore/config.toml --config /etc/parity/secretstore/config.toml
--jsonrpc-cors all --jsonrpc-cors all
@ -14,6 +16,7 @@ services:
- ../networks/secret-store/config/:/etc/parity/secretstore/ - ../networks/secret-store/config/:/etc/parity/secretstore/
- secret-store:/secret-store/ - secret-store:/secret-store/
- ../networks/secret-store/keys/:/secret-store/keys/secretstore/ - ../networks/secret-store/keys/:/secret-store/keys/secretstore/
- ${KEEPER_ARTIFACTS_FOLDER}:/contracts
ports: ports:
- 12000:12000 - 12000:12000
- 12001 - 12001

View File

@ -28,6 +28,9 @@ 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}
# Enable acl-contract validation in Secret-store
export CONFIGURE_ACL="false"
# 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
@ -95,7 +98,14 @@ while :; do
################################################# #################################################
--reuse-ganache-database) --reuse-ganache-database)
export GANACHE_REUSE_DATABASE="true" export GANACHE_REUSE_DATABASE="true"
printf $COLOR_Y'Starting and reusing the database ...\n\n'$COLOR_RESET printf $COLOR_Y'Starting and reusing the database...\n\n'$COLOR_RESET
;;
#################################################
# Secret-Store validation switch
#################################################
--acl-contract)
export CONFIGURE_ACL="true"
printf $COLOR_Y'Enabling acl validation in secret-store...\n\n'$COLOR_RESET
;; ;;
################################################# #################################################
# Node type switches # Node type switches