env override for extra run opts
This commit is contained in:
parent
1eac4c861b
commit
a6ec833c38
2
run.sh
2
run.sh
|
@ -65,6 +65,7 @@ run_embark_docker () {
|
||||||
local EMBARK_DOCKER_MOUNT_SOURCE=${EMBARK_DOCKER_MOUNT_DIR:-$PWD}
|
local EMBARK_DOCKER_MOUNT_SOURCE=${EMBARK_DOCKER_MOUNT_DIR:-$PWD}
|
||||||
local EMBARK_DOCKER_MOUNT_TARGET=${EMBARK_DOCKER_MOUNT_DIR:-/dapp}
|
local EMBARK_DOCKER_MOUNT_TARGET=${EMBARK_DOCKER_MOUNT_DIR:-/dapp}
|
||||||
local EMBARK_DOCKER_IMAGE=${EMBARK_DOCKER_IMAGE:-statusim/embark}
|
local EMBARK_DOCKER_IMAGE=${EMBARK_DOCKER_IMAGE:-statusim/embark}
|
||||||
|
local EMBARK_DOCKER_EXTRA_RUN_OPTS=${EMBARK_DOCKER_EXTRA_RUN_OPTS:-""}
|
||||||
local EMBARK_DOCKER_TAG=${EMBARK_DOCKER_TAG:-latest}
|
local EMBARK_DOCKER_TAG=${EMBARK_DOCKER_TAG:-latest}
|
||||||
|
|
||||||
docker run \
|
docker run \
|
||||||
|
@ -81,6 +82,7 @@ run_embark_docker () {
|
||||||
-p 30303:30303 \
|
-p 30303:30303 \
|
||||||
-v ${EMBARK_DOCKER_MOUNT_SOURCE}:${EMBARK_DOCKER_MOUNT_TARGET} \
|
-v ${EMBARK_DOCKER_MOUNT_SOURCE}:${EMBARK_DOCKER_MOUNT_TARGET} \
|
||||||
-e "TERM=${TERM}" \
|
-e "TERM=${TERM}" \
|
||||||
|
"${EMBARK_DOCKER_EXTRA_RUN_OPTS}" \
|
||||||
${EMBARK_DOCKER_IMAGE}:${EMBARK_DOCKER_TAG} \
|
${EMBARK_DOCKER_IMAGE}:${EMBARK_DOCKER_TAG} \
|
||||||
"$@"
|
"$@"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue