Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update mock configs #544

Merged
merged 1 commit into from
Sep 28, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 0 additions & 41 deletions mock/el7-nonscl.cfg

This file was deleted.

44 changes: 0 additions & 44 deletions mock/el7-scl.cfg

This file was deleted.

15 changes: 15 additions & 0 deletions mock/el7.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
include('centos-7-x86_64.cfg')

config_opts['root'] = 'pulpcore-el7-x86_64'
config_opts['chroot_setup_cmd'] += ' scl-utils-build rh-python38-scldevel rh-python38-python-rpm-macros tfm-pulpcore-build'
config_opts['chroot_additional_packages'] = 'vim'

config_opts['yum.conf'] = """
[sclo-rh]
name=sclo-rh
baseurl=http://mirror.centos.org/centos/7/sclo/$basearch/rh/

[pulpcore]
name=pulpcore
baseurl=https://yum.theforeman.org/pulpcore/3.18/el7/$basearch/
"""
71 changes: 9 additions & 62 deletions mock/el8.cfg
Original file line number Diff line number Diff line change
@@ -1,67 +1,14 @@
config_opts['root'] = 'pulpcore-el8-x86_64'
config_opts['target_arch'] = 'x86_64'
config_opts['legal_host_arches'] = ('x86_64',)

config_opts['chroot_setup_cmd'] = 'install tar gcc-c++ redhat-rpm-config redhat-release which xz sed make bzip2 gzip gcc coreutils unzip shadow-utils diffutils cpio bash gawk rpm-build info patch util-linux findutils grep vim python38-rpm-macros'
config_opts['dist'] = 'el8' # only useful for --resultdir variable subst
config_opts['releasever'] = '8'
config_opts['package_manager'] = 'dnf'
config_opts['extra_chroot_dirs'] = [ '/run/lock', ]
config_opts['bootstrap_image'] = 'centos:8'


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
protected_packages=
module_platform_id=platform:el8

[BaseOS]
name=CentOS-$releasever - Base
mirrorlist=http://mirrorlist.centos.org/?release=8&arch=$basearch&repo=BaseOS&infra=$infra
failovermethod=priority
gpgkey=file:///usr/share/distribution-gpg-keys/centos/RPM-GPG-KEY-CentOS-Official
gpgcheck=1
skip_if_unavailable=False
include('centos-stream-8-x86_64.cfg')

[PowerTools]
name=CentOS-$releasever - PowerTools
mirrorlist=http://mirrorlist.centos.org/?release=8&arch=$basearch&repo=PowerTools&infra=$infra
#baseurl=http://mirror.centos.org/centos/$releasever/PowerTools/$basearch/os/
gpgcheck=1
gpgkey=file:///usr/share/distribution-gpg-keys/centos/RPM-GPG-KEY-CentOS-Official

[extras]
name=CentOS-$releasever - Extras
mirrorlist=http://mirrorlist.centos.org/?release=8&arch=$basearch&repo=extras&infra=$infra
#baseurl=http://mirror.centos.org/centos/$releasever/extras/$basearch/os/
gpgcheck=1
enabled=1
gpgkey=file:///usr/share/distribution-gpg-keys/centos/RPM-GPG-KEY-CentOS-Official

[koji-non-modular]
name=koji-non-modular
baseurl=http://koji.katello.org/kojifiles/releases/split/yum/koji-modules/koji/staged/x86_64/RHEL-8-001-mod/non_modular/
module_hotfixes=1

[koji-python-38]
name=koji-python-38
baseurl=http://koji.katello.org/kojifiles/releases/split/yum/koji-modules/koji/staged/x86_64/RHEL-8-001-mod/python38:3.8/
module_hotfixes=1
config_opts['root'] = 'pulpcore-el8-x86_64'
config_opts['chroot_setup_cmd'] += " python38-rpm-macros"
config_opts['chroot_additional_packages'] = 'vim'
config_opts['module_setup_commands'] = [
('enable', 'pulpcore:el8'),
]

config_opts['dnf.conf'] += """
[pulpcore]
name=pulpcore
baseurl=https://yum.theforeman.org/pulpcore/3.15/el8/x86_64/
baseurl=https://yum.theforeman.org/pulpcore/3.18/el8/$basearch/
"""
10 changes: 10 additions & 0 deletions mock/el9.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
include('centos-stream-9-x86_64.cfg')

config_opts['root'] = 'pulpcore-el9-x86_64'
config_opts['chroot_additional_packages'] = 'vim'

config_opts['dnf.conf'] += """
[pulpcore]
name=pulpcore
baseurl=https://yum.theforeman.org/pulpcore/3.18/el9/$basearch/
"""