This is an automated email from the ASF dual-hosted git repository.
kaxilnaik pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/master by this push:
new f5795f1 Remove generating temp remote manifest file in project dir
(#9267)
f5795f1 is described below
commit f5795f1d6e965cccf76970f4eccab1f23c3b1092
Author: Kaxil Naik <[email protected]>
AuthorDate: Sat Jun 13 18:35:34 2020 +0100
Remove generating temp remote manifest file in project dir (#9267)
---
scripts/ci/libraries/_build_images.sh | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/scripts/ci/libraries/_build_images.sh
b/scripts/ci/libraries/_build_images.sh
index be349b8..9d2b748 100644
--- a/scripts/ci/libraries/_build_images.sh
+++ b/scripts/ci/libraries/_build_images.sh
@@ -243,7 +243,8 @@ function get_remote_image_info() {
set -e
# Docker needs the file passed to --cidfile to not exist, so we can't use
mktemp
- TMP_CONTAINER_ID="remote-airflow-manifest-$$.container_id"
+ TMP_CONTAINER_DIR="$(mktemp -d)"
+
TMP_CONTAINER_ID="${TMP_CONTAINER_DIR}/remote-airflow-manifest-$$.container_id"
FILES_TO_CLEANUP_ON_EXIT+=("$TMP_CONTAINER_ID")
TMP_MANIFEST_REMOTE_JSON=$(mktemp)