Skip to content

Commit

Permalink
Move mock config to file
Browse files Browse the repository at this point in the history
  • Loading branch information
sharpenedblade committed Sep 30, 2023
1 parent 8f09b15 commit 9ccbf70
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 4 deletions.
20 changes: 16 additions & 4 deletions fedora-dev/Containerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,18 @@
FROM fedora:38
SHELL ["/usr/bin/env", "bash", "-c"]
RUN dnf install -y koji git rpmdevtools rpm-sign mock ccache zstd createrepo rpmlint ShellCheck && \
dnf clean all && \
echo -e "config_opts['plugin_conf']['package_state_enable'] = False\nconfig_opts['macros']['_smp_mflags'] = '-j8'\nconfig_opts['plugin_conf']['ccache_opts']['compress'] = True\nconfig_opts['plugin_conf']['root_cache_opts']['compress_program'] = 'zstd'\nconfig_opts['plugin_conf']['root_cache_opts']['extension'] = '.zst'\nconfig_opts['plugin_conf']['hw_info_enable'] = False\n" > /etc/mock/site-defaults.cfg
SHELL ["/usr/bin/bash", "-c"]

RUN dnf install -y \
koji \
git \
rpmdevtools \
rpm-sign \
mock \
ccache \
zstd createrepo \
rpmlint \
ShellCheck \
&& dnf clean all

COPY mock-defaults.cfg /etc/mock/site-defaults.cfg

WORKDIR /repo
6 changes: 6 additions & 0 deletions fedora-dev/mock-config.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
config_opts['plugin_conf']['package_state_enable'] = False
config_opts['macros']['_smp_mflags'] = '-j8'
config_opts['plugin_conf']['ccache_opts']['compress'] = True
config_opts['plugin_conf']['root_cache_opts']['compress_program'] = 'zstd'
config_opts['plugin_conf']['root_cache_opts']['extension'] = '.zst'
config_opts['plugin_conf']['hw_info_enable'] = False

0 comments on commit 9ccbf70

Please sign in to comment.