|
|
@ -1,11 +1,18 @@
|
|
|
|
%global debug_package %{nil}
|
|
|
|
%global debug_package %{nil}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%global _version 27.0.3
|
|
|
|
|
|
|
|
%global _release 1
|
|
|
|
|
|
|
|
%global _origversion %{_version}
|
|
|
|
|
|
|
|
|
|
|
|
Name: docker-ce
|
|
|
|
Name: docker-ce
|
|
|
|
Version: %{_version}
|
|
|
|
Version: %{_version}
|
|
|
|
Release: %{_release}%{?dist}
|
|
|
|
Release: %{_release}%{?dist}.inferit
|
|
|
|
Epoch: 3
|
|
|
|
Epoch: 3
|
|
|
|
Source0: engine.tgz
|
|
|
|
Source0: engine.tgz
|
|
|
|
|
|
|
|
Source1: tini.tgz
|
|
|
|
Patch0: 01-rlimit_nofile-rhel7.patch
|
|
|
|
Patch0: 01-rlimit_nofile-rhel7.patch
|
|
|
|
|
|
|
|
# MSVSphere
|
|
|
|
|
|
|
|
Patch100: 0001-MSVSphere-modify-tini.installer.patch
|
|
|
|
Summary: The open-source application container engine
|
|
|
|
Summary: The open-source application container engine
|
|
|
|
Group: Tools/Docker
|
|
|
|
Group: Tools/Docker
|
|
|
|
License: ASL 2.0
|
|
|
|
License: ASL 2.0
|
|
|
@ -39,6 +46,7 @@ Requires: xz
|
|
|
|
BuildRequires: bash
|
|
|
|
BuildRequires: bash
|
|
|
|
BuildRequires: ca-certificates
|
|
|
|
BuildRequires: ca-certificates
|
|
|
|
BuildRequires: cmake
|
|
|
|
BuildRequires: cmake
|
|
|
|
|
|
|
|
BuildRequires: golang
|
|
|
|
BuildRequires: gcc
|
|
|
|
BuildRequires: gcc
|
|
|
|
BuildRequires: git
|
|
|
|
BuildRequires: git
|
|
|
|
BuildRequires: glibc-static
|
|
|
|
BuildRequires: glibc-static
|
|
|
@ -54,6 +62,7 @@ BuildRequires: selinux-policy-devel
|
|
|
|
BuildRequires: systemd-devel
|
|
|
|
BuildRequires: systemd-devel
|
|
|
|
BuildRequires: tar
|
|
|
|
BuildRequires: tar
|
|
|
|
BuildRequires: which
|
|
|
|
BuildRequires: which
|
|
|
|
|
|
|
|
BuildRequires: kernel-rpm-macros
|
|
|
|
|
|
|
|
|
|
|
|
# conflicting packages
|
|
|
|
# conflicting packages
|
|
|
|
Conflicts: docker
|
|
|
|
Conflicts: docker
|
|
|
@ -61,9 +70,9 @@ Conflicts: docker-io
|
|
|
|
Conflicts: docker-ee
|
|
|
|
Conflicts: docker-ee
|
|
|
|
|
|
|
|
|
|
|
|
# Obsolete packages
|
|
|
|
# Obsolete packages
|
|
|
|
Obsoletes: docker-ce-selinux
|
|
|
|
#Obsoletes: docker-ce-selinux
|
|
|
|
Obsoletes: docker-engine-selinux
|
|
|
|
#Obsoletes: docker-engine-selinux
|
|
|
|
Obsoletes: docker-engine
|
|
|
|
#Obsoletes: docker-engine
|
|
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
%description
|
|
|
|
Docker is a product for you to build, ship and run any application as a
|
|
|
|
Docker is a product for you to build, ship and run any application as a
|
|
|
@ -81,16 +90,20 @@ depending on a particular stack or provider.
|
|
|
|
%if 0%{?rhel} == 7
|
|
|
|
%if 0%{?rhel} == 7
|
|
|
|
%patch -p1 -P 0
|
|
|
|
%patch -p1 -P 0
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%patch100 -p1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%build
|
|
|
|
|
|
|
|
|
|
|
|
export DOCKER_GITCOMMIT=%{_gitcommit_engine}
|
|
|
|
export DOCKER_GITCOMMIT=%{_gitcommit_engine}
|
|
|
|
mkdir -p /go/src/github.com/docker
|
|
|
|
mkdir -p ${RPM_BUILD_DIR}/go/src/github.com/docker
|
|
|
|
ln -snf ${RPM_BUILD_DIR}/src/engine /go/src/github.com/docker/docker
|
|
|
|
ln -snf ${RPM_BUILD_DIR}/src/engine ${RPM_BUILD_DIR}/go/src/github.com/docker/docker
|
|
|
|
|
|
|
|
|
|
|
|
pushd ${RPM_BUILD_DIR}/src/engine
|
|
|
|
pushd ${RPM_BUILD_DIR}/src/engine
|
|
|
|
TMP_GOPATH="/go" hack/dockerfile/install/install.sh tini
|
|
|
|
export TMP_GOPATH="${RPM_BUILD_DIR}/go"
|
|
|
|
VERSION=%{_origversion} PRODUCT=docker hack/make.sh dynbinary
|
|
|
|
tar -xf %{SOURCE1} -C "$TMP_GOPATH"
|
|
|
|
|
|
|
|
TMP_GOPATH="${RPM_BUILD_DIR}/go" hack/dockerfile/install/install.sh tini
|
|
|
|
|
|
|
|
GOPATH="${RPM_BUILD_DIR}/go" VERSION=%{_origversion} PRODUCT=docker hack/make.sh dynbinary
|
|
|
|
popd
|
|
|
|
popd
|
|
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
%check
|
|
|
@ -100,7 +113,8 @@ ver="$(engine/bundles/dynbinary-daemon/dockerd --version)"; \
|
|
|
|
%install
|
|
|
|
%install
|
|
|
|
install -D -p -m 0755 $(readlink -f engine/bundles/dynbinary-daemon/dockerd) ${RPM_BUILD_ROOT}%{_bindir}/dockerd
|
|
|
|
install -D -p -m 0755 $(readlink -f engine/bundles/dynbinary-daemon/dockerd) ${RPM_BUILD_ROOT}%{_bindir}/dockerd
|
|
|
|
install -D -p -m 0755 $(readlink -f engine/bundles/dynbinary-daemon/docker-proxy) ${RPM_BUILD_ROOT}%{_bindir}/docker-proxy
|
|
|
|
install -D -p -m 0755 $(readlink -f engine/bundles/dynbinary-daemon/docker-proxy) ${RPM_BUILD_ROOT}%{_bindir}/docker-proxy
|
|
|
|
install -D -p -m 0755 /usr/local/bin/docker-init ${RPM_BUILD_ROOT}%{_libexecdir}/docker/docker-init
|
|
|
|
install -D -p -m 0755 $(readlink -f engine/bundles/dynbinary-daemon/docker-proxy) ${RPM_BUILD_ROOT}%{_bindir}/docker-proxy
|
|
|
|
|
|
|
|
install -D -p -m 0755 ${RPM_BUILD_DIR}/go/tini/docker-init ${RPM_BUILD_ROOT}%{_libexecdir}/docker/docker-init
|
|
|
|
|
|
|
|
|
|
|
|
# install systemd scripts
|
|
|
|
# install systemd scripts
|
|
|
|
install -D -m 0644 engine/contrib/init/systemd/docker.service ${RPM_BUILD_ROOT}%{_unitdir}/docker.service
|
|
|
|
install -D -m 0644 engine/contrib/init/systemd/docker.service ${RPM_BUILD_ROOT}%{_unitdir}/docker.service
|
|
|
@ -130,3 +144,7 @@ fi
|
|
|
|
%systemd_postun_with_restart docker.service
|
|
|
|
%systemd_postun_with_restart docker.service
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
|
|
|
|
* Wed Jul 17 2024 Sergey Cherevko <s.cherevko@msvsphere-os.ru> - 27.0.3-1.inferit
|
|
|
|
|
|
|
|
- Adapted for build under MSVSphere 9
|
|
|
|
|
|
|
|
- Rebuilt for MSVSphere 9.4
|
|
|
|
|
|
|
|
|
|
|
|