2024-01-05 21:52:10 +01:00
|
|
|
%define groupid 65440
|
|
|
|
%define userid 65440
|
2024-01-05 21:52:11 +01:00
|
|
|
# https://github.com/moby/moby/tree/v20.10.0/hack/dockerfile/install
|
|
|
|
%define tini_tag master@de40ad007797e0dcd8b7126f27bb87401d224240
|
2024-01-05 21:52:10 +01:00
|
|
|
|
2024-01-05 21:52:10 +01:00
|
|
|
Name: docker
|
2024-07-23 09:47:33 +02:00
|
|
|
Version: 27.1.0
|
2024-01-05 21:52:11 +01:00
|
|
|
Release: 1mamba
|
2024-01-05 21:52:10 +01:00
|
|
|
Summary: An open-source application container engine
|
2024-01-05 21:52:10 +01:00
|
|
|
Group: System/Servers
|
2024-01-05 21:52:10 +01:00
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
|
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
2024-01-05 21:52:11 +01:00
|
|
|
URL: https://www.docker.com/
|
2024-01-05 21:52:11 +01:00
|
|
|
Source: https://github.com/docker/cli.git/v%{version}/cli-%{version}.tar.bz2
|
|
|
|
Source1: https://github.com/moby/moby.git/v%{version}/moby-%{version}.tar.bz2
|
2024-04-15 10:38:23 +02:00
|
|
|
Source2: https://github.com/krallin/tini.git/%{tini_tag}/tini-%{version}.tar.bz2
|
2024-01-05 21:52:10 +01:00
|
|
|
License: Apache License 2.0
|
|
|
|
## AUTOBUILDREQ-BEGIN
|
|
|
|
BuildRequires: glibc-devel
|
|
|
|
BuildRequires: libsystemd-devel
|
|
|
|
## AUTOBUILDREQ-END
|
2024-01-05 21:52:10 +01:00
|
|
|
BuildRequires: libgo-devel >= 7.3.0-1mamba
|
2024-01-05 21:52:10 +01:00
|
|
|
BuildRequires: go-md2man
|
2024-04-23 22:55:30 +02:00
|
|
|
BuildRequires: go
|
2024-01-05 21:52:10 +01:00
|
|
|
%systemd_requires
|
2024-01-05 21:52:10 +01:00
|
|
|
Requires: containerd
|
|
|
|
Requires: runc
|
2024-01-05 21:52:10 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
An open-source application container engine.
|
|
|
|
|
|
|
|
%debug_package
|
|
|
|
|
|
|
|
%prep
|
2024-04-15 10:38:23 +02:00
|
|
|
%setup -q -c -a0 -a1 -a2
|
2024-01-05 21:52:11 +01:00
|
|
|
#% setup -q -c -D -T
|
|
|
|
#:<< _EOF
|
|
|
|
mv cli-%{version} cli
|
|
|
|
mv moby-%{version} moby
|
2024-01-05 21:52:10 +01:00
|
|
|
mv tini-%{version} tini
|
2024-04-15 10:38:23 +02:00
|
|
|
|
2024-01-05 21:52:10 +01:00
|
|
|
%build
|
2024-01-05 21:52:11 +01:00
|
|
|
#:<< _EOF
|
2024-01-05 21:52:10 +01:00
|
|
|
# create a fake go path directory and pushd into it
|
|
|
|
# $1 real directory
|
|
|
|
# $2 gopath directory
|
|
|
|
_fake_gopath_pushd() {
|
|
|
|
mkdir -p "$GOPATH/src/${2%/*}"
|
|
|
|
rm -f "$GOPATH/src/$2"
|
|
|
|
ln -rsT "$1" "$GOPATH/src/$2"
|
|
|
|
pushd "$GOPATH/src/$2" >/dev/null
|
|
|
|
}
|
|
|
|
|
|
|
|
_fake_gopath_popd() {
|
|
|
|
popd >/dev/null
|
|
|
|
}
|
|
|
|
|
|
|
|
### globals
|
2024-01-05 21:52:11 +01:00
|
|
|
export GOPATH="$PWD"
|
2024-01-05 21:52:10 +01:00
|
|
|
export PATH="$GOPATH/bin:$PATH"
|
|
|
|
|
|
|
|
### cli
|
2024-01-05 21:52:11 +01:00
|
|
|
_fake_gopath_pushd cli github.com/docker/cli
|
|
|
|
DISABLE_WARN_OUTSIDE_CONTAINER=1 make VERSION=%{version} dynbinary
|
|
|
|
make manpages
|
2024-01-05 21:52:10 +01:00
|
|
|
_fake_gopath_popd
|
|
|
|
|
|
|
|
### daemon
|
2024-01-05 21:52:11 +01:00
|
|
|
_fake_gopath_pushd moby github.com/docker/docker
|
2024-01-05 21:52:10 +01:00
|
|
|
DOCKER_GITCOMMIT=v%{version} \
|
2024-01-05 21:52:10 +01:00
|
|
|
DOCKER_BUILDTAGS='seccomp journald apparmor' \
|
2024-01-05 21:52:10 +01:00
|
|
|
VERSION=%{version}-ce \
|
|
|
|
hack/make.sh dynbinary
|
|
|
|
_fake_gopath_popd
|
|
|
|
|
|
|
|
### docker-init
|
|
|
|
_fake_gopath_pushd tini github.com/krallin/tini
|
|
|
|
cmake .
|
|
|
|
# we must use the static binary because it's started in a foreign os
|
|
|
|
make tini-static
|
|
|
|
_fake_gopath_popd
|
2024-01-05 21:52:10 +01:00
|
|
|
|
|
|
|
%install
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
|
2024-01-05 21:52:11 +01:00
|
|
|
### init
|
|
|
|
install -Dm755 tini/tini-static %{buildroot}%{_bindir}/docker-init
|
|
|
|
|
2024-01-05 21:52:11 +01:00
|
|
|
### dockerd
|
|
|
|
install -Dm755 moby/bundles/dynbinary-daemon/dockerd %{buildroot}%{_bindir}/dockerd
|
2024-04-15 10:38:23 +02:00
|
|
|
install -Dm755 moby/bundles/dynbinary-daemon/docker-proxy %{buildroot}%{_bindir}/docker-proxy
|
2024-01-05 21:52:11 +01:00
|
|
|
|
2024-01-05 21:52:10 +01:00
|
|
|
# systemd
|
2024-01-05 21:52:11 +01:00
|
|
|
install -Dm644 moby/contrib/init/systemd/docker.service \
|
2024-01-05 21:52:10 +01:00
|
|
|
%{buildroot}%{_unitdir}/docker.service
|
2024-01-05 21:52:11 +01:00
|
|
|
install -Dm644 moby/contrib/init/systemd/docker.socket \
|
2024-01-05 21:52:10 +01:00
|
|
|
%{buildroot}%{_unitdir}/docker.socket
|
2024-01-05 21:52:11 +01:00
|
|
|
install -Dm644 moby/contrib/udev/80-docker.rules \
|
2024-01-05 21:52:10 +01:00
|
|
|
%{buildroot}%{_udevrulesdir}/80-docker.rules
|
2024-01-05 21:52:11 +01:00
|
|
|
|
2024-01-05 21:52:10 +01:00
|
|
|
### cli
|
|
|
|
# binary
|
2024-01-05 21:52:11 +01:00
|
|
|
install -Dm755 cli/build/docker %{buildroot}%{_bindir}/docker
|
2024-04-15 10:38:23 +02:00
|
|
|
|
2024-01-05 21:52:10 +01:00
|
|
|
# completion
|
2024-01-05 21:52:11 +01:00
|
|
|
install -Dm644 cli/contrib/completion/bash/docker \
|
2024-01-05 21:52:10 +01:00
|
|
|
%{buildroot}%{_datadir}/bash-completion/completions/docker
|
2024-01-05 21:52:11 +01:00
|
|
|
install -Dm644 cli/contrib/completion/zsh/_docker \
|
2024-01-05 21:52:10 +01:00
|
|
|
%{buildroot}%{_datadir}/zsh/site-functions/_docker
|
2024-01-05 21:52:11 +01:00
|
|
|
install -Dm644 cli/contrib/completion/fish/docker.fish \
|
2024-01-05 21:52:10 +01:00
|
|
|
%{buildroot}%{_datadir}/fish/vendor_completions.d/docker.fish
|
2024-01-05 21:52:10 +01:00
|
|
|
# man
|
2024-01-05 21:52:10 +01:00
|
|
|
install -dm755 %{buildroot}%{_mandir}
|
2024-01-05 21:52:11 +01:00
|
|
|
cp -r cli/man/man* %{buildroot}%{_mandir}/
|
2024-01-05 21:52:10 +01:00
|
|
|
|
2024-01-05 21:52:10 +01:00
|
|
|
# symlink containerd/run
|
|
|
|
ln -s containerd %{buildroot}%{_bindir}/docker-containerd
|
|
|
|
ln -s containerd-shim %{buildroot}%{_bindir}/docker-containerd-shim
|
|
|
|
ln -s ctr %{buildroot}%{_bindir}/docker-containerd-ctr
|
|
|
|
ln -s runc %{buildroot}%{_bindir}/docker-runc
|
2024-01-05 21:52:10 +01:00
|
|
|
|
2024-04-15 10:38:23 +02:00
|
|
|
# Fix error in final rmbuild
|
|
|
|
chmod u+w pkg -R
|
|
|
|
|
2024-01-05 21:52:10 +01:00
|
|
|
%clean
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
|
|
|
|
%pre
|
|
|
|
if [ $1 -ge 1 ]; then
|
|
|
|
/usr/sbin/groupadd docker -g %{groupid} &>/dev/null
|
|
|
|
fi
|
|
|
|
:
|
|
|
|
|
|
|
|
%post
|
|
|
|
%systemd_post %{name}
|
|
|
|
:
|
|
|
|
|
|
|
|
%preun
|
|
|
|
%systemd_preun %{name}
|
|
|
|
:
|
|
|
|
|
|
|
|
%postun
|
|
|
|
%systemd_postun %{name}
|
|
|
|
if [ $1 -eq 0 ]; then
|
|
|
|
groupdel docker || true
|
|
|
|
fi
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_bindir}/docker
|
2024-01-05 21:52:10 +01:00
|
|
|
%{_bindir}/docker-containerd-ctr
|
|
|
|
%{_bindir}/docker-containerd-shim
|
2024-01-05 21:52:11 +01:00
|
|
|
%{_bindir}/docker-init
|
|
|
|
%{_bindir}/docker-proxy
|
2024-01-05 21:52:10 +01:00
|
|
|
%{_bindir}/docker-runc
|
|
|
|
%{_bindir}/docker-containerd
|
2024-01-05 21:52:10 +01:00
|
|
|
%{_bindir}/dockerd
|
|
|
|
%{_udevrulesdir}/80-docker.rules
|
2024-01-05 21:52:10 +01:00
|
|
|
%{_unitdir}/docker.service
|
|
|
|
%{_unitdir}/docker.socket
|
|
|
|
%{_datadir}/bash-completion/completions/docker
|
|
|
|
%{_datadir}/fish/vendor_completions.d/docker.fish
|
2024-04-15 10:38:23 +02:00
|
|
|
%{_datadir}/zsh/site-functions/_docker
|
2024-01-05 21:52:10 +01:00
|
|
|
%{_mandir}/man1/docker*.1*
|
|
|
|
%{_mandir}/man5/Dockerfile.5*
|
2024-01-05 21:52:10 +01:00
|
|
|
%{_mandir}/man5/docker-config-json.5*
|
|
|
|
%{_mandir}/man8/dockerd.8*
|
2024-01-05 21:52:11 +01:00
|
|
|
%doc moby/AUTHORS moby/LICENSE
|
2024-01-05 21:52:10 +01:00
|
|
|
|
|
|
|
%changelog
|
2024-07-23 09:47:33 +02:00
|
|
|
* Mon Jul 22 2024 Automatic Build System <autodist@openmamba.org> 27.1.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-07-03 10:57:53 +02:00
|
|
|
* Tue Jul 02 2024 Automatic Build System <autodist@openmamba.org> 27.0.3-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-06-27 14:07:57 +02:00
|
|
|
* Thu Jun 27 2024 Automatic Build System <autodist@openmamba.org> 27.0.2-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-06-26 00:15:40 +02:00
|
|
|
* Tue Jun 25 2024 Automatic Build System <autodist@openmamba.org> 27.0.1-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-06-08 15:32:06 +02:00
|
|
|
* Thu Jun 06 2024 Automatic Build System <autodist@openmamba.org> 26.1.4-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-05-17 01:52:58 +02:00
|
|
|
* Thu May 16 2024 Automatic Build System <autodist@openmamba.org> 26.1.3-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-05-10 13:41:07 +02:00
|
|
|
* Thu May 09 2024 Automatic Build System <autodist@openmamba.org> 26.1.2-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-05-01 01:23:37 +02:00
|
|
|
* Tue Apr 30 2024 Automatic Build System <autodist@openmamba.org> 26.1.1-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-04-23 22:55:30 +02:00
|
|
|
* Tue Apr 23 2024 Automatic Build System <autodist@openmamba.org> 26.1.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-04-19 14:10:52 +02:00
|
|
|
* Fri Apr 19 2024 Automatic Build System <autodist@openmamba.org> 26.0.2-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-04-15 10:38:23 +02:00
|
|
|
* Sun Apr 14 2024 Silvan Calarco <silvan.calarco@mambasoft.it> 26.0.1-1mamba
|
|
|
|
- update to 26.0.1
|
|
|
|
|
2024-01-05 21:52:25 +01:00
|
|
|
* Tue Jul 25 2023 Automatic Build System <autodist@mambasoft.it> 24.0.5-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 21:52:23 +01:00
|
|
|
* Sat Jul 08 2023 Automatic Build System <autodist@mambasoft.it> 24.0.4-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 21:52:23 +01:00
|
|
|
* Fri Jul 07 2023 Automatic Build System <autodist@mambasoft.it> 24.0.3-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 21:52:22 +01:00
|
|
|
* Fri May 26 2023 Automatic Build System <autodist@mambasoft.it> 24.0.2-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 21:52:21 +01:00
|
|
|
* Sat May 20 2023 Automatic Build System <autodist@mambasoft.it> 24.0.1-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 21:52:20 +01:00
|
|
|
* Wed May 17 2023 Automatic Build System <autodist@mambasoft.it> 24.0.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 21:52:19 +01:00
|
|
|
* Mon May 08 2023 Automatic Build System <autodist@mambasoft.it> 23.0.6-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 21:52:18 +01:00
|
|
|
* Tue May 02 2023 Automatic Build System <autodist@mambasoft.it> 23.0.5-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 21:52:17 +01:00
|
|
|
* Tue Apr 18 2023 Automatic Build System <autodist@mambasoft.it> 23.0.4-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 21:52:16 +01:00
|
|
|
* Wed Apr 05 2023 Automatic Build System <autodist@mambasoft.it> 23.0.3-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 21:52:15 +01:00
|
|
|
* Wed Mar 29 2023 Automatic Build System <autodist@mambasoft.it> 23.0.2-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 21:52:14 +01:00
|
|
|
* Fri Feb 10 2023 Automatic Build System <autodist@mambasoft.it> 23.0.1-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 21:52:13 +01:00
|
|
|
* Fri Feb 03 2023 Automatic Build System <autodist@mambasoft.it> 23.0.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 21:52:12 +01:00
|
|
|
* Fri Jan 20 2023 Automatic Build System <autodist@mambasoft.it> 20.10.23-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 21:52:11 +01:00
|
|
|
* Fri Dec 16 2022 Automatic Build System <autodist@mambasoft.it> 20.10.22-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 21:52:11 +01:00
|
|
|
* Wed Oct 26 2022 Automatic Build System <autodist@mambasoft.it> 20.10.21-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 21:52:11 +01:00
|
|
|
* Thu Oct 20 2022 Automatic Build System <autodist@mambasoft.it> 20.10.20-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 21:52:11 +01:00
|
|
|
* Sat Oct 15 2022 Automatic Build System <autodist@mambasoft.it> 20.10.19-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 21:52:11 +01:00
|
|
|
* Sat Sep 10 2022 Automatic Build System <autodist@mambasoft.it> 20.10.18-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 21:52:11 +01:00
|
|
|
* Tue Jun 07 2022 Automatic Build System <autodist@mambasoft.it> 20.10.17-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 21:52:11 +01:00
|
|
|
* Fri May 13 2022 Automatic Build System <autodist@mambasoft.it> 20.10.16-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 21:52:11 +01:00
|
|
|
* Sat May 07 2022 Automatic Build System <autodist@mambasoft.it> 20.10.15-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 21:52:11 +01:00
|
|
|
* Thu Mar 24 2022 Automatic Build System <autodist@mambasoft.it> 20.10.14-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 21:52:11 +01:00
|
|
|
* Fri Mar 11 2022 Automatic Build System <autodist@mambasoft.it> 20.10.13-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 21:52:11 +01:00
|
|
|
* Tue Dec 14 2021 Automatic Build System <autodist@mambasoft.it> 20.10.12-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 21:52:11 +01:00
|
|
|
* Thu Nov 18 2021 Automatic Build System <autodist@mambasoft.it> 20.10.11-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 21:52:11 +01:00
|
|
|
* Tue Oct 26 2021 Automatic Build System <autodist@mambasoft.it> 20.10.10-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 21:52:11 +01:00
|
|
|
* Tue Oct 05 2021 Automatic Build System <autodist@mambasoft.it> 20.10.9-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 21:52:11 +01:00
|
|
|
* Wed Aug 04 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 20.10.8-1mamba
|
|
|
|
- update to 20.10.8
|
|
|
|
|
2024-01-05 21:52:11 +01:00
|
|
|
* Wed Aug 04 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 19.03.15-2mamba
|
|
|
|
- install docker-proxy and docker-init
|
|
|
|
|
2024-01-05 21:52:10 +01:00
|
|
|
* Tue Feb 02 2021 Automatic Build System <autodist@mambasoft.it> 19.03.15-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 21:52:10 +01:00
|
|
|
* Wed Dec 02 2020 Automatic Build System <autodist@mambasoft.it> 19.03.14-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Fri Sep 18 2020 Automatic Build System <autodist@mambasoft.it> 19.03.13-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Tue Sep 01 2020 Automatic Build System <autodist@mambasoft.it> 19.03.12-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Tue May 12 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 19.03.8-1mamba
|
|
|
|
- update to 19.03.8
|
|
|
|
|
2024-01-05 21:52:10 +01:00
|
|
|
* Sun Jul 08 2018 Silvan Calarco <silvan.calarco@mambasoft.it> 18.05.0-1mamba
|
|
|
|
- update to 18.05.0
|
|
|
|
|
2024-01-05 21:52:10 +01:00
|
|
|
* Thu Apr 19 2018 Silvan Calarco <silvan.calarco@mambasoft.it> 1.11.1-3mamba
|
|
|
|
- rebuilt by autoport with build requirements: libgo-devel>=7.3.0-1mamba
|
|
|
|
|
2024-01-05 21:52:10 +01:00
|
|
|
* Fri Jul 29 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 1.11.1-2mamba
|
|
|
|
- require containerd and add necessary symlinks
|
|
|
|
|
2024-01-05 21:52:10 +01:00
|
|
|
* Sun May 15 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 1.11.1-1mamba
|
|
|
|
- update to 1.11.1
|
|
|
|
|
2024-01-05 21:52:10 +01:00
|
|
|
* Fri Jan 01 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 1.9.1-1mamba
|
|
|
|
- package created using the webbuild interface
|