File tree Expand file tree Collapse file tree 1 file changed +31
-2
lines changed Expand file tree Collapse file tree 1 file changed +31
-2
lines changed Original file line number Diff line number Diff line change 55export MSYS_NO_PATHCONV=1
66
77script=` cd $( dirname $0 ) && pwd` /` basename $0 `
8- image=$1
8+
9+ image=" "
10+ dev=0
11+
12+ while [[ $# -gt 0 ]]
13+ do
14+ case " $1 " in
15+ --dev)
16+ dev=1
17+ ;;
18+ * )
19+ if [ -n " $image " ]
20+ then
21+ echo " expected single argument for the image name"
22+ exit 1
23+ fi
24+ image=" $1 "
25+ ;;
26+ esac
27+ shift
28+ done
929
1030docker_dir=" ` dirname $script ` "
1131ci_dir=" ` dirname $docker_dir ` "
@@ -163,6 +183,15 @@ else
163183 args=" $args --env LOCAL_USER_ID=` id -u` "
164184fi
165185
186+ if [ " $dev " = " 1" ]
187+ then
188+ # Interactive + TTY
189+ args=" $args -it"
190+ command=" /bin/bash"
191+ else
192+ command=" /checkout/src/ci/run.sh"
193+ fi
194+
166195docker \
167196 run \
168197 --workdir /checkout/obj \
@@ -183,7 +212,7 @@ docker \
183212 --init \
184213 --rm \
185214 rust-ci \
186- /checkout/src/ci/run.sh
215+ $command
187216
188217if [ -f /.dockerenv ]; then
189218 rm -rf $objdir
You can’t perform that action at this time.
0 commit comments