From 7f6c070dfd20f4ee6a0797e63979b111ecc45ca4 Mon Sep 17 00:00:00 2001 From: Carlos Mogas da Silva Date: Sat, 7 Dec 2024 23:43:39 +0000 Subject: [PATCH] Run tmpfs on /var/lib/mock (hope this works) --- Dockerfile | 1 + entrypoint.sh | 3 +++ 2 files changed, 4 insertions(+) diff --git a/Dockerfile b/Dockerfile index 3264a1a..50d71c8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -13,5 +13,6 @@ COPY entrypoint.sh / RUN chmod +x /entrypoint.sh COPY site-defaults.cfg /etc/mock/ + ENTRYPOINT ["/entrypoint.sh"] diff --git a/entrypoint.sh b/entrypoint.sh index 7386912..0b6636d 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -10,6 +10,9 @@ SYSTEM=${INPUT_SYSTEM} ARCH=${INPUT_ARCH} NOCHECK=${INPUT_NOCHECK} +rm -rf /var/lib/mock/* +mount -t tmpfs tmpfs /var/lib/mock + RESULT="rpms=[" for SPEC in ${SPECS[@]}; do