From bb4586265991ea907419989e9630a0cc2892297c Mon Sep 17 00:00:00 2001 From: Pietro Abate Date: Tue, 7 Aug 2018 15:48:40 +0200 Subject: [PATCH] Docker: Add Env variable BIN_DIR to specify binary location --- scripts/docker/entrypoint.sh | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/scripts/docker/entrypoint.sh b/scripts/docker/entrypoint.sh index 1b709f378..e19f828e7 100755 --- a/scripts/docker/entrypoint.sh +++ b/scripts/docker/entrypoint.sh @@ -4,6 +4,7 @@ set -e bin_dir="$(cd "$(dirname "$0")" && echo "$(pwd -P)/")" +: ${BIN_DIR:="/usr/local/bin"} : ${DATA_DIR:="/var/run/tezos"} : ${NODE_HOST:="node"} @@ -11,13 +12,13 @@ bin_dir="$(cd "$(dirname "$0")" && echo "$(pwd -P)/")" : ${PROTOCOL:="unspecified-PROTOCOL-variable"} -node="/usr/local/bin/tezos-node" -client="/usr/local/bin/tezos-client" -admin_client="/usr/local/bin/tezos-admin-client" -baker="/usr/local/bin/tezos-baker-$PROTOCOL" -endorser="/usr/local/bin/tezos-endorser-$PROTOCOL" -accuser="/usr/local/bin/tezos-accuser-$PROTOCOL" -signer="/usr/local/bin/tezos-signer" +node="$BIN_DIR/tezos-node" +client="$BIN_DIR/tezos-client" +admin_client="$BIN_DIR/tezos-admin-client" +baker="$BIN_DIR/tezos-baker-$PROTOCOL" +endorser="$BIN_DIR/tezos-endorser-$PROTOCOL" +accuser="$BIN_DIR/tezos-accuser-$PROTOCOL" +signer="$BIN_DIR/tezos-signer" client_dir="$DATA_DIR/client" node_dir="$DATA_DIR/node"