env override for extra run opts

This commit is contained in:
Michael Bradley, Jr 2018-07-24 15:38:47 -05:00
parent 1eac4c861b
commit a6ec833c38
1 changed files with 2 additions and 0 deletions

2
run.sh
View File

@ -65,6 +65,7 @@ run_embark_docker () {
local EMBARK_DOCKER_MOUNT_SOURCE=${EMBARK_DOCKER_MOUNT_DIR:-$PWD}
local EMBARK_DOCKER_MOUNT_TARGET=${EMBARK_DOCKER_MOUNT_DIR:-/dapp}
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}
docker run \
@ -81,6 +82,7 @@ run_embark_docker () {
-p 30303:30303 \
-v ${EMBARK_DOCKER_MOUNT_SOURCE}:${EMBARK_DOCKER_MOUNT_TARGET} \
-e "TERM=${TERM}" \
"${EMBARK_DOCKER_EXTRA_RUN_OPTS}" \
${EMBARK_DOCKER_IMAGE}:${EMBARK_DOCKER_TAG} \
"$@"