add containerd-v2 binaries
Signed-off-by: dayshappy <zhangzhihui@xfusion.com>
This commit is contained in:
parent
b343c2d0e2
commit
2c04bc7dbd
@ -34,5 +34,5 @@ do
|
|||||||
done <"$series"
|
done <"$series"
|
||||||
cd $cwd
|
cd $cwd
|
||||||
cp -rf $src/* .
|
cp -rf $src/* .
|
||||||
mv $src/.git $src/git
|
mv $src/.git $cwd/.git
|
||||||
rm -rf containerd-1.6.20
|
rm -rf containerd-1.6.20
|
||||||
|
|||||||
13
config.toml
Normal file
13
config.toml
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
#root = "/var/lib/containerd"
|
||||||
|
#state = "/run/containerd"
|
||||||
|
#subreaper = true
|
||||||
|
#oom_score = 0
|
||||||
|
#[grpc]
|
||||||
|
# address = "/run/containerd/containerd.sock"
|
||||||
|
# uid = 0
|
||||||
|
# gid = 0
|
||||||
|
#[debug]
|
||||||
|
# address = "/run/containerd/debug.sock"
|
||||||
|
# uid = 0
|
||||||
|
# gid = 0
|
||||||
|
# level = "info"
|
||||||
13
containerd.service
Normal file
13
containerd.service
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=containerd container runtime
|
||||||
|
Documentation=https://containerd.io
|
||||||
|
After=network.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
ExecStartPre=/sbin/modprobe overlay
|
||||||
|
ExecStart=/usr/bin/containerd
|
||||||
|
Delegate=yes
|
||||||
|
KillMode=process
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
||||||
@ -2,7 +2,7 @@
|
|||||||
%global debug_package %{nil}
|
%global debug_package %{nil}
|
||||||
Version: 1.6.20
|
Version: 1.6.20
|
||||||
Name: containerd
|
Name: containerd
|
||||||
Release: 2
|
Release: 3
|
||||||
Summary: An industry-standard container runtime
|
Summary: An industry-standard container runtime
|
||||||
License: ASL 2.0
|
License: ASL 2.0
|
||||||
URL: https://containerd.io
|
URL: https://containerd.io
|
||||||
@ -12,6 +12,8 @@ Source2: apply-patch
|
|||||||
Source3: series.conf
|
Source3: series.conf
|
||||||
Source4: git-commit
|
Source4: git-commit
|
||||||
Source5: gen-commit.sh
|
Source5: gen-commit.sh
|
||||||
|
Source6: containerd.service
|
||||||
|
Source7: config.toml
|
||||||
|
|
||||||
BuildRequires: golang glibc-static make btrfs-progs-devel git
|
BuildRequires: golang glibc-static make btrfs-progs-devel git
|
||||||
|
|
||||||
@ -41,20 +43,36 @@ export GO111MODULE=off
|
|||||||
export GOPATH=$GO_BUILD_PATH:%{gopath}
|
export GOPATH=$GO_BUILD_PATH:%{gopath}
|
||||||
export BUILDTAGS="no_btrfs no_cri"
|
export BUILDTAGS="no_btrfs no_cri"
|
||||||
make
|
make
|
||||||
strip ./bin/containerd ./bin/containerd-shim ./bin/ctr
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
install -d $RPM_BUILD_ROOT/%{_bindir}
|
install -d $RPM_BUILD_ROOT/%{_bindir}
|
||||||
install -p -m 755 bin/containerd $RPM_BUILD_ROOT/%{_bindir}/containerd
|
install -p -m 755 bin/* $RPM_BUILD_ROOT/%{_bindir}/
|
||||||
install -p -m 755 bin/containerd-shim $RPM_BUILD_ROOT/%{_bindir}/containerd-shim
|
install -D -p -m 0644 %{S:6} %{buildroot}%{_unitdir}/containerd.service
|
||||||
install -p -m 755 bin/ctr $RPM_BUILD_ROOT/%{_bindir}/ctr
|
install -D -p -m 0644 %{S:7} %{buildroot}%{_sysconfdir}/containerd/config.toml
|
||||||
|
|
||||||
|
%post
|
||||||
|
%systemd_post containerd.service
|
||||||
|
|
||||||
|
%preun
|
||||||
|
%systemd_prerun containerd.service
|
||||||
|
|
||||||
|
%postun
|
||||||
|
%systemd_postun_with_restart containerd.service
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%{_bindir}/containerd
|
%{_bindir}/*
|
||||||
%{_bindir}/containerd-shim
|
%{_unitdir}/containerd.service
|
||||||
%{_bindir}/ctr
|
%dir %{_sysconfdir}/containerd
|
||||||
|
%config(noreplace) %{_sysconfdir}/containerd/config.toml
|
||||||
|
%exclude %{_bindir}/containerd-stress
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon May 15 2023 zhangzhihui<zhangzhihui@xfusion.com> - 1.6.20-3
|
||||||
|
- Type:bugfix
|
||||||
|
- ID:NA
|
||||||
|
- SUG:NA
|
||||||
|
- DESC:add other binaries to support high version.
|
||||||
|
|
||||||
* Fri Apr 21 2023 xulei<xulei@xfusion.com> - 1.6.20-2
|
* Fri Apr 21 2023 xulei<xulei@xfusion.com> - 1.6.20-2
|
||||||
- Type:bugfix
|
- Type:bugfix
|
||||||
- ID:NA
|
- ID:NA
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user