[packages/podman] add basic registries.conf file with docker.io

atler atler at pld-linux.org
Thu May 13 17:58:17 CEST 2021


commit 00346cb1b2b2b8dfcaed1401694de1e8c034da8a
Author: Jan Palus <atler at pld-linux.org>
Date:   Thu May 13 17:56:18 2021 +0200

    add basic registries.conf file with docker.io

 podman.spec     | 4 +++-
 registries.conf | 1 +
 2 files changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/podman.spec b/podman.spec
index 4dcddbd..657c414 100644
--- a/podman.spec
+++ b/podman.spec
@@ -8,6 +8,7 @@ Group:		Applications/System
 Source0:	https://github.com/containers/podman/archive/v%{version}/%{name}-%{version}.tar.gz
 # Source0-md5:	763d21ca1d9d3a3b7a49b226843e609e
 Source1:	policy.json
+Source2:	registries.conf
 URL:		https://github.com/containers/podman
 BuildRequires:	go-md2man
 BuildRequires:	golang
@@ -64,7 +65,7 @@ install -d $RPM_BUILD_ROOT%{_sysconfdir}/containers
 	USERSYSTEMDDIR="%{systemduserunitdir}" \
 	PYTHON="%{__python3}"
 
-cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/containers
+cp -p %{SOURCE1} %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/containers
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -75,6 +76,7 @@ rm -rf $RPM_BUILD_ROOT
 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/cni/net.d/87-podman-bridge.conflist
 %dir %{_sysconfdir}/containers
 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/containers/policy.json
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/containers/registries.conf
 %attr(755,root,root) %{_bindir}/podman
 %attr(755,root,root) %{_bindir}/podman-remote
 %{systemdunitdir}/podman.service
diff --git a/registries.conf b/registries.conf
new file mode 100644
index 0000000..e72b947
--- /dev/null
+++ b/registries.conf
@@ -0,0 +1 @@
+unqualified-search-registries = ['docker.io']
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/podman.git/commitdiff/00346cb1b2b2b8dfcaed1401694de1e8c034da8a



More information about the pld-cvs-commit mailing list