v0.3.0-5: fix UID/GID to 125, wait for user manager and podman socket
- Fix gitea-runner UID/GID to 125 for stable user@125.service unit name - Use BindsTo= for gitea-runner-podman.service dependency - Wait for user@125.service and Podman socket before runner starts - Add ExecStartPre socket wait loop (60s timeout) - Ship commented-out limits.conf drop-in for resource caps
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
Name: gitea-act_runner
|
||||
Version: 0.3.0
|
||||
Release: 4%{?dist}
|
||||
Release: 5%{?dist}
|
||||
Summary: Gitea act runner service.
|
||||
License: MIT
|
||||
Group: System Environment/Base
|
||||
@@ -14,6 +14,7 @@ Source12: gitea-act-runner-setup
|
||||
Source13: gitea-act-runner.sysusers
|
||||
Source14: gitea-runner-podman.service
|
||||
Source15: storage.conf
|
||||
Source16: limits.conf
|
||||
|
||||
BuildRequires: systemd-rpm-macros
|
||||
Requires: podman
|
||||
@@ -54,6 +55,10 @@ install -d -m 750 %{buildroot}%{_sharedstatedir}/gitea/runners
|
||||
install -d -m 750 %{buildroot}%{_sharedstatedir}/gitea/runners/.config/containers
|
||||
install -m 644 %{SOURCE15} %{buildroot}%{_sharedstatedir}/gitea/runners/.config/containers/storage.conf
|
||||
|
||||
# Resource limits drop-in (shipped commented out as a template)
|
||||
install -d -m 755 %{buildroot}%{_sysconfdir}/systemd/system/gitea-act_runner@.service.d
|
||||
install -m 644 %{SOURCE16} %{buildroot}%{_sysconfdir}/systemd/system/gitea-act_runner@.service.d/limits.conf
|
||||
|
||||
install -d -m 755 %{buildroot}/var/cache/act-runner/pnpm-store
|
||||
|
||||
%pre
|
||||
@@ -94,6 +99,9 @@ fi
|
||||
%{_unitdir}/gitea-runner-podman.service
|
||||
%{_sysusersdir}/gitea-act-runner.conf
|
||||
|
||||
%dir %{_sysconfdir}/systemd/system/gitea-act_runner@.service.d
|
||||
%config(noreplace) %{_sysconfdir}/systemd/system/gitea-act_runner@.service.d/limits.conf
|
||||
|
||||
%defattr(-,gitea-runner,gitea-runner,750)
|
||||
%dir %{_sharedstatedir}/gitea/runners
|
||||
%dir %{_sysconfdir}/gitea
|
||||
@@ -108,6 +116,12 @@ fi
|
||||
%dir /var/cache/act-runner/pnpm-store
|
||||
|
||||
%changelog
|
||||
* Wed Apr 08 2026 Zoran Pericic <zpericic@netst.org> - 0.3.0-5
|
||||
- Fix gitea-runner UID/GID to 125 for stable user@125.service unit name
|
||||
- Use BindsTo= for gitea-runner-podman.service dependency
|
||||
- Wait for user@125.service and Podman socket before runner starts
|
||||
- Ship commented-out limits.conf drop-in for resource caps
|
||||
|
||||
* Mon Apr 06 2026 Zoran Pericic <zpericic@netst.org> - 0.3.0-4
|
||||
- Add Podman btrfs storage.conf for gitea-runner user
|
||||
- Add dependency on gitea-runner-podman.service
|
||||
|
||||
Reference in New Issue
Block a user