From 1b7c7901d9627b7ea34fbbb2b7e9be22ca7713e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabiano=20Fid=C3=AAncio?= Date: Mon, 28 Aug 2023 13:07:42 +0200 Subject: [PATCH] local-build: Remove $HOME/.docker/buildx/activity/default MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The file can be removed between builds without causing any issue, and leaving it around has been causing us some headache due to: ``` ERROR: open /home/runner/.docker/buildx/activity/default: permission denied ``` Signed-off-by: Fabiano FidĂȘncio (cherry picked from commit 3818bf3311a5d70704a3773941536f9a59a3a0e4) --- .../local-build/kata-deploy-binaries-in-docker.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tools/packaging/kata-deploy/local-build/kata-deploy-binaries-in-docker.sh b/tools/packaging/kata-deploy/local-build/kata-deploy-binaries-in-docker.sh index ebcc80c814..5c336cc8b0 100755 --- a/tools/packaging/kata-deploy/local-build/kata-deploy-binaries-in-docker.sh +++ b/tools/packaging/kata-deploy/local-build/kata-deploy-binaries-in-docker.sh @@ -32,6 +32,11 @@ TARGET_ARCH=${TARGET_ARCH:-$(uname -m)} TARGET_OS=${TARGET_OS:-linux} TARGET_ARCH=${TARGET_ARCH:-$ARCH} +# We've seen issues related to the /home/runner/.docker/buildx/activity/default file +# constantly being with the wrong permissions. +# Let's just remove the file before we build. +rm -f $HOME/.docker/buildx/activity/default + [ "${CROSS_BUILD}" == "true" ] && BUILDX="buildx" && PLATFORM="--platform=${TARGET_OS}/${TARGET_ARCH}" if [ "${CROSS_BUILD}" == "true" ]; then # check if the current docker support docker buildx