commit b0d20a43a773e02556a06bef790fb57b25657a1c Author: tigro Date: Tue Aug 6 18:12:34 2024 +0300 import docker-ce-rootless-extras-27.0.3-1.el9 diff --git a/.docker-ce-rootless-extras.metadata b/.docker-ce-rootless-extras.metadata new file mode 100644 index 0000000..cbc6f54 --- /dev/null +++ b/.docker-ce-rootless-extras.metadata @@ -0,0 +1,2 @@ +fd1dffb38edcce1650b3b7b232e7be75d25912d2 SOURCES/go.tar.xz +d01e03147325efc2a6a9cbf7386783c375d1650b SOURCES/engine.tgz diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..cdc9022 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +SOURCES/go.tar.xz +SOURCES/engine.tgz diff --git a/SPECS/docker-ce-rootless-extras.spec b/SPECS/docker-ce-rootless-extras.spec new file mode 100644 index 0000000..363c975 --- /dev/null +++ b/SPECS/docker-ce-rootless-extras.spec @@ -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 - 27.0.3-1 +- Rebuilt for MSVSphere 9.4 + +* Tue Aug 06 2024 Arkady L. Shane - 27.0.3-1 +- Initial build for MSVSphere 9 +