feat: allow configuring a temp dir for Ambienty

This commit is contained in:
Lars Wirzenius
2026-07-02 09:50:42 +03:00
parent c8b67826fb
commit 1522ed030c
3 changed files with 6 additions and 1 deletions
@@ -4,6 +4,10 @@ radicle_ci_ambient_cpus: 1
# Amount of memory an Ambient virtual machine should have. # Amount of memory an Ambient virtual machine should have.
radicle_ci_ambient_memory: 1G radicle_ci_ambient_memory: 1G
# Temporary directory for Ambient. This will get copies of virtual
# machine images, so it may grow big.
radicle_ci_ambient_tmp: /tmp
# Description of CI node on top of CI broker report page. This can contain # Description of CI node on top of CI broker report page. This can contain
# HTML tags. # HTML tags.
radicle_ci_description: | radicle_ci_description: |
@@ -7,4 +7,4 @@ qemu:
cpus: {{ radicle_ci_ambient_cpus }} cpus: {{ radicle_ci_ambient_cpus }}
memory: {{ radicle_ci_ambient_memory }} memory: {{ radicle_ci_ambient_memory }}
lint: false lint: false
tmpdir: "{{ radicle_ci_tmp }}"
@@ -6,6 +6,7 @@ Description=Radicle CI broker
[Service] [Service]
Type=simple Type=simple
Environment=RAD_HOME=/home/ci/.radicle Environment=RAD_HOME=/home/ci/.radicle
Environment=TMPDIR={{ radicle_ci_tmp }}
ExecStart=/bin/cib --log-level info --config /home/ci/ci.yaml process-events ExecStart=/bin/cib --log-level info --config /home/ci/ci.yaml process-events
KillMode=control-group KillMode=control-group
Restart=always Restart=always