219 строки
7.5 KiB
Plaintext
219 строки
7.5 KiB
Plaintext
%global debug_package %{nil}
|
|
%define upstream_name containerd
|
|
%define commit_hash 8165feabfdfe38c65b599c4993d227328c231fca
|
|
|
|
Summary: Industry-standard container runtime
|
|
Name: moby-%{upstream_name}
|
|
Version: 1.6.22
|
|
Release: 4%{?dist}
|
|
License: ASL 2.0
|
|
Group: Tools/Container
|
|
URL: https://www.containerd.io
|
|
Vendor: Microsoft Corporation
|
|
Distribution: Mariner
|
|
|
|
Source0: https://github.com/containerd/containerd/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
|
Source1: containerd.service
|
|
Source2: containerd.toml
|
|
Patch0: Makefile.patch
|
|
Patch1: add_ptrace_readby_tracedby_to_apparmor.patch
|
|
|
|
%{?systemd_requires}
|
|
|
|
BuildRequires: btrfs-progs-devel
|
|
BuildRequires: git
|
|
BuildRequires: golang
|
|
BuildRequires: go-md2man
|
|
BuildRequires: make
|
|
BuildRequires: systemd-rpm-macros
|
|
|
|
Requires: moby-runc >= 1.1.0
|
|
|
|
Conflicts: containerd
|
|
Conflicts: containerd-io
|
|
Conflicts: moby-engine <= 3.0.10
|
|
|
|
Obsoletes: containerd
|
|
Obsoletes: containerd-io
|
|
|
|
%description
|
|
containerd is an industry-standard container runtime with an emphasis on
|
|
simplicity, robustness and portability. It is available as a daemon for Linux
|
|
and Windows, which can manage the complete container lifecycle of its host
|
|
system: image transfer and storage, container execution and supervision,
|
|
low-level storage and network attachments, etc.
|
|
|
|
containerd is designed to be embedded into a larger system, rather than being
|
|
used directly by developers or end-users.
|
|
|
|
%prep
|
|
%autosetup -p1 -n %{upstream_name}-%{version}
|
|
|
|
%build
|
|
export BUILDTAGS="-mod=vendor"
|
|
make VERSION="%{version}" REVISION="%{commit_hash}" binaries man
|
|
|
|
%check
|
|
export BUILDTAGS="-mod=vendor"
|
|
make VERSION="%{version}" REVISION="%{commit_hash}" test
|
|
|
|
%install
|
|
make VERSION="%{version}" REVISION="%{commit_hash}" DESTDIR="%{buildroot}" PREFIX="/usr" install install-man
|
|
|
|
mkdir -p %{buildroot}/%{_unitdir}
|
|
install -D -p -m 0644 %{SOURCE1} %{buildroot}%{_unitdir}/containerd.service
|
|
install -D -p -m 0644 %{SOURCE2} %{buildroot}%{_sysconfdir}/containerd/config.toml
|
|
install -vdm 755 %{buildroot}/opt/containerd/{bin,lib}
|
|
|
|
%post
|
|
%systemd_post containerd.service
|
|
|
|
if [ $1 -eq 1 ]; then # Package install
|
|
systemctl enable containerd.service > /dev/null 2>&1 || :
|
|
systemctl start containerd.service > /dev/null 2>&1 || :
|
|
fi
|
|
|
|
%preun
|
|
%systemd_preun containerd.service
|
|
|
|
%postun
|
|
%systemd_postun_with_restart containerd.service
|
|
|
|
%files
|
|
%license LICENSE NOTICE
|
|
%{_bindir}/*
|
|
%{_mandir}/*
|
|
%config(noreplace) %{_unitdir}/containerd.service
|
|
%config(noreplace) %{_sysconfdir}/containerd/config.toml
|
|
%dir /opt/containerd
|
|
%dir /opt/containerd/bin
|
|
%dir /opt/containerd/lib
|
|
|
|
%changelog
|
|
* Tue Oct 18 2023 Chris PeBenito <chpebeni@microsoft.com> - 1.6.22-4
|
|
- Precreate /opt/containerd/{bin,lib} to ensure correct SELinux labeling.
|
|
|
|
* Mon Oct 16 2023 CBL-Mariner Servicing Account <cblmargh@microsoft.com> - 1.6.22-3
|
|
- Bump release to rebuild with go 1.20.10
|
|
|
|
* Tue Oct 10 2023 Dan Streetman <ddstreet@ieee.org> - 1.6.22-2
|
|
- Bump release to rebuild with updated version of Go.
|
|
|
|
* Wed Aug 16 2023 Muhammad Falak <mwani@microsoft.com> - 1.6.22-1
|
|
- Bump version to 1.6.22
|
|
|
|
* Mon Aug 07 2023 CBL-Mariner Servicing Account <cblmargh@microsoft.com> - 1.6.18-7
|
|
- Bump release to rebuild with go 1.19.12
|
|
|
|
* Thu Jul 13 2023 CBL-Mariner Servicing Account <cblmargh@microsoft.com> - 1.6.18-6
|
|
- Bump release to rebuild with go 1.19.11
|
|
|
|
* Thu Jun 15 2023 CBL-Mariner Servicing Account <cblmargh@microsoft.com> - 1.6.18-5
|
|
- Bump release to rebuild with go 1.19.10
|
|
|
|
* Wed Apr 05 2023 CBL-Mariner Servicing Account <cblmargh@microsoft.com> - 1.6.18-4
|
|
- Bump release to rebuild with go 1.19.8
|
|
|
|
* Tue Mar 28 2023 CBL-Mariner Servicing Account <cblmargh@microsoft.com> - 1.6.18-3
|
|
- Bump release to rebuild with go 1.19.7
|
|
|
|
* Wed Mar 15 2023 CBL-Mariner Servicing Account <cblmargh@microsoft.com> - 1.6.18-2
|
|
- Bump release to rebuild with go 1.19.6
|
|
|
|
* Mon Mar 13 2023 CBL-Mariner Servicing Account <cblmargh@microsoft.com> - 1.6.18-1
|
|
- Auto-upgrade to 1.6.18 - to fix CVE-2023-25173, CVE-2023-25153
|
|
|
|
* Fri Feb 03 2023 CBL-Mariner Servicing Account <cblmargh@microsoft.com> - 1.6.12-5
|
|
- Bump release to rebuild with go 1.19.5
|
|
|
|
* Wed Jan 18 2023 CBL-Mariner Servicing Account <cblmargh@microsoft.com> - 1.6.12-4
|
|
- Bump release to rebuild with go 1.19.4
|
|
|
|
* Mon Dec 19 2022 Aadhar Agarwal <aadagarwal@microsoft.com> - 1.6.12-3
|
|
- Backport upstream fix in containerd to add ptrace readby and tracedby to default AppArmor profile (add_ptrace_readby_tracedby_to_apparmor.patch)
|
|
|
|
* Fri Dec 16 2022 Daniel McIlvaney <damcilva@microsoft.com> - 1.6.12-2
|
|
- Bump release to rebuild with go 1.18.8 with patch for CVE-2022-41717
|
|
|
|
* Wed Dec 14 2022 CBL-Mariner Servicing Account <cblmargh@microsoft.com> - 1.6.12-1
|
|
- Auto-upgrade to 1.6.12 - to fix CVE-2022-23471
|
|
|
|
* Tue Nov 01 2022 Olivia Crain <oliviacrain@microsoft.com> - 1.6.6-3
|
|
- Bump release to rebuild with go 1.18.8
|
|
|
|
* Mon Aug 22 2022 Olivia Crain <oliviacrain@microsoft.com> - 1.6.6-2
|
|
- Bump release to rebuild against Go 1.18.5
|
|
|
|
* Thu Jun 23 2022 Henry Beberman <henry.beberman@microsoft.com> - 1.6.6-1
|
|
- Bump version to 1.6.6 to address CVE-2022-31030
|
|
|
|
* Tue Jun 14 2022 Muhammad Falak <mwani@microsoft.com> - 1.6.2-1
|
|
- Bump version to 1.6.2 to address CVE-2022-24769
|
|
- Rebuild with golang 1.18.3
|
|
|
|
* Mon Mar 28 2022 Nicolas Guibourge <nicolasg@microsoft.com> - 1.6.1-3
|
|
- Default cgroup to 'systemd'
|
|
|
|
* Wed Mar 23 2022 Anirudh Gopal <angop@microsoft.com> - 1.6.1-2
|
|
- Always restart containerd service
|
|
|
|
* Mon Mar 14 2022 Nicolas Guibourge <nicolasg@microsoft.com> - 1.6.1-1
|
|
- Update to version 1.6.1
|
|
|
|
* Fri Jan 28 2022 Nicolas Guibourge <nicolasg@microsoft.com> - 1.6.0.rc.3-1
|
|
- Update to version 1.6.0-rc.3
|
|
- Use code from upstream instead of Azure fork.
|
|
|
|
* Tue Jan 24 2022 Henry Beberman <henry.beberman@microsoft.com> - 1.5.9+azure-1
|
|
- Update to version 1.5.9+azure
|
|
|
|
* Wed Jan 19 2022 Henry Li <lihl@microsoft.com> - 1.4.4+azure-6
|
|
- Increment release for force republishing using golang 1.16.12
|
|
|
|
* Tue Nov 02 2021 Thomas Crain <thcrain@microsoft.com> - 1.4.4+azure-5
|
|
- Increment release for force republishing using golang 1.16.9
|
|
|
|
* Mon Oct 04 2021 Henry Beberman <henry.beberman@microsoft.com> 1.4.4+azure-4
|
|
- Patch CVE-2021-41103
|
|
- Change config to noreplace
|
|
- Refactor how files is specified
|
|
|
|
* Fri Aug 06 2021 Nicolas Guibourge <nicolasg@microsoft.com> 1.4.4+azure-3
|
|
- Increment release to force republishing using golang 1.16.7.
|
|
|
|
* Mon Jul 19 2021 Neha Agarwal <nehaagarwal@microsoft.com> 1.4.4+azure-2
|
|
- CVE-2021-32760 fix
|
|
|
|
* Mon Jul 12 2021 Andrew Phelps <anphel@microsoft.com> 1.4.4+azure-1
|
|
- Update to version 1.4.4+azure
|
|
|
|
* Tue Jun 08 2021 Henry Beberman <henry.beberman@microsoft.com> 1.3.4+azure-3
|
|
- Increment release to force republishing using golang 1.15.13.
|
|
|
|
* Thu Dec 10 2020 Andrew Phelps <anphel@microsoft.com> 1.3.4+azure-2
|
|
- Increment release to force republishing using golang 1.15.
|
|
|
|
* Thu Jun 11 2020 Andrew Phelps <anphel@microsoft.com> 1.3.4+azure-1
|
|
- Update to version 1.3.4+azure
|
|
|
|
* Wed May 20 2020 Joe Schmitt <joschmit@microsoft.com> 1.3.3+azure-6
|
|
- Remove reliance on existing GOPATH environment variable.
|
|
|
|
* Sat May 09 2020 Nick Samson <nisamson@microsoft.com> 1.3.3+azure-5
|
|
- Added %%license line automatically
|
|
|
|
* Wed May 06 2020 Pawel Winogrodzki <pawelwi@microsoft.com> 1.3.3+azure-4
|
|
- Removing *Requires for "ca-certificates".
|
|
|
|
* Tue May 05 2020 Eric Li <eli@microsoft.com> 1.3.3+azure-3
|
|
- Add #Source0: and license verified
|
|
|
|
* Fri May 01 2020 Emre Girgin <mrgirgin@microsoft.com> 1.3.3+azure-2
|
|
- Renaming go to golang
|
|
|
|
* Fri Apr 03 2020 Mohan Datla <mdatla@microsoft.com> 1.3.3+azure-1
|
|
- Initial CBL-Mariner import from Azure.
|
|
|
|
* Thu Jan 23 2020 Brian Goff <brgoff@microsoft.com>
|
|
- Initial version
|