You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
87 lines
2.9 KiB
87 lines
2.9 KiB
%global _missing_build_ids_terminate_build 0
|
|
%global debug_package %{nil}
|
|
|
|
Summary: Rootless support for Docker
|
|
Name: docker-ce-rootless-extras
|
|
Version: 27.2.1
|
|
Release: 1%{?dist}.inferit
|
|
Epoch: 0
|
|
|
|
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 Sep 18 2024 Dmitry Samoylik <Dmitriy.Samoylik@softline.com> - 27.2.1-1.inferit
|
|
- Update to 27.2.1
|
|
|
|
* Tue Aug 06 2024 Arkady L. Shane <tigro@msvsphere-os.ru> - 0:27.1.1-1.inferit
|
|
- Update to 27.1.1
|
|
- Added Epoch 0
|
|
|
|
* 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
|
|
|