save progress
This commit is contained in:
71
devops/docker/repro-builders/rhel/mock/stellaops-repro.cfg
Normal file
71
devops/docker/repro-builders/rhel/mock/stellaops-repro.cfg
Normal file
@@ -0,0 +1,71 @@
|
||||
# StellaOps Reproducible Build Mock Configuration
|
||||
# Sprint: SPRINT_1227_0002_0001 (Reproducible Builders)
|
||||
#
|
||||
# Mock configuration optimized for reproducible RHEL/AlmaLinux builds
|
||||
|
||||
config_opts['root'] = 'stellaops-repro'
|
||||
config_opts['target_arch'] = 'x86_64'
|
||||
config_opts['legal_host_arches'] = ('x86_64',)
|
||||
config_opts['chroot_setup_cmd'] = 'install @buildsys-build'
|
||||
config_opts['dist'] = 'el9'
|
||||
config_opts['releasever'] = '9'
|
||||
|
||||
# Reproducibility settings
|
||||
config_opts['use_host_resolv'] = False
|
||||
config_opts['rpmbuild_networking'] = False
|
||||
config_opts['cleanup_on_success'] = True
|
||||
config_opts['cleanup_on_failure'] = True
|
||||
|
||||
# Deterministic build settings
|
||||
config_opts['macros']['SOURCE_DATE_EPOCH'] = '%{getenv:SOURCE_DATE_EPOCH}'
|
||||
config_opts['macros']['_buildhost'] = 'stellaops.build'
|
||||
config_opts['macros']['debug_package'] = '%{nil}'
|
||||
config_opts['macros']['_default_patch_fuzz'] = '0'
|
||||
|
||||
# Compiler flags for reproducibility
|
||||
config_opts['macros']['optflags'] = '-O2 -g -fno-record-gcc-switches -fdebug-prefix-map=%{_builddir}=/buildroot'
|
||||
|
||||
# Environment normalization
|
||||
config_opts['environment']['TZ'] = 'UTC'
|
||||
config_opts['environment']['LC_ALL'] = 'C.UTF-8'
|
||||
config_opts['environment']['LANG'] = 'C.UTF-8'
|
||||
|
||||
# Use AlmaLinux as RHEL-compatible base
|
||||
config_opts['dnf.conf'] = """
|
||||
[main]
|
||||
keepcache=1
|
||||
debuglevel=2
|
||||
reposdir=/dev/null
|
||||
logfile=/var/log/yum.log
|
||||
retries=20
|
||||
obsoletes=1
|
||||
gpgcheck=0
|
||||
assumeyes=1
|
||||
syslog_ident=mock
|
||||
syslog_device=
|
||||
metadata_expire=0
|
||||
mdpolicy=group:primary
|
||||
best=1
|
||||
install_weak_deps=0
|
||||
protected_packages=
|
||||
module_platform_id=platform:el9
|
||||
user_agent={{ user_agent }}
|
||||
|
||||
[baseos]
|
||||
name=AlmaLinux $releasever - BaseOS
|
||||
mirrorlist=https://mirrors.almalinux.org/mirrorlist/$releasever/baseos
|
||||
enabled=1
|
||||
gpgcheck=0
|
||||
|
||||
[appstream]
|
||||
name=AlmaLinux $releasever - AppStream
|
||||
mirrorlist=https://mirrors.almalinux.org/mirrorlist/$releasever/appstream
|
||||
enabled=1
|
||||
gpgcheck=0
|
||||
|
||||
[crb]
|
||||
name=AlmaLinux $releasever - CRB
|
||||
mirrorlist=https://mirrors.almalinux.org/mirrorlist/$releasever/crb
|
||||
enabled=1
|
||||
gpgcheck=0
|
||||
"""
|
||||
Reference in New Issue
Block a user