Daniel Safta f7309453d4 Add debian package for crictl
Crictl was previously packaged
with containerd and runc.
It is now packaged separately.

Story: 2009221
Task: 43782
Signed-off-by: Daniel Safta <daniel.safta@windriver.com>
Change-Id: If9b46283bed424bcac630347fad4af4b2e75975b
2021-11-04 11:27:01 +02:00

17 lines
328 B
Bash
Executable File

#!/bin/bash
set -x
VERSION="v1.21.0"
SOURCE=https://github.com/kubernetes-sigs/cri-tools/releases/download/$VERSION/crictl-$VERSION-linux-amd64.tar.gz
PKG=crictl-$VERSION-linux-amd64.tar.gz
wget $SOURCE
tar -zxvf $PKG
rm -rf $PKG
PKG_BUILD_NAME=$1
mkdir ${PKG_BUILD_NAME}
mv crictl ${PKG_BUILD_NAME}
pushd ${PKG_BUILD_NAME}