File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -252,16 +252,20 @@ docker_flags=(
252
252
# Mount the project directory inside the Docker container. To
253
253
# allow docker in docker correctly mount the volume, we use the
254
254
# same path for the volume.
255
- " --volume" " ${PWD} :${PWD} "
256
- " --workdir" " ${PWD} "
257
- " --env" " PROJECT_ROOT=${PWD} "
255
+ " --volume" " ${PWD} :/v "
256
+ " --workdir" " /v "
257
+ " --env" " PROJECT_ROOT=/v "
258
258
259
259
# Mount the temporary home directory.
260
260
" --volume" " ${tmphome} :/h"
261
261
" --env" " HOME=/h"
262
262
263
263
# Allow docker in docker.
264
264
" --volume" " /var/run/docker.sock:/var/run/docker.sock"
265
+
266
+ # Mount the /tmp so that docker in docker can mount the files
267
+ # there correctly.
268
+ " --volume" " /tmp:/tmp"
265
269
)
266
270
267
271
# Add an option for nicer output if the build gets a tty.
@@ -284,7 +288,7 @@ if [[ $# -ge 1 ]]; then
284
288
readonly commands=(" ${@: 1} " )
285
289
else
286
290
log_yellow " Running the tests in a Docker container."
287
- readonly commands=(" ${PWD} /${TRAMPOLINE_BUILD_FILE} " )
291
+ readonly commands=(" /v /${TRAMPOLINE_BUILD_FILE} " )
288
292
fi
289
293
290
294
echo docker run " ${docker_flags[@]} " " ${TRAMPOLINE_IMAGE} " " ${commands[@]} "
You can’t perform that action at this time.
0 commit comments