9b89e0e6b4
- Update to version 1.1.0: * nerdctl compose: * New commands: nerdctl compose (stop|restart|rm|images|exec|pause|unpause|top|port) * New flags: nerdctl compose ps --format=json * New YAML properties: x-nerdctl-{verify,cosign-public-key,sign,cosign-private-key} * nerdctl image convert: * New estargz flags: --estargz-min-chunk-size=<SIZE>, --estargz-external-toc, --estargz-keep-diff-id * New zstd flags: --zstdchunked-record-in, --zstdchunked-compression-level, --zstdchunked-chunk-size * Support OverlayBD (--overlaybd, --overlaybd-fs-type, --overlaybd-dbstr * nerdctl network rm: * Support removing a network by ID * nerdctl-full: * Update containerd (1.6.12), fuse-overlayfs (1.10), RootlessKit (1.1.0), Kubo (0.17.0), Stargz Snapshotter (0.13.0), BuildKit (0.10.6) OBS-URL: https://build.opensuse.org/request/show/1043443 OBS-URL: https://build.opensuse.org/package/show/devel:microos/nerdctl?expand=0&rev=4
66 lines
2.1 KiB
RPMSpec
66 lines
2.1 KiB
RPMSpec
#
|
|
# spec file for package nerdctl
|
|
#
|
|
# Copyright (c) 2022 SUSE LLC
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%global provider github
|
|
%global provider_tld com
|
|
%global project containerd
|
|
%global repo nerdctl
|
|
%global provider_prefix %{provider}.%{provider_tld}/%{project}/%{repo}
|
|
%global import_path %{provider_prefix}
|
|
|
|
Name: nerdctl
|
|
Version: 1.1.0
|
|
Release: 0
|
|
Summary: Docker-compatible CLI for containerd
|
|
License: Apache-2.0
|
|
URL: https://github.com/containerd/nerdctl
|
|
Source: %{name}-%{version}.tar.gz
|
|
Source1: vendor.tar.xz
|
|
BuildRequires: golang(API) >= 1.18
|
|
Requires: buildkit
|
|
Requires: cni-plugins
|
|
Requires: containerd
|
|
Requires: rootlesskit >= 1.0.0
|
|
Requires: slirp4netns >= 0.4.0
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
%description
|
|
nerdctl is a Docker-compatible CLI for containerd.
|
|
|
|
%prep
|
|
%setup -qa1
|
|
|
|
%build
|
|
CGO_ENABLED=0
|
|
go build -mod=vendor -buildmode=pie -o _output/nerdctl %{provider_prefix}/cmd/nerdctl
|
|
|
|
%install
|
|
mkdir -p %{buildroot}%{_bindir}/
|
|
install -m 0755 _output/nerdctl %{buildroot}%{_bindir}/nerdctl
|
|
install -m 0755 extras/rootless/containerd-rootless-setuptool.sh %{buildroot}%{_bindir}/containerd-rootless-setuptool.sh
|
|
install -m 0755 extras/rootless/containerd-rootless.sh %{buildroot}%{_bindir}/containerd-rootless.sh
|
|
|
|
%files
|
|
%license LICENSE
|
|
%doc docs/*.md
|
|
%{_bindir}/nerdctl
|
|
%{_bindir}/containerd-rootless-setuptool.sh
|
|
%{_bindir}/containerd-rootless.sh
|
|
|
|
%changelog
|