File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -234,10 +234,6 @@ docker_flags=(
234
234
# isolation, just for packaging our dev tools.
235
235
" --privileged"
236
236
237
- # Pass down the KOKORO_GFILE_DIR
238
- " --volume" " ${KOKORO_GFILE_DIR:-/ dev/ shm} :/gfile"
239
- " --env" " KOKORO_GFILE_DIR=/gfile"
240
-
241
237
# Tells scripts whether they are running as part of CI or not.
242
238
" --env" " RUNNING_IN_CI=${RUNNING_IN_CI:- no} "
243
239
@@ -264,8 +260,17 @@ docker_flags=(
264
260
# Mount the /tmp so that docker in docker can mount the files
265
261
# there correctly.
266
262
" --volume" " /tmp:/tmp"
263
+
264
+ # Pass down the KOKORO_GFILE_DIR and KOKORO_KEYSTORE_DIR
265
+ # TODO(tmatsuo): This part is not portable.
266
+ " --env" " TRAMPOLINE_SECRET_DIR=/secrets"
267
+ " --volume" " ${KOKORO_GFILE_DIR:-/ dev/ shm} :/secrets/gfile"
268
+ " --env" " KOKORO_GFILE_DIR=/secrets/gfile"
269
+ " --volume" " ${KOKORO_KEYSTORE_DIR:-/ dev/ shm} :/secrets/keystore"
270
+ " --env" " KOKORO_KEYSTORE_DIR=/secrets/keystore"
267
271
)
268
272
273
+
269
274
# Add an option for nicer output if the build gets a tty.
270
275
if [[ -t 0 ]]; then
271
276
docker_flags+=(" -it" )
You can’t perform that action at this time.
0 commit comments