|
|
|
@ -12,7 +12,7 @@
|
|
|
|
|
Epoch: 2
|
|
|
|
|
Name: containers-common
|
|
|
|
|
Version: 1
|
|
|
|
|
Release: 91%{?dist}
|
|
|
|
|
Release: 91%{?dist}.inferit
|
|
|
|
|
Summary: Common configuration and documentation for containers
|
|
|
|
|
License: ASL 2.0
|
|
|
|
|
ExclusiveArch: %{go_arches}
|
|
|
|
@ -49,11 +49,6 @@ Source14: https://raw.githubusercontent.com/containers/common/%{common_branch}/d
|
|
|
|
|
Source15: https://raw.githubusercontent.com/containers/image/%{image_branch}/docs/containers-auth.json.5.md
|
|
|
|
|
Source16: https://raw.githubusercontent.com/containers/image/%{image_branch}/docs/containers-registries.conf.d.5.md
|
|
|
|
|
Source17: https://raw.githubusercontent.com/containers/shortnames/%{shortnames_branch}/shortnames.conf
|
|
|
|
|
Source19: 001-rhel-shortnames-pyxis.conf
|
|
|
|
|
Source20: 002-rhel-shortnames-overrides.conf
|
|
|
|
|
Source21: RPM-GPG-KEY-redhat-release
|
|
|
|
|
Source22: registry.access.redhat.com.yaml
|
|
|
|
|
Source23: registry.redhat.io.yaml
|
|
|
|
|
#Source24: https://raw.githubusercontent.com/containers/skopeo/%%{skopeo_branch}/default-policy.json
|
|
|
|
|
Source24: default-policy.json
|
|
|
|
|
Source25: https://raw.githubusercontent.com/containers/skopeo/%{skopeo_branch}/default.yaml
|
|
|
|
@ -85,18 +80,12 @@ install -dp %{buildroot}%{_datadir}/containers/systemd
|
|
|
|
|
install -m0644 %{SOURCE1} %{buildroot}%{_sysconfdir}/containers/storage.conf
|
|
|
|
|
install -m0644 %{SOURCE5} %{buildroot}%{_sysconfdir}/containers/registries.conf
|
|
|
|
|
install -m0644 %{SOURCE17} %{buildroot}%{_sysconfdir}/containers/registries.conf.d/000-shortnames.conf
|
|
|
|
|
install -m0644 %{SOURCE19} %{buildroot}%{_sysconfdir}/containers/registries.conf.d/001-rhel-shortnames.conf
|
|
|
|
|
install -m0644 %{SOURCE20} %{buildroot}%{_sysconfdir}/containers/registries.conf.d/002-rhel-shortnames-overrides.conf
|
|
|
|
|
|
|
|
|
|
# for signature verification
|
|
|
|
|
%if !0%{?rhel} || 0%{?centos}
|
|
|
|
|
install -dp %{buildroot}%{_sysconfdir}/pki/rpm-gpg
|
|
|
|
|
install -m0644 %{SOURCE21} %{buildroot}%{_sysconfdir}/pki/rpm-gpg
|
|
|
|
|
install -m0644 %{SOURCE28} %{buildroot}%{_sysconfdir}/pki/rpm-gpg
|
|
|
|
|
%endif
|
|
|
|
|
install -dp %{buildroot}%{_sysconfdir}/containers/registries.d
|
|
|
|
|
install -m0644 %{SOURCE22} %{buildroot}%{_sysconfdir}/containers/registries.d
|
|
|
|
|
install -m0644 %{SOURCE23} %{buildroot}%{_sysconfdir}/containers/registries.d
|
|
|
|
|
install -m0644 %{SOURCE24} %{buildroot}%{_sysconfdir}/containers/policy.json
|
|
|
|
|
install -dp %{buildroot}%{_sharedstatedir}/containers/sigstore
|
|
|
|
|
install -m0644 %{SOURCE25} %{buildroot}%{_sysconfdir}/containers/registries.d/default.yaml
|
|
|
|
@ -129,19 +118,6 @@ ln -s %{_sysconfdir}/pki/entitlement %{buildroot}%{_datadir}/rhel/secrets/etc-pk
|
|
|
|
|
ln -s %{_sysconfdir}/rhsm %{buildroot}%{_datadir}/rhel/secrets/rhsm
|
|
|
|
|
ln -s %{_sysconfdir}/yum.repos.d/redhat.repo %{buildroot}%{_datadir}/rhel/secrets/redhat.repo
|
|
|
|
|
|
|
|
|
|
# ship preconfigured /etc/containers/registries.d/ files with containers-common - #1903813
|
|
|
|
|
cat <<EOF > %{buildroot}%{_sysconfdir}/containers/registries.d/registry.access.redhat.com.yaml
|
|
|
|
|
docker:
|
|
|
|
|
registry.access.redhat.com:
|
|
|
|
|
sigstore: https://access.redhat.com/webassets/docker/content/sigstore
|
|
|
|
|
EOF
|
|
|
|
|
|
|
|
|
|
cat <<EOF > %{buildroot}%{_sysconfdir}/containers/registries.d/registry.redhat.io.yaml
|
|
|
|
|
docker:
|
|
|
|
|
registry.redhat.io:
|
|
|
|
|
sigstore: https://registry.redhat.io/containers/sigstore
|
|
|
|
|
EOF
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%dir %{_sysconfdir}/containers
|
|
|
|
|
%dir %{_sysconfdir}/containers/certs.d
|
|
|
|
@ -149,19 +125,11 @@ EOF
|
|
|
|
|
%dir %{_sysconfdir}/containers/oci
|
|
|
|
|
%dir %{_sysconfdir}/containers/oci/hooks.d
|
|
|
|
|
%dir %{_sysconfdir}/containers/registries.conf.d
|
|
|
|
|
%dir %{_sysconfdir}/containers/systemd
|
|
|
|
|
%dir %{_datadir}/containers/systemd
|
|
|
|
|
%if !0%{?rhel} || 0%{?centos}
|
|
|
|
|
%{_sysconfdir}/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
|
|
|
|
|
%{_sysconfdir}/pki/rpm-gpg/RPM-GPG-KEY-redhat-beta
|
|
|
|
|
%endif
|
|
|
|
|
%config(noreplace) %{_sysconfdir}/containers/policy.json
|
|
|
|
|
%config(noreplace) %{_sysconfdir}/containers/storage.conf
|
|
|
|
|
%config(noreplace) %{_sysconfdir}/containers/registries.conf
|
|
|
|
|
%config(noreplace) %{_sysconfdir}/containers/registries.conf.d/*.conf
|
|
|
|
|
%config(noreplace) %{_sysconfdir}/containers/registries.d/default.yaml
|
|
|
|
|
%config(noreplace) %{_sysconfdir}/containers/registries.d/registry.redhat.io.yaml
|
|
|
|
|
%config(noreplace) %{_sysconfdir}/containers/registries.d/registry.access.redhat.com.yaml
|
|
|
|
|
%ghost %{_sysconfdir}/containers/containers.conf
|
|
|
|
|
%dir %{_sharedstatedir}/containers/sigstore
|
|
|
|
|
%{_mandir}/man5/*
|
|
|
|
@ -185,6 +153,9 @@ EOF
|
|
|
|
|
- regenerate shortnames from Pyxis and update vendored components
|
|
|
|
|
- Related: Jira:RHEL-2112
|
|
|
|
|
|
|
|
|
|
* Fri Apr 09 2024 Sergey Cherevko <s.cherevko@msvsphere-os.ru> - 2:1-61.inferit
|
|
|
|
|
- Rebuilt for MSVSphere 9.4-beta
|
|
|
|
|
|
|
|
|
|
* Thu Feb 08 2024 Jindrich Novy <jnovy@redhat.com> - 2:1-61
|
|
|
|
|
- update vendored components
|
|
|
|
|
- Related: Jira:RHEL-2112
|
|
|
|
@ -225,6 +196,9 @@ EOF
|
|
|
|
|
- update vendored components
|
|
|
|
|
- Related: #2176063
|
|
|
|
|
|
|
|
|
|
* Fri Apr 14 2023 MSVSphere Packaging Team <packager@msvsphere.ru> - 2:1-51
|
|
|
|
|
- Rebuilt for MSVSphere 9.2 beta
|
|
|
|
|
|
|
|
|
|
* Fri Mar 24 2023 Jindrich Novy <jnovy@redhat.com> - 2:1-51
|
|
|
|
|
- regenerate shortnames, vendored components + fix pyxis script
|
|
|
|
|
- Related: #2176063
|
|
|
|
|