Automate runner setup on a new machine #23

Open
opened 2026-07-29 10:44:30 +02:00 by labrec_b · 1 comment
Member

Setting up a runner: https://linux.psi.ch/documentation/services/gitea/gitea-runner/#custom-runner
Current setup: https://gitea.psi.ch/sls/hla_framework_bd/src/branch/main/docs/developer/cicd_runner.md

Use containers?

Example tasks that a runner needs to execute:

  • Clone repo
    • Read from a .yml file
  • Copy files to sls/bd/hla/...
  • Rsync files from repo to /sls/bd/hla/...
  • Run ioc install
  • Run:
   sudo shellbox status
   sudo shellbox reload
   sudo shellbox status
   sudo shellbox start ...
  • Start/restart systemd services:
  export XDG_RUNTIME_DIR=/run/user/$(id -u)
  systemctl --user daemon-reload
  systemctl --user enable "{{ service_unit_name }}"
  systemctl --user restart "{{ service_unit_name }}"

DOD

  • Documentation added to the Linux docs
Setting up a runner: https://linux.psi.ch/documentation/services/gitea/gitea-runner/#custom-runner Current setup: https://gitea.psi.ch/sls/hla_framework_bd/src/branch/main/docs/developer/cicd_runner.md **Use containers?** Example tasks that a runner needs to execute: - Clone repo - Read from a `.yml` file - Copy files to `sls/bd/hla/...` - Rsync files from repo to `/sls/bd/hla/...` - Run `ioc install` - Run: ``` sudo shellbox status sudo shellbox reload sudo shellbox status sudo shellbox start ... ``` - Start/restart systemd services: ``` export XDG_RUNTIME_DIR=/run/user/$(id -u) systemctl --user daemon-reload systemctl --user enable "{{ service_unit_name }}" systemctl --user restart "{{ service_unit_name }}" ``` **DOD** - [ ] Documentation added to the Linux docs
labrec_b added this to the Setup CI/CD runners milestone 2026-07-29 10:44:30 +02:00
labrec_b added this to the Benjamin Labrecque project 2026-07-29 13:37:24 +02:00
armborst_f moved this to Blocked in Benjamin Labrecque on 2026-07-29 14:11:46 +02:00
armborst_f moved this to Backlog in Benjamin Labrecque on 2026-07-29 14:11:49 +02:00
armborst_f moved this to Lower Priority in Benjamin Labrecque on 2026-07-29 14:12:32 +02:00
armborst_f moved this to Blocked in Benjamin Labrecque on 2026-07-29 14:12:44 +02:00
Owner

Clearly document the procedure for setting up the runner on each host.It is a controls task to automate this.

Some two cents:

  • without Ansible less critical
  • container could be a work around -> talk to Basil
  • shellbox and ioc install only obvious real dependency
    • for these the responsibility lies even more clearly with controls
    • for these proper forwarding network/mount config into container might be difficult
Clearly document the procedure for setting up the runner on each host.It is a controls task to automate this. Some two cents: - without Ansible less critical - container could be a work around -> talk to Basil - shellbox and ioc install only obvious real dependency - for these the responsibility lies even more clearly with controls - for these proper forwarding network/mount config into container might be difficult
Sign in to join this conversation.
No labels
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sls/hla_framework_bd#23