Compare commits
3 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| 4b3900f0c0 | |||
| 985c0b2d7c | |||
| b5f6fed1a7 |
@@ -1,6 +1,4 @@
|
||||
<servicedata>
|
||||
<service name="tar_scm">
|
||||
<param name="url">https://github.com/distribution/distribution.git</param>
|
||||
<param name="changesrevision">b5ca020cfbe998e5af3457fda087444cf5116496</param></service><service name="tar_scm">
|
||||
<param name="url">https://github.com/docker/distribution.git</param>
|
||||
<param name="changesrevision">9ed95e7365224025ee89365e12cf128e1f1bf965</param></service></servicedata>
|
||||
<param name="changesrevision">b5ca020cfbe998e5af3457fda087444cf5116496</param></service></servicedata>
|
||||
|
||||
1
distribution-registry.tmpfiles
Normal file
1
distribution-registry.tmpfiles
Normal file
@@ -0,0 +1 @@
|
||||
d /var/lib/docker-registry 0755 registry registry -
|
||||
@@ -1,3 +1,10 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Jan 13 16:39:31 UTC 2026 - Valentin Lefebvre <valentin.lefebvre@suse.com>
|
||||
|
||||
- Move config files in systemd tmpfiles dir for immutable mode
|
||||
(jsc#PED-14747)
|
||||
* Add distribution-registry.tmpfiles
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Jun 30 13:34:28 UTC 2025 - Dirk Müller <dmueller@suse.com>
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package distribution
|
||||
#
|
||||
# Copyright (c) 2025 SUSE LLC
|
||||
# Copyright (c) 2026 SUSE LLC and contributors
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -27,6 +27,7 @@ URL: https://github.com/distribution/distribution
|
||||
Source0: distribution-%{version}.tar.zst
|
||||
Source1: registry-configuration.yml
|
||||
Source2: registry.service
|
||||
Source3: %{name}-registry.tmpfiles
|
||||
Source4: README-registry.SUSE
|
||||
Source10: system-user-registry.conf
|
||||
BuildRequires: golang-packaging
|
||||
@@ -94,11 +95,18 @@ install -Dd -m 0755 %{buildroot}%{_sbindir}
|
||||
install -D -m 0644 %{SOURCE2} %{buildroot}%{_unitdir}/registry.service
|
||||
ln -sv %{_sbindir}/service %{buildroot}%{_sbindir}/rcregistry
|
||||
|
||||
#
|
||||
# systemd tmpfiles for transactional-update
|
||||
#
|
||||
mkdir -p %{buildroot}%{_tmpfilesdir}
|
||||
install -m 0644 %{SOURCE3} %{buildroot}%{_tmpfilesdir}/%{name}-registry.conf
|
||||
|
||||
%pre registry -f registry.pre
|
||||
%service_add_pre registry.service
|
||||
|
||||
%post registry
|
||||
%service_add_post registry.service
|
||||
%tmpfiles_create %{name}-registry.conf
|
||||
|
||||
%preun registry
|
||||
%service_del_preun registry.service
|
||||
@@ -117,6 +125,6 @@ ln -sv %{_sbindir}/service %{buildroot}%{_sbindir}/rcregistry
|
||||
%{_sysusersdir}/system-user-registry.conf
|
||||
%config %{_sysconfdir}/registry
|
||||
%config(noreplace) %{_sysconfdir}/registry/config.yml
|
||||
%attr(-,registry,registry) %{_localstatedir}/lib/docker-registry
|
||||
%{_tmpfilesdir}/%{name}-registry.conf
|
||||
|
||||
%changelog
|
||||
|
||||
Reference in New Issue
Block a user