|
|
74debef |
# Below definitions are used to deliver config files from a particular branch
|
|
|
74debef |
# of c/image, c/common, c/storage vendored in all of Buildah, Podman and Skopeo.
|
|
|
ad1d3a6 |
# These vendored components must have the same version. If it is not the case,
|
|
|
ad1d3a6 |
# pick the oldest version on c/image, c/common, c/storage vendored in
|
|
|
74debef |
# Buildah/Podman/Skopeo.
|
|
|
689ed59 |
%global skopeo_branch v1.2.3
|
|
|
177cbd7 |
%global podman_branch v3.1.0
|
|
|
177cbd7 |
%global image_branch v5.10.5
|
|
|
689ed59 |
%global common_branch v0.36.0
|
|
|
177cbd7 |
%global storage_branch v1.29.0
|
|
|
480084d |
%global shortnames_branch main
|
|
|
6c71828 |
|
|
|
6c71828 |
%global github_containers https://raw.githubusercontent.com/containers
|
|
|
ad1d3a6 |
|
|
|
74debef |
Epoch: 4
|
|
|
ad1d3a6 |
Name: containers-common
|
|
|
dc5d922 |
Version: 1
|
|
|
8a6af2d |
Release: 15%{?dist}
|
|
|
ad1d3a6 |
Summary: Common configuration and documentation for containers
|
|
|
ad1d3a6 |
License: ASL 2.0
|
|
|
ad1d3a6 |
BuildArch: noarch
|
|
|
ad1d3a6 |
BuildRequires: go-md2man
|
|
|
689ed59 |
Requires: (container-selinux >= 2:2.160.0-1 if selinux-policy)
|
|
|
689ed59 |
Requires: oci-runtime
|
|
|
d799475 |
Provides: skopeo-containers = %{epoch}:%{version}-%{release}
|
|
|
05f2519 |
%if 0%{?fedora} || 0%{?centos} >= 8
|
|
|
ad1d3a6 |
Recommends: fuse-overlayfs
|
|
|
ad1d3a6 |
Recommends: slirp4netns
|
|
|
05f2519 |
%else
|
|
|
05f2519 |
Requires: fuse-overlayfs
|
|
|
05f2519 |
Requires: slirp4netns
|
|
|
05f2519 |
%endif
|
|
|
d4f828d |
Source1: %{github_containers}/common/%{common_branch}/docs/containers.conf.5.md
|
|
|
d4f828d |
Source2: %{github_containers}/common/%{common_branch}/pkg/config/containers.conf
|
|
|
d4f828d |
Source3: %{github_containers}/common/%{common_branch}/pkg/seccomp/seccomp.json
|
|
|
d4f828d |
Source4: %{github_containers}/common/%{common_branch}/pkg/subscriptions/mounts.conf
|
|
|
d4f828d |
Source5: %{github_containers}/image/%{image_branch}/docs/containers-auth.json.5.md
|
|
|
d4f828d |
Source6: %{github_containers}/image/%{image_branch}/docs/containers-certs.d.5.md
|
|
|
d4f828d |
Source7: %{github_containers}/image/%{image_branch}/docs/containers-policy.json.5.md
|
|
|
d4f828d |
Source8: %{github_containers}/image/%{image_branch}/docs/containers-registries.conf.5.md
|
|
|
d4f828d |
Source9: %{github_containers}/image/%{image_branch}/docs/containers-registries.conf.d.5.md
|
|
|
d4f828d |
Source10: %{github_containers}/image/%{image_branch}/docs/containers-registries.d.5.md
|
|
|
d4f828d |
Source11: %{github_containers}/image/%{image_branch}/docs/containers-signature.5.md
|
|
|
d4f828d |
Source12: %{github_containers}/image/%{image_branch}/docs/containers-transports.5.md
|
|
|
d4f828d |
Source13: %{github_containers}/image/%{image_branch}/registries.conf
|
|
|
d4f828d |
Source14: %{github_containers}/podman/%{podman_branch}/docs/source/markdown/containers-mounts.conf.5.md
|
|
|
d4f828d |
Source15: %{github_containers}/shortnames/%{shortnames_branch}/shortnames.conf
|
|
|
d4f828d |
Source16: %{github_containers}/skopeo/%{skopeo_branch}/default.yaml
|
|
|
c924ed9 |
Source17: %{github_containers}/skopeo/%{skopeo_branch}/default-policy.json
|
|
|
d4f828d |
Source18: %{github_containers}/storage/%{storage_branch}/docs/containers-storage.conf.5.md
|
|
|
d4f828d |
Source19: %{github_containers}/storage/%{storage_branch}/storage.conf
|
|
|
ad1d3a6 |
|
|
|
ad1d3a6 |
%description
|
|
|
ad1d3a6 |
This package contains common configuration files and documentation for container
|
|
|
6c71828 |
tools ecosystem, such as Podman, Buildah and Skopeo.
|
|
|
ad1d3a6 |
|
|
|
ad1d3a6 |
It is required because the most of configuration files and docs come from projects
|
|
|
6c71828 |
which are vendored into Podman, Buildah, Skopeo, etc. but they are not packaged
|
|
|
ad1d3a6 |
separately.
|
|
|
ad1d3a6 |
|
|
|
ad1d3a6 |
%prep
|
|
|
d753273 |
%if 0%{?centos} <= 7
|
|
|
d753273 |
sed -i 's/nodev,metacopy=on/nodev/' %{_sourcedir}/storage.conf
|
|
|
d753273 |
%endif
|
|
|
ad1d3a6 |
|
|
|
ad1d3a6 |
%build
|
|
|
ad1d3a6 |
|
|
|
ad1d3a6 |
%install
|
|
|
4538639 |
# install config and policy files for registries
|
|
|
6c71828 |
install -dp %{buildroot}%{_sysconfdir}/containers/{certs.d,oci/hooks.d,registries.conf.d,registries.d}
|
|
|
ad1d3a6 |
install -dp %{buildroot}%{_sharedstatedir}/containers/sigstore
|
|
|
dc5d922 |
install -m0644 %{_sourcedir}/default.yaml %{buildroot}%{_sysconfdir}/containers/registries.d/default.yaml
|
|
|
dc5d922 |
install -m0644 %{_sourcedir}/storage.conf %{buildroot}%{_sysconfdir}/containers/storage.conf
|
|
|
dc5d922 |
install -m0644 %{_sourcedir}/registries.conf %{buildroot}%{_sysconfdir}/containers/registries.conf
|
|
|
c183044 |
install -m0644 %{_sourcedir}/shortnames.conf %{buildroot}%{_sysconfdir}/containers/registries.conf.d/000-shortnames.conf
|
|
|
c924ed9 |
install -m0644 %{_sourcedir}/default-policy.json %{buildroot}%{_sysconfdir}/containers/policy.json
|
|
|
ad1d3a6 |
|
|
|
4538639 |
# install manpages
|
|
|
4538639 |
install -dp %{buildroot}%{_mandir}/man5
|
|
|
dc5d922 |
go-md2man -in %{_sourcedir}/containers-storage.conf.5.md -out %{buildroot}%{_mandir}/man5/containers-storage.conf.5
|
|
|
dc5d922 |
go-md2man -in %{_sourcedir}/containers-registries.conf.5.md -out %{buildroot}%{_mandir}/man5/containers-registries.conf.5
|
|
|
dc5d922 |
go-md2man -in %{_sourcedir}/containers-policy.json.5.md -out %{buildroot}%{_mandir}/man5/containers-policy.json.5
|
|
|
dc5d922 |
go-md2man -in %{_sourcedir}/containers-mounts.conf.5.md -out %{buildroot}%{_mandir}/man5/containers-mounts.conf.5
|
|
|
dc5d922 |
go-md2man -in %{_sourcedir}/containers-signature.5.md -out %{buildroot}%{_mandir}/man5/containers-signature.5
|
|
|
dc5d922 |
go-md2man -in %{_sourcedir}/containers-transports.5.md -out %{buildroot}%{_mandir}/man5/containers-transports.5
|
|
|
dc5d922 |
go-md2man -in %{_sourcedir}/containers-certs.d.5.md -out %{buildroot}%{_mandir}/man5/containers-certs.d.5
|
|
|
dc5d922 |
go-md2man -in %{_sourcedir}/containers-registries.d.5.md -out %{buildroot}%{_mandir}/man5/containers-registries.d.5
|
|
|
dc5d922 |
go-md2man -in %{_sourcedir}/containers.conf.5.md -out %{buildroot}%{_mandir}/man5/containers.conf.5
|
|
|
dc5d922 |
go-md2man -in %{_sourcedir}/containers-auth.json.5.md -out %{buildroot}%{_mandir}/man5/containers-auth.json.5
|
|
|
dc5d922 |
go-md2man -in %{_sourcedir}/containers-registries.conf.d.5.md -out %{buildroot}%{_mandir}/man5/containers-registries.conf.d.5
|
|
|
4538639 |
|
|
|
4538639 |
# install config files for mounts, containers and seccomp
|
|
|
ad1d3a6 |
install -dp %{buildroot}%{_datadir}/containers
|
|
|
dc5d922 |
install -m0644 %{_sourcedir}/mounts.conf %{buildroot}%{_datadir}/containers/mounts.conf
|
|
|
dc5d922 |
install -m0644 %{_sourcedir}/seccomp.json %{buildroot}%{_datadir}/containers/seccomp.json
|
|
|
dc5d922 |
install -m0644 %{_sourcedir}/containers.conf %{buildroot}%{_datadir}/containers/containers.conf
|
|
|
ad1d3a6 |
|
|
|
ad1d3a6 |
# install secrets patch directory
|
|
|
ad1d3a6 |
install -d -p -m 755 %{buildroot}/%{_datadir}/rhel/secrets
|
|
|
ad1d3a6 |
# rhbz#1110876 - update symlinks for subscription management
|
|
|
ad1d3a6 |
ln -s %{_sysconfdir}/pki/entitlement %{buildroot}%{_datadir}/rhel/secrets/etc-pki-entitlement
|
|
|
ad1d3a6 |
ln -s %{_sysconfdir}/rhsm %{buildroot}%{_datadir}/rhel/secrets/rhsm
|
|
|
ad1d3a6 |
ln -s %{_sysconfdir}/yum.repos.d/redhat.repo %{buildroot}%{_datadir}/rhel/secrets/redhat.repo
|
|
|
ad1d3a6 |
|
|
|
ad1d3a6 |
%files
|
|
|
ad1d3a6 |
%dir %{_sysconfdir}/containers
|
|
|
ad1d3a6 |
%dir %{_sysconfdir}/containers/certs.d
|
|
|
ad1d3a6 |
%dir %{_sysconfdir}/containers/oci
|
|
|
ad1d3a6 |
%dir %{_sysconfdir}/containers/oci/hooks.d
|
|
|
d4f828d |
%dir %{_sysconfdir}/containers/registries.conf.d
|
|
|
d4f828d |
%dir %{_sysconfdir}/containers/registries.d
|
|
|
ad1d3a6 |
%config(noreplace) %{_sysconfdir}/containers/policy.json
|
|
|
ad1d3a6 |
%config(noreplace) %{_sysconfdir}/containers/registries.conf
|
|
|
c183044 |
%config(noreplace) %{_sysconfdir}/containers/registries.conf.d/000-shortnames.conf
|
|
|
d4f828d |
%config(noreplace) %{_sysconfdir}/containers/registries.d/default.yaml
|
|
|
d4f828d |
%config(noreplace) %{_sysconfdir}/containers/storage.conf
|
|
|
ad1d3a6 |
%ghost %{_sysconfdir}/containers/containers.conf
|
|
|
ad1d3a6 |
%dir %{_sharedstatedir}/containers/sigstore
|
|
|
ad1d3a6 |
%{_mandir}/man5/*
|
|
|
ad1d3a6 |
%dir %{_datadir}/containers
|
|
|
d4f828d |
%{_datadir}/containers/containers.conf
|
|
|
ad1d3a6 |
%{_datadir}/containers/mounts.conf
|
|
|
ad1d3a6 |
%{_datadir}/containers/seccomp.json
|
|
|
ad1d3a6 |
%dir %{_datadir}/rhel/secrets
|
|
|
ad1d3a6 |
%{_datadir}/rhel/secrets/*
|
|
|
ad1d3a6 |
|
|
|
ad1d3a6 |
%changelog
|
|
|
8a6af2d |
* Mon Apr 19 2021 Lokesh Mandvekar <lsm5@fedoraproject.org> - 4:1-15
|
|
|
8a6af2d |
- bump release for kubic
|
|
|
8a6af2d |
|
|
|
689ed59 |
* Mon Apr 19 2021 Lokesh Mandvekar <lsm5@fedoraproject.org> - 4:1-11
|
|
|
689ed59 |
- use config from latest upstream releases
|
|
|
689ed59 |
- Add oci-runtime and container-selinux dependencies
|
|
|
689ed59 |
|
|
|
177cbd7 |
* Mon Apr 12 2021 Lokesh Mandvekar <lsm5@fedoraproject.org> - 4:1-10
|
|
|
177cbd7 |
- use configs from latest upstream versions
|
|
|
177cbd7 |
|
|
|
d799475 |
* Thu Mar 18 2021 Lokesh Mandvekar <lsm5@fedoraproject.org> - 4:1-9
|
|
|
d799475 |
- also provide skopeo-containers
|
|
|
d799475 |
|
|
|
c183044 |
* Thu Feb 25 2021 Lokesh Mandvekar <lsm5@fedoraproject.org> - 4:1-8
|
|
|
c183044 |
- install shortnames.conf as 000-shortnames.conf
|
|
|
c183044 |
|
|
|
275b928 |
* Wed Feb 24 2021 Lokesh Mandvekar <lsm5@fedoraproject.org> - 4:1-7
|
|
|
275b928 |
- bump to make centos happy
|
|
|
275b928 |
|
|
|
d753273 |
* Wed Feb 17 2021 Lokesh Mandvekar <lsm5@fedoraproject.org> - 4:1-6
|
|
|
d753273 |
- remove metacopy=on for centos7
|
|
|
d753273 |
|
|
|
8d75546 |
* Wed Feb 17 2021 Lokesh Mandvekar <lsm5@fedoraproject.org> - 4:1-5
|
|
|
8d75546 |
- bump for centos obs
|
|
|
8d75546 |
|
|
|
c924ed9 |
* Thu Feb 04 2021 Lokesh Mandvekar <lsm5@fedoraproject.org> - 4:1-4
|
|
|
c924ed9 |
- use correct policy.json file
|
|
|
c924ed9 |
|
|
|
d4f828d |
* Thu Jan 28 2021 Lokesh Mandvekar <lsm5@fedoraproject.org> - 4:1-3
|
|
|
d4f828d |
- Resolves: #1916922 - drop subscription-manager dep
|
|
|
d4f828d |
- use config files from minimum common versions of upstream libraries
|
|
|
d4f828d |
- list files in alphabetical order
|
|
|
d4f828d |
|
|
|
dc5d922 |
* Wed Jan 20 2021 Lokesh Mandvekar <lsm5@fedoraproject.org> - 4:1-2
|
|
|
dc5d922 |
- bump version to random number
|
|
|
dc5d922 |
- no connection of package to github.com/containers/common
|
|
|
dc5d922 |
- add conf files to dist-git repo
|
|
|
dc5d922 |
- bring back update.sh
|
|
|
dc5d922 |
|
|
|
4538639 |
* Wed Jan 13 2021 Lokesh Mandvekar <lsm5@fedoraproject.org> - 4:0.33.0-3
|
|
|
4538639 |
- copy source files into builddir and change them there before installation
|
|
|
4538639 |
|
|
|
ece5759 |
* Tue Jan 12 2021 Lokesh Mandvekar <lsm5@fedoraproject.org> - 4:0.33.0-2
|
|
|
ece5759 |
- move update.sh code to spec file itself
|
|
|
ece5759 |
|
|
|
74debef |
* Tue Jan 12 2021 Lokesh Mandvekar <lsm5@fedoraproject.org> - 4:0.33.0-1
|
|
|
6c71828 |
- update registries.conf and other files
|
|
|
fac88ff |
- source urls in update.sh
|
|
|
6c71828 |
|
|
|
ad1d3a6 |
* Tue Dec 08 2020 Jindrich Novy <jnovy@redhat.com> - 3:1-1
|
|
|
ad1d3a6 |
- initial build
|