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:
parent
36673774ee
commit
f7309453d4
5
kubernetes/crictl/debian/deb_folder/changelog
Normal file
5
kubernetes/crictl/debian/deb_folder/changelog
Normal 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
|
15
kubernetes/crictl/debian/deb_folder/control
Normal file
15
kubernetes/crictl/debian/deb_folder/control
Normal 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.
|
24
kubernetes/crictl/debian/deb_folder/copyright
Normal file
24
kubernetes/crictl/debian/deb_folder/copyright
Normal 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'.
|
2
kubernetes/crictl/debian/deb_folder/crictl.install
Normal file
2
kubernetes/crictl/debian/deb_folder/crictl.install
Normal file
@ -0,0 +1,2 @@
|
||||
crictl /usr/bin/
|
||||
crictl.yaml /etc/
|
@ -0,0 +1 @@
|
||||
statically-linked-binary
|
4
kubernetes/crictl/debian/deb_folder/rules
Normal file
4
kubernetes/crictl/debian/deb_folder/rules
Normal file
@ -0,0 +1,4 @@
|
||||
#!/usr/bin/make -f
|
||||
|
||||
%:
|
||||
dh $@
|
16
kubernetes/crictl/debian/dl_hook
Executable file
16
kubernetes/crictl/debian/dl_hook
Executable 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}
|
3
kubernetes/crictl/debian/files/crictl.yaml
Normal file
3
kubernetes/crictl/debian/files/crictl.yaml
Normal file
@ -0,0 +1,3 @@
|
||||
runtime-endpoint: unix:///var/run/containerd/containerd.sock
|
||||
image-endpoint: unix:///var/run/containerd/containerd.sock
|
||||
debug: false
|
7
kubernetes/crictl/debian/meta_data.yaml
Normal file
7
kubernetes/crictl/debian/meta_data.yaml
Normal file
@ -0,0 +1,7 @@
|
||||
---
|
||||
debname: crictl
|
||||
debver: 1.0-1
|
||||
dl_hook: dl_hook
|
||||
revision:
|
||||
dist: $STX_DIST
|
||||
PKG_GITREVCOUNT: true
|
Loading…
x
Reference in New Issue
Block a user