2021-11-25 22:05:35 +00:00
|
|
|
#
|
|
|
|
# spec file for package rootlesskit
|
|
|
|
#
|
2023-02-06 11:48:59 +00:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2021-11-25 22:05:35 +00:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2022-04-22 19:55:09 +00:00
|
|
|
|
2021-11-25 22:05:35 +00:00
|
|
|
%global provider github
|
|
|
|
%global provider_tld com
|
|
|
|
%global project rootless-containers
|
|
|
|
%global repo rootlesskit
|
|
|
|
%global provider_prefix %{provider}.%{provider_tld}/%{project}/%{repo}
|
|
|
|
%global import_path %{provider_prefix}
|
|
|
|
|
|
|
|
Name: rootlesskit
|
2023-06-26 08:27:08 +00:00
|
|
|
Version: 1.1.1
|
2021-11-25 22:05:35 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: Linux-native fakeroot using user namespaces
|
|
|
|
License: Apache-2.0
|
|
|
|
URL: https://github.com/rootless-containers/rootlesskit
|
|
|
|
Source: %{name}-%{version}.tar.gz
|
|
|
|
Source1: vendor.tar.gz
|
2022-04-22 19:55:09 +00:00
|
|
|
BuildRequires: golang(API) >= 1.18
|
2021-11-25 22:05:35 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
%description
|
|
|
|
RootlessKit is a Linux-native implementation of "fake root"
|
|
|
|
using user_namespaces. RootlessKit is intended to run Docker and
|
|
|
|
Kubernetes as an unprivileged user (known as "Rootless mode"), so as to protect
|
|
|
|
the real root on the host from potential container-breakout attacks.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -qa1
|
|
|
|
|
|
|
|
%build
|
|
|
|
go build -mod=vendor -buildmode=pie -o _output/rootlesskit %{provider_prefix}/cmd/rootlesskit
|
|
|
|
go build -mod=vendor -buildmode=pie -o _output/rootlessctl %{provider_prefix}/cmd/rootlessctl
|
2023-02-06 11:48:59 +00:00
|
|
|
go build -mod=vendor -buildmode=pie -o _output/rootlesskit-docker-proxy %{provider_prefix}/cmd/rootlesskit-docker-proxy
|
2021-11-25 22:05:35 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
mkdir -p %{buildroot}%{_bindir}/
|
|
|
|
install -m 0755 _output/rootlesskit %{buildroot}%{_bindir}/rootlesskit
|
|
|
|
install -m 0755 _output/rootlessctl %{buildroot}%{_bindir}/rootlessctl
|
2023-02-06 11:48:59 +00:00
|
|
|
install -m 0755 _output/rootlesskit-docker-proxy %{buildroot}%{_bindir}/rootlesskit-docker-proxy
|
2021-11-25 22:05:35 +00:00
|
|
|
|
|
|
|
%files
|
|
|
|
%license LICENSE
|
|
|
|
%doc README.md docs/*.md
|
|
|
|
%{_bindir}/rootlesskit
|
|
|
|
%{_bindir}/rootlessctl
|
2023-02-06 11:48:59 +00:00
|
|
|
%{_bindir}/rootlesskit-docker-proxy
|
2021-11-25 22:05:35 +00:00
|
|
|
|
|
|
|
%changelog
|