skopeo-1.2.1-2.el9
- fix rhel-shortnames.conf generation (avoid duplicates and records with invalid URL) - Related: #1883490 Signed-off-by: Jindrich Novy <jnovy@redhat.com>
This commit is contained in:
parent
a08e52fb3b
commit
a4b65b9172
@ -60,6 +60,7 @@
|
|||||||
# the default capabilities defined in the container engine will be added.
|
# the default capabilities defined in the container engine will be added.
|
||||||
#
|
#
|
||||||
default_capabilities = [
|
default_capabilities = [
|
||||||
|
"NET_RAW",
|
||||||
"CHOWN",
|
"CHOWN",
|
||||||
"DAC_OVERRIDE",
|
"DAC_OVERRIDE",
|
||||||
"FOWNER",
|
"FOWNER",
|
||||||
|
2791
rhel-shortnames.conf
Normal file
2791
rhel-shortnames.conf
Normal file
File diff suppressed because it is too large
Load Diff
10
skopeo.spec
10
skopeo.spec
@ -28,7 +28,7 @@ go build -buildmode pie -compiler gc -tags="rpm_crashtraceback libtrust_openssl
|
|||||||
Epoch: 1
|
Epoch: 1
|
||||||
Name: skopeo
|
Name: skopeo
|
||||||
Version: 1.2.1
|
Version: 1.2.1
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
Summary: Inspect container images and repositories on registries
|
Summary: Inspect container images and repositories on registries
|
||||||
License: ASL 2.0
|
License: ASL 2.0
|
||||||
URL: %{git0}
|
URL: %{git0}
|
||||||
@ -61,6 +61,7 @@ Source15: https://raw.githubusercontent.com/containers/image/%{image_branch}/doc
|
|||||||
Source16: https://raw.githubusercontent.com/containers/image/%{image_branch}/docs/containers-registries.conf.d.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
|
Source17: https://raw.githubusercontent.com/containers/shortnames/%{shortnames_branch}/shortnames.conf
|
||||||
Source18: https://raw.githubusercontent.com/containers/image/%{image_branch}/docs/containers-registries.conf.5.md
|
Source18: https://raw.githubusercontent.com/containers/image/%{image_branch}/docs/containers-registries.conf.5.md
|
||||||
|
Source19: rhel-shortnames.conf
|
||||||
BuildRequires: git
|
BuildRequires: git
|
||||||
BuildRequires: golang >= 1.12.12-4
|
BuildRequires: golang >= 1.12.12-4
|
||||||
BuildRequires: go-md2man
|
BuildRequires: go-md2man
|
||||||
@ -143,6 +144,7 @@ install -dp %{buildroot}%{_sysconfdir}/containers/{certs.d,oci/hooks.d,registrie
|
|||||||
install -m0644 %{SOURCE1} %{buildroot}%{_sysconfdir}/containers/storage.conf
|
install -m0644 %{SOURCE1} %{buildroot}%{_sysconfdir}/containers/storage.conf
|
||||||
install -m0644 %{SOURCE5} %{buildroot}%{_sysconfdir}/containers/registries.conf
|
install -m0644 %{SOURCE5} %{buildroot}%{_sysconfdir}/containers/registries.conf
|
||||||
install -m0644 %{SOURCE17} %{buildroot}%{_sysconfdir}/containers/registries.conf.d/shortnames.conf
|
install -m0644 %{SOURCE17} %{buildroot}%{_sysconfdir}/containers/registries.conf.d/shortnames.conf
|
||||||
|
install -m0644 %{SOURCE19} %{buildroot}%{_sysconfdir}/containers/registries.conf.d/rhel-shortnames.conf
|
||||||
install -dp %{buildroot}%{_mandir}/man5
|
install -dp %{buildroot}%{_mandir}/man5
|
||||||
go-md2man -in %{SOURCE2} -out %{buildroot}%{_mandir}/man5/containers-storage.conf.5
|
go-md2man -in %{SOURCE2} -out %{buildroot}%{_mandir}/man5/containers-storage.conf.5
|
||||||
go-md2man -in %{SOURCE4} -out %{buildroot}%{_mandir}/man5/containers-registries.conf.5
|
go-md2man -in %{SOURCE4} -out %{buildroot}%{_mandir}/man5/containers-registries.conf.5
|
||||||
@ -208,6 +210,7 @@ export GOPATH=%{buildroot}/%{gopath}:$(pwd)/vendor:%{gopath}
|
|||||||
%config(noreplace) %{_sysconfdir}/containers/storage.conf
|
%config(noreplace) %{_sysconfdir}/containers/storage.conf
|
||||||
%config(noreplace) %{_sysconfdir}/containers/registries.conf
|
%config(noreplace) %{_sysconfdir}/containers/registries.conf
|
||||||
%config(noreplace) %{_sysconfdir}/containers/registries.conf.d/shortnames.conf
|
%config(noreplace) %{_sysconfdir}/containers/registries.conf.d/shortnames.conf
|
||||||
|
%config(noreplace) %{_sysconfdir}/containers/registries.conf.d/rhel-shortnames.conf
|
||||||
%config(noreplace) %{_sysconfdir}/containers/registries.d/*.yaml
|
%config(noreplace) %{_sysconfdir}/containers/registries.d/*.yaml
|
||||||
%ghost %{_sysconfdir}/containers/containers.conf
|
%ghost %{_sysconfdir}/containers/containers.conf
|
||||||
%dir %{_sharedstatedir}/containers/sigstore
|
%dir %{_sharedstatedir}/containers/sigstore
|
||||||
@ -233,6 +236,11 @@ export GOPATH=%{buildroot}/%{gopath}:$(pwd)/vendor:%{gopath}
|
|||||||
%{_datadir}/%{name}/test
|
%{_datadir}/%{name}/test
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Jan 19 2021 Jindrich Novy <jnovy@redhat.com> - 1:1.2.1-2
|
||||||
|
- fix rhel-shortnames.conf generation (avoid duplicates and records
|
||||||
|
with invalid URL)
|
||||||
|
- Related: #1883490
|
||||||
|
|
||||||
* Thu Jan 14 2021 Jindrich Novy <jnovy@redhat.com> - 1:1.2.1-1
|
* Thu Jan 14 2021 Jindrich Novy <jnovy@redhat.com> - 1:1.2.1-1
|
||||||
- ship preconfigured /etc/containers/registries.d/ files with containers-common
|
- ship preconfigured /etc/containers/registries.d/ files with containers-common
|
||||||
|
|
||||||
|
@ -7,3 +7,8 @@ sed -i '/\"socketcall\",/i \
|
|||||||
"socket",' seccomp.json
|
"socket",' seccomp.json
|
||||||
sed -i 's/^#.*unqualified-search-registries.*=.*/unqualified-search-registries = ["registry.fedoraproject.org", "registry.access.redhat.com", "registry.centos.org", "docker.io"]/g' registries.conf
|
sed -i 's/^#.*unqualified-search-registries.*=.*/unqualified-search-registries = ["registry.fedoraproject.org", "registry.access.redhat.com", "registry.centos.org", "docker.io"]/g' registries.conf
|
||||||
sed -i 's,#.*events_logger.*=.*"journald",events_logger = "file",' containers.conf
|
sed -i 's,#.*events_logger.*=.*"journald",events_logger = "file",' containers.conf
|
||||||
|
if ! grep \"NET_RAW\" containers.conf
|
||||||
|
then
|
||||||
|
sed -i '/^default_capabilities/a \
|
||||||
|
"NET_RAW",' containers.conf
|
||||||
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user