From 926119040c4cbd6e46430469fc8dffa65173c02c Mon Sep 17 00:00:00 2001 From: Mikko Ylinen Date: Fri, 14 Feb 2025 14:55:43 +0200 Subject: [PATCH] packaging: make install_oras.sh to run curl without sudo sudo hides the environment variables that are sometimes useful with the builds (for example: proxy settings). While install_oras.sh could run completely without sudo in the container it's COPY'd to, make minimal changes to it to keep it functional outside the container too while still addressing the problem of 'sudo curl' not working with proxy env variables. Signed-off-by: Mikko Ylinen --- .../kata-deploy/local-build/dockerbuild/install_oras.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/packaging/kata-deploy/local-build/dockerbuild/install_oras.sh b/tools/packaging/kata-deploy/local-build/dockerbuild/install_oras.sh index 342d0ef95f..fd381ef0a8 100755 --- a/tools/packaging/kata-deploy/local-build/dockerbuild/install_oras.sh +++ b/tools/packaging/kata-deploy/local-build/dockerbuild/install_oras.sh @@ -37,7 +37,7 @@ fi oras_tarball="oras_${oras_required_version#v}_linux_${arch}.tar.gz" echo "Downloading ORAS ${oras_required_version}" -sudo curl -OL https://github.com/oras-project/oras/releases/download/${oras_required_version}/${oras_tarball} +curl -OL https://github.com/oras-project/oras/releases/download/${oras_required_version}/${oras_tarball} echo "Installing ORAS to ${install_dest}" sudo mkdir -p "${install_dest}"