no caching in test containers

This commit is contained in:
2026-09-05 21:55:29 +02:00
parent 055d8a9620
commit 0e2d4030bd
7 changed files with 67 additions and 36 deletions
+5 -1
View File
@@ -32,7 +32,11 @@ RUN pacman -Syu --noconfirm \
sudo \
&& pacman -Scc --noconfirm
RUN useradd -m -u "$UID_ARG" -s /bin/bash -G wheel "$USERNAME"
# Remove the /etc/skel profile files so `useradd -m` starts the test user with
# a truly empty HOME: the term package owns .bashrc/.bash_profile, and stow
# must be able to take ownership of them without conflicting with copied files.
RUN rm -f /etc/skel/.bashrc /etc/skel/.bash_profile /etc/skel/.bash_logout \
&& useradd -m -u "$UID_ARG" -s /bin/bash -G wheel "$USERNAME"
# Passwordless sudo so scripts that call `sudo pacman`, `sudo systemctl`, etc.
# do not hang on a password prompt inside the container.