mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-07-18 01:13:56 +00:00
tools: install oras from source on ppc64le
Since the release is not yet out for ppc64le, build oras from source and use it. Fixes: #8458 Signed-off-by: Amulyam24 <amulmek1@in.ibm.com>
This commit is contained in:
parent
08f3603123
commit
d8a8cc4491
@ -16,6 +16,9 @@ RUN apt-get update && \
|
||||
apt-get install -y --no-install-recommends \
|
||||
ca-certificates \
|
||||
curl \
|
||||
make \
|
||||
git \
|
||||
wget \
|
||||
sudo && \
|
||||
apt-get clean && rm -rf /var/lib/apt/lists/ && \
|
||||
install_yq.sh && \
|
||||
@ -43,10 +46,7 @@ RUN apt-get update && \
|
||||
build-essential \
|
||||
cpio \
|
||||
gcc \
|
||||
git \
|
||||
make \
|
||||
unzip \
|
||||
wget \
|
||||
xz-utils && \
|
||||
apt-get clean && rm -rf /var/lib/apt/lists
|
||||
|
||||
|
@ -29,9 +29,21 @@ fi
|
||||
|
||||
arch=$(uname -m)
|
||||
if [ "${arch}" = "ppc64le" ]; then
|
||||
echo "An ORAS release for ppc64le is not available yet."
|
||||
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
|
||||
fi
|
||||
if [ "${arch}" = "x86_64" ]; then
|
||||
arch="amd64"
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user