Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit a4ddaf1

Browse filesBrowse files
author
Takashi Matsuo
committed
use /v for project root
1 parent 3de9c7a commit a4ddaf1
Copy full SHA for a4ddaf1

File tree

Expand file treeCollapse file tree

1 file changed

+8
-4
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+8
-4
lines changed

‎.kokoro/trampoline_v2.sh

Copy file name to clipboardExpand all lines: .kokoro/trampoline_v2.sh
+8-4Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -252,16 +252,20 @@ docker_flags=(
252252
# Mount the project directory inside the Docker container. To
253253
# allow docker in docker correctly mount the volume, we use the
254254
# 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"
258258

259259
# Mount the temporary home directory.
260260
"--volume" "${tmphome}:/h"
261261
"--env" "HOME=/h"
262262

263263
# Allow docker in docker.
264264
"--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"
265269
)
266270

267271
# Add an option for nicer output if the build gets a tty.
@@ -284,7 +288,7 @@ if [[ $# -ge 1 ]]; then
284288
readonly commands=("${@:1}")
285289
else
286290
log_yellow "Running the tests in a Docker container."
287-
readonly commands=("${PWD}/${TRAMPOLINE_BUILD_FILE}")
291+
readonly commands=("/v/${TRAMPOLINE_BUILD_FILE}")
288292
fi
289293

290294
echo docker run "${docker_flags[@]}" "${TRAMPOLINE_IMAGE}" "${commands[@]}"

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.