yams/packaging/systemd/arch-lane.Dockerfile
trvon e58aef6cf5
fix(ci): isolate arch package builds
- stop arch lanes from reusing build/release
   - fix local arch lane quoting
   - align release arch lane with isolated build dirs
2026-07-01 10:02:54 -04:00

32 lines
1.1 KiB
Docker

# Minimal Arch Linux systemd-in-Docker substrate for package validation.
#
# Used by scripts/local-ci/package-validate.sh to boot an Arch container under
# /usr/lib/systemd/systemd, install the built .pkg.tar.zst package, and
# smoke-test the yams-daemon service end-to-end.
#
# Pattern: mirrors packaging/systemd/debian-lane.Dockerfile and
# packaging/systemd/fedora-lane.Dockerfile.
FROM archlinux/archlinux:latest
ENV container=docker
RUN set -eux; \
grep -q '^DisableSandbox$' /etc/pacman.conf || sed -i '/^\[options\]/a DisableSandbox' /etc/pacman.conf; \
grep -q '^[[:space:]]*DownloadUser' /etc/pacman.conf && sed -i 's/^[[:space:]]*DownloadUser/# DownloadUser/' /etc/pacman.conf || true; \
pacman-key --init 2>/dev/null || true; \
pacman-key --populate archlinux 2>/dev/null || true; \
pacman -Syu --noconfirm --needed; \
pacman -S --noconfirm --needed \
systemd \
procps-ng \
iproute2 \
shadow \
findutils \
ca-certificates; \
yes | pacman -Scc 2>/dev/null || true
RUN useradd -m -s /bin/bash tester
STOPSIGNAL SIGRTMIN+3
CMD ["/usr/lib/systemd/systemd"]