support multiple extra run opts, e.g. "--rm -v ..."
This commit is contained in:
parent
df82c1cc44
commit
b09815c051
3
run.sh
3
run.sh
|
@ -64,6 +64,7 @@ run_embark () {
|
||||||
|
|
||||||
local dummy="-e __embark_docker_runsh"
|
local dummy="-e __embark_docker_runsh"
|
||||||
local EMBARK_DOCKER_EXTRA_RUN_OPTS=${EMBARK_DOCKER_EXTRA_RUN_OPTS:-$dummy}
|
local EMBARK_DOCKER_EXTRA_RUN_OPTS=${EMBARK_DOCKER_EXTRA_RUN_OPTS:-$dummy}
|
||||||
|
local -a extra_run_opts=( $EMBARK_DOCKER_EXTRA_RUN_OPTS )
|
||||||
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}
|
||||||
|
@ -89,7 +90,7 @@ run_embark () {
|
||||||
-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 \
|
-e TERM \
|
||||||
"${EMBARK_DOCKER_EXTRA_RUN_OPTS}" \
|
"${extra_run_opts[@]}" \
|
||||||
${EMBARK_DOCKER_IMAGE}:${EMBARK_DOCKER_TAG} \
|
${EMBARK_DOCKER_IMAGE}:${EMBARK_DOCKER_TAG} \
|
||||||
"${cmd[@]}"
|
"${cmd[@]}"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue