Danish Prakash
380e6bc540
- Update to version 1.5.0: * fix: registry missing layer when concurrently push image * update build dependencies * feat: add `stats` command to `container` * registry documentation update * feat: adding support for lazy-pulling with soci in pull and run command * Add network flag to nerdctl build * Re-enable revive rules * Add functionality to copy files into and out of stopped containers. * Fix subnet overlapping * fix compose lacking support for replicas = 0 * Fix minor typo in volume flags docs * Fix flaky windows test * Add metadata to volume create return * Remove warning msg when inspect containers without task * feat: add --volumes-from support in run command * Fix the rule of port allocate when executing -p multiple times for one command * Optimize for itoa operations * fix the restart policy in kill * refactor: container stats command * fix update restart policy * fix restart policy behaviour inconsistent * Prevent timing flakyness for `--since/--until` in TestLogs. * docs: fixed typo in command ref for nerdctl logs follow * feat: support '--detach-keys' for 'nerdctl (run|start)' * User docker compose v2 for docker-comppatible test * Adding ability to inject secrets into compose build command * Add `shm_size` service option support in Compose files * Ignore dependencies for compose build and logs * Sort OCI mounts for Docker compliance in nested mount scenario OBS-URL: https://build.opensuse.org/request/show/1102899 OBS-URL: https://build.opensuse.org/package/show/devel:microos/nerdctl?expand=0&rev=14
67 lines
2.1 KiB
RPMSpec
67 lines
2.1 KiB
RPMSpec
#
|
|
# spec file for package nerdctl
|
|
#
|
|
# Copyright (c) 2023 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.5.0
|
|
Release: 0
|
|
Summary: Docker-compatible CLI for containerd
|
|
License: Apache-2.0
|
|
URL: https://github.com/containerd/nerdctl
|
|
Source: %{name}-%{version}.tar.xz
|
|
Source1: vendor.tar.xz
|
|
BuildRequires: golang(API) >= 1.18
|
|
Requires: buildkit
|
|
Requires: cni-plugins
|
|
Requires: containerd
|
|
Requires: iptables
|
|
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
|