import docker-ce-rootless-extras-27.0.3-1.el9

i9 changed/i9/docker-ce-rootless-extras-27.0.3-1.el9
Arkady L. Shane 3 months ago
commit b0d20a43a7
Signed by: tigro
GPG Key ID: 1EC08A25C9DB2503

@ -0,0 +1,2 @@
fd1dffb38edcce1650b3b7b232e7be75d25912d2 SOURCES/go.tar.xz
d01e03147325efc2a6a9cbf7386783c375d1650b SOURCES/engine.tgz

2
.gitignore vendored

@ -0,0 +1,2 @@
SOURCES/go.tar.xz
SOURCES/engine.tgz

@ -0,0 +1,78 @@
%global _missing_build_ids_terminate_build 0
%global debug_package %{nil}
Summary: Rootless support for Docker
Name: docker-ce-rootless-extras
Version: 27.0.3
Release: 1%{?dist}
License: ASL 2.0
URL: https://docs.docker.com/engine/security/rootless/
Source0: engine.tgz
# Local deps
Source1: go.tar.xz
Requires: docker-ce
# TODO: conditionally add `Requires: dbus-daemon` for Fedora and CentOS 8
# slirp4netns >= 0.4 is available in the all supported versions of CentOS and Fedora.
Requires: slirp4netns >= 0.4
# fuse-overlayfs >= 0.7 is available in the all supported versions of CentOS and Fedora.
Requires: fuse-overlayfs >= 0.7
BuildRequires: bash
BuildRequires: golang
# conflicting packages
Conflicts: rootlesskit
%description
Rootless support for Docker.
Use dockerd-rootless.sh to run the daemon.
Use dockerd-rootless-setuptool.sh to setup systemd for dockerd-rootless.sh .
This package contains RootlessKit, but does not contain VPNKit.
Either VPNKit or slirp4netns (>= 0.4.0) needs to be installed separately.
%prep
%setup -q -c -n src -a 0
%build
export TMP_GOPATH="${RPM_BUILD_DIR}/go"
export GOPATH="${RPM_BUILD_DIR}/go"
export PREFIX="${RPM_BUILD_DIR}/go"
tar xaf %{SOURCE1} -C ${RPM_BUILD_DIR}
export DOCKER_GITCOMMIT=%{_gitcommit_engine}
mkdir -p ${RPM_BUILD_DIR}/go/src/github.com/docker
ln -s ${RPM_BUILD_DIR}/src/engine ${RPM_BUILD_DIR}/go/src/github.com/docker/docker
chmod 755 ${RPM_BUILD_DIR}/go/pkg/mod/github.com/rootless-containers/rootlesskit/v2@v2.0.2
pushd ${RPM_BUILD_DIR}/go/pkg/mod/github.com/rootless-containers/rootlesskit/v2@v2.0.2
make
popd
%check
${RPM_BUILD_ROOT}%{_bindir}/rootlesskit -v
%install
install -D -p -m 0755 engine/contrib/dockerd-rootless.sh ${RPM_BUILD_ROOT}%{_bindir}/dockerd-rootless.sh
install -D -p -m 0755 engine/contrib/dockerd-rootless-setuptool.sh ${RPM_BUILD_ROOT}%{_bindir}/dockerd-rootless-setuptool.sh
install -D -p -m 0755 \
${RPM_BUILD_DIR}/go/pkg/mod/github.com/rootless-containers/rootlesskit/v2@v2.0.2/bin/rootlesskit \
${RPM_BUILD_ROOT}%{_bindir}/rootlesskit
install -D -p -m 0755 \
${RPM_BUILD_DIR}/go/pkg/mod/github.com/rootless-containers/rootlesskit/v2@v2.0.2/bin/rootlesskit-docker-proxy \
${RPM_BUILD_ROOT}%{_bindir}/rootlesskit-docker-proxy
%files
%{_bindir}/dockerd-rootless.sh
%{_bindir}/dockerd-rootless-setuptool.sh
%{_bindir}/rootlesskit
%{_bindir}/rootlesskit-docker-proxy
%changelog
* Tue Aug 06 2024 Arkady L. Shane <tigro@msvsphere-os.ru> - 27.0.3-1
- Rebuilt for MSVSphere 9.4
* Tue Aug 06 2024 Arkady L. Shane <tigro@msvsphere-os.ru> - 27.0.3-1
- Initial build for MSVSphere 9
Loading…
Cancel
Save