Docker: Add Env variable BIN_DIR to specify binary location
This commit is contained in:
parent
a6290733ab
commit
bb45862659
@ -4,6 +4,7 @@ set -e
|
|||||||
|
|
||||||
bin_dir="$(cd "$(dirname "$0")" && echo "$(pwd -P)/")"
|
bin_dir="$(cd "$(dirname "$0")" && echo "$(pwd -P)/")"
|
||||||
|
|
||||||
|
: ${BIN_DIR:="/usr/local/bin"}
|
||||||
: ${DATA_DIR:="/var/run/tezos"}
|
: ${DATA_DIR:="/var/run/tezos"}
|
||||||
|
|
||||||
: ${NODE_HOST:="node"}
|
: ${NODE_HOST:="node"}
|
||||||
@ -11,13 +12,13 @@ bin_dir="$(cd "$(dirname "$0")" && echo "$(pwd -P)/")"
|
|||||||
|
|
||||||
: ${PROTOCOL:="unspecified-PROTOCOL-variable"}
|
: ${PROTOCOL:="unspecified-PROTOCOL-variable"}
|
||||||
|
|
||||||
node="/usr/local/bin/tezos-node"
|
node="$BIN_DIR/tezos-node"
|
||||||
client="/usr/local/bin/tezos-client"
|
client="$BIN_DIR/tezos-client"
|
||||||
admin_client="/usr/local/bin/tezos-admin-client"
|
admin_client="$BIN_DIR/tezos-admin-client"
|
||||||
baker="/usr/local/bin/tezos-baker-$PROTOCOL"
|
baker="$BIN_DIR/tezos-baker-$PROTOCOL"
|
||||||
endorser="/usr/local/bin/tezos-endorser-$PROTOCOL"
|
endorser="$BIN_DIR/tezos-endorser-$PROTOCOL"
|
||||||
accuser="/usr/local/bin/tezos-accuser-$PROTOCOL"
|
accuser="$BIN_DIR/tezos-accuser-$PROTOCOL"
|
||||||
signer="/usr/local/bin/tezos-signer"
|
signer="$BIN_DIR/tezos-signer"
|
||||||
|
|
||||||
client_dir="$DATA_DIR/client"
|
client_dir="$DATA_DIR/client"
|
||||||
node_dir="$DATA_DIR/node"
|
node_dir="$DATA_DIR/node"
|
||||||
|
Loading…
Reference in New Issue
Block a user