Enable override of terminal options for pegleg.sh
This takes care of removing -t option when running the script with automated system (e.g. Jenkins) Change-Id: I087b32d2635251f967a8f78c4d1f945827573be6
This commit is contained in:
parent
2c963948e2
commit
87b385be60
|
@ -5,6 +5,8 @@ set -e
|
|||
: ${WORKSPACE:=$(pwd)}
|
||||
: ${IMAGE:=quay.io/airshipit/pegleg:latest}
|
||||
|
||||
: ${TERM_OPTS:=-it}
|
||||
|
||||
echo
|
||||
echo "== NOTE: Workspace $WORKSPACE is the execution directory in the container =="
|
||||
echo
|
||||
|
@ -13,7 +15,7 @@ echo
|
|||
# host OS
|
||||
container_workspace_path='/workspace'
|
||||
|
||||
docker run --rm -it \
|
||||
docker run --rm $TERM_OPTS \
|
||||
--net=host \
|
||||
--workdir="$container_workspace_path" \
|
||||
-v "${HOME}/.ssh:${container_workspace_path}/.ssh" \
|
||||
|
|
Loading…
Reference in New Issue