From eadcb868f4e185b85464e1a415efd18da456d43d Mon Sep 17 00:00:00 2001 From: Amulyam24 Date: Tue, 5 Mar 2024 17:42:11 +0530 Subject: [PATCH] kata-deploy: install oras using release artefacts on ppc64le We are currently building Oras from source on ppc64le. Now that they offically release the artefacts for power, consume them to install Oras. Fixes: #9213 Signed-off-by: Amulyam24 --- .../local-build/dockerbuild/install_oras.sh | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) 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 7d12ec188b..342d0ef95f 100755 --- a/tools/packaging/kata-deploy/local-build/dockerbuild/install_oras.sh +++ b/tools/packaging/kata-deploy/local-build/dockerbuild/install_oras.sh @@ -15,7 +15,7 @@ function get_installed_oras_version() { oras version | grep Version | sed -e s/Version:// | tr -d [:blank:] } -oras_required_version="v1.1.0" +oras_required_version="v1.2.0" if command -v oras; then if [[ "${oras_required_version}" == "v$(get_installed_oras_version)" ]]; then echo "ORAS is already installed in the system" @@ -28,22 +28,6 @@ if command -v oras; then fi arch=$(uname -m) -if [ "${arch}" = "ppc64le" ]; then - echo "Building oras from source" - go_version="go1.21.3" - # Install go - wget https://go.dev/dl/${go_version}.linux-ppc64le.tar.gz - rm -rf /usr/local/go && tar -C /usr/local -xzf ${go_version}.linux-ppc64le.tar.gz - export PATH=$PATH:/usr/local/go/bin - go version - - git clone https://github.com/oras-project/oras.git - pushd oras - make build-linux-ppc64le - cp bin/linux/ppc64le/oras ${install_dest} - popd - exit 0 - fi if [ "${arch}" = "x86_64" ]; then arch="amd64" fi