Accuser: update docker scripts
This commit is contained in:
parent
b2194fa27d
commit
52e34cee0b
@ -34,6 +34,16 @@ services:
|
||||
- client_data:/var/run/tezos/client
|
||||
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:
|
||||
node_data:
|
||||
client_data:
|
||||
|
@ -123,3 +123,11 @@ launch_endorser() {
|
||||
--addr "$NODE_HOST" --port "$NODE_RPC_PORT" \
|
||||
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
|
||||
}
|
||||
|
@ -14,6 +14,7 @@ client="/usr/local/bin/tezos-client"
|
||||
admin_client="/usr/local/bin/tezos-admin-client"
|
||||
baker="/usr/local/bin/tezos-alpha-baker"
|
||||
endorser="/usr/local/bin/tezos-alpha-endorser"
|
||||
accuser="/usr/local/bin/tezos-alpha-accuser"
|
||||
|
||||
client_dir="$DATA_DIR/client"
|
||||
node_dir="$DATA_DIR/node"
|
||||
@ -34,6 +35,9 @@ case $command in
|
||||
tezos-endorser)
|
||||
launch_endorser "$@"
|
||||
;;
|
||||
tezos-accuser)
|
||||
launch_accuser "$@"
|
||||
;;
|
||||
tezos-client)
|
||||
configure_client
|
||||
exec "$client" "$@"
|
||||
|
Loading…
Reference in New Issue
Block a user