Accuser: update docker scripts

This commit is contained in:
Vincent Botbol 2018-06-25 17:39:36 +02:00
parent b2194fa27d
commit 52e34cee0b
3 changed files with 22 additions and 0 deletions

View File

@ -34,6 +34,16 @@ services:
- client_data:/var/run/tezos/client - client_data:/var/run/tezos/client
restart: on-failure restart: on-failure
accuser:
image: tezos/tezos:latest
hostname: accuser
command: tezos-accuser
links:
- node
volumes:
- client_data:/var/run/tezos/client
restart: on-failure
volumes: volumes:
node_data: node_data:
client_data: client_data:

View File

@ -123,3 +123,11 @@ launch_endorser() {
--addr "$NODE_HOST" --port "$NODE_RPC_PORT" \ --addr "$NODE_HOST" --port "$NODE_RPC_PORT" \
run --endorsement-delay 10 run --endorsement-delay 10
} }
launch_accuser() {
configure_client
wait_for_the_node_to_be_bootstraped
exec "$accuser" --base-dir "$client_dir" \
--addr "$NODE_HOST" --port "$NODE_RPC_PORT" \
run
}

View File

@ -14,6 +14,7 @@ client="/usr/local/bin/tezos-client"
admin_client="/usr/local/bin/tezos-admin-client" admin_client="/usr/local/bin/tezos-admin-client"
baker="/usr/local/bin/tezos-alpha-baker" baker="/usr/local/bin/tezos-alpha-baker"
endorser="/usr/local/bin/tezos-alpha-endorser" endorser="/usr/local/bin/tezos-alpha-endorser"
accuser="/usr/local/bin/tezos-alpha-accuser"
client_dir="$DATA_DIR/client" client_dir="$DATA_DIR/client"
node_dir="$DATA_DIR/node" node_dir="$DATA_DIR/node"
@ -34,6 +35,9 @@ case $command in
tezos-endorser) tezos-endorser)
launch_endorser "$@" launch_endorser "$@"
;; ;;
tezos-accuser)
launch_accuser "$@"
;;
tezos-client) tezos-client)
configure_client configure_client
exec "$client" "$@" exec "$client" "$@"