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
This commit is contained in:
Daniel Safta 2021-10-27 11:33:09 +00:00
parent 36673774ee
commit f7309453d4
9 changed files with 77 additions and 0 deletions

View File

@ -0,0 +1,5 @@
crictl (1.0-1) unstable; urgency=medium
* Initial release.
-- Daniel Safta <daniel.safta@windriver.com> Wed, 27 Oct 2021 09:58:21 +0000

View File

@ -0,0 +1,15 @@
Source: crictl
Section: admin
Priority: optional
Maintainer: StarlingX Developers <starlingx-discuss@lists.starlingx.io>
Build-Depends: debhelper-compat (= 13)
Standards-Version: 4.4.1
Homepage: https://www.starlingx.io
Package: crictl
Architecture: any
Depends: ${misc:Depends}, ${shlibs:Depends}
Description: Provides a CLI for CRI-compatible container runtimes.
crictl provides a CLI for CRI-compatible container runtimes.
This allows the CRI runtime developers to debug their
runtime without needing to set up Kubernetes components.

View File

@ -0,0 +1,24 @@
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: cri-tools
Upstream-Contact: https://github.com/kubernetes-sigs/
Source: https://github.com/kubernetes-sigs/cri-tools
Files: *
Copyright: (C) 2012-2021 https://github.com/kubernetes-sigs/cri-tools
License: Apache-2
License: Apache-2
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
.
http://www.apache.org/licenses/LICENSE-2.0
.
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
.
On Debian-based systems the full text of the Apache version 2.0 license
can be found in `/usr/share/common-licenses/Apache-2.0'.

View File

@ -0,0 +1,2 @@
crictl /usr/bin/
crictl.yaml /etc/

View File

@ -0,0 +1 @@
statically-linked-binary

View File

@ -0,0 +1,4 @@
#!/usr/bin/make -f
%:
dh $@

View File

@ -0,0 +1,16 @@
#!/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}

View File

@ -0,0 +1,3 @@
runtime-endpoint: unix:///var/run/containerd/containerd.sock
image-endpoint: unix:///var/run/containerd/containerd.sock
debug: false

View File

@ -0,0 +1,7 @@
---
debname: crictl
debver: 1.0-1
dl_hook: dl_hook
revision:
dist: $STX_DIST
PKG_GITREVCOUNT: true