From: subhash kumar singh Date: Wed, 26 Jun 2024 09:49:02 +0000 (+0000) Subject: Steps for installing nerdctl X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=commitdiff_plain;h=d02d34785ecfa162b7d0c550477a0465547ba4b7;p=aiml-fw%2Faimlfw-dep.git Steps for installing nerdctl Added steps to install nerdctl. Change-Id: I4b25ecd05435f66e24c456f7e1ed3c57156f7aec Signed-off-by: subhash kumar singh --- diff --git a/tools/kubernetes/install_k8s.sh b/tools/kubernetes/install_k8s.sh index 15f25b1..076a488 100755 --- a/tools/kubernetes/install_k8s.sh +++ b/tools/kubernetes/install_k8s.sh @@ -69,4 +69,18 @@ sudo sed -i 's/apiVersion: policy\/v1beta1/apiVersion: policy\/v1/g' calico.yaml echo "Applying modified Calico configuration..." kubectl apply -f calico.yaml -echo "Installation complete!" +echo "Installation completed for kubernetes!" + +# install nerdctl +NERDCTL_VERSION=1.7.6 # see https://github.com/containerd/nerdctl/releases for the latest release + +archType="amd64" +if test "$(uname -m)" = "aarch64" +then + archType="arm64" +fi + +wget -q "https://github.com/containerd/nerdctl/releases/download/v${NERDCTL_VERSION}/nerdctl-${NERDCTL_VERSION}-linux-${archType}.tar.gz" -O /tmp/nerdctl.tar.gz +sudo tar Cxzvvf /usr/bin /tmp/nerdctl.tar.gz + +echo "Installation completed for nerdctl!" \ No newline at end of file