Compare commits

...

2 commits

Author SHA1 Message Date
7f6c070dfd Run tmpfs on /var/lib/mock (hope this works)
All checks were successful
Build docker image / build-and-publish (push) Successful in 12m41s
2024-12-07 23:43:39 +00:00
3d304b2237 Add a few tweaks for speed 2024-12-07 22:50:35 +00:00
3 changed files with 10 additions and 1 deletions

View file

@ -6,10 +6,13 @@ LABEL org.opencontainers.image.authors="Carlos Mogas da Silva <r3pek@r3pek.org>"
maintainer="Carlos Mogas da Silva <r3pek@r3pek.org>"
RUN dnf update -y && dnf upgrade -y; \
dnf install -y mock rpmdevtools jq; \
dnf install -y mock rpmdevtools jq nosync; \
dnf clean all && rm -rf /var/cache/dnf/*
COPY entrypoint.sh /
RUN chmod +x /entrypoint.sh
COPY site-defaults.cfg /etc/mock/
ENTRYPOINT ["/entrypoint.sh"]

View file

@ -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

3
site-defaults.cfg Normal file
View file

@ -0,0 +1,3 @@
config_opts['nosync'] = True
config_opts['plugin_conf']['root_cache_opts']['compress_program'] = ""
config_opts['plugin_conf']['root_cache_opts']['extension'] = ""