diff --git a/scripts/docker/docker-compose-generic.yml b/scripts/docker/docker-compose-generic.yml index 633130f3d..5450addef 100644 --- a/scripts/docker/docker-compose-generic.yml +++ b/scripts/docker/docker-compose-generic.yml @@ -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: diff --git a/scripts/docker/entrypoint.inc.sh b/scripts/docker/entrypoint.inc.sh index 473023fa2..3d57064ee 100644 --- a/scripts/docker/entrypoint.inc.sh +++ b/scripts/docker/entrypoint.inc.sh @@ -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 +} diff --git a/scripts/docker/entrypoint.sh b/scripts/docker/entrypoint.sh index 9d95d53b1..9ff3db2dc 100755 --- a/scripts/docker/entrypoint.sh +++ b/scripts/docker/entrypoint.sh @@ -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" "$@"