config_opts['chroot_setup_cmd'] = 'install tar gcc-c++ redhat-rpm-config system-release which xz sed make bzip2 gzip gcc coreutils unzip diffutils cpio bash gawk rpm-build info patch util-linux findutils grep'
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['description'] = 'Navy Linux {{ releasever }}'
# FIXME: this might soon stop working because the image is 8.4, see
#        https://github.com/rpm-software-management/mock/issues/1171
config_opts['bootstrap_image'] = 'docker.io/navylinux/navylinux:latest'

config_opts['dnf.conf'] = """
[main]
keepcache=1
debuglevel=2
reposdir=/dev/null
logfile=/var/log/dnf.log
retries=20
obsoletes=1
gpgcheck=0
assumeyes=1
syslog_ident=mock
syslog_device=
mdpolicy=group:primary
best=1
protected_packages=
module_platform_id=platform:el8
user_agent={{ user_agent }}

[nl-base]
name=Navy Linux Enterprise OS Repository - el$releasever
baseurl=https://cdn.navylinux.org/navylinux/releases/$releasever/$basearch/os/
enabled=1
gpgcheck=1
gpgkey=file:///usr/share/distribution-gpg-keys/navy/RPM-GPG-KEY-navy-linux-official

[nl-every]
name=Navy Linux Enterprise Every Repository - el$releasever
baseurl=https://cdn.navylinux.org/navylinux/releases/$releasever/$basearch/everything/
enabled=1
gpgcheck=1
gpgkey=file:///usr/share/distribution-gpg-keys/navy/RPM-GPG-KEY-navy-linux-official

[nl-powertools]
name=Navy Linux Enterprise Power Repository - el$releasever
baseurl=https://cdn.navylinux.org/navylinux/releases/$releasever/$basearch/powertools/
enabled=1
gpgcheck=1
gpgkey=file:///usr/share/distribution-gpg-keys/navy/RPM-GPG-KEY-navy-linux-official

[nl-kernel]
name=Navy Linux Enterprise Kernel  Repository - el$releasever
baseurl=https://cdn.navylinux.org/navylinux/releases/$releasever/$basearch/kernel/
enabled=1
gpgcheck=1
gpgkey=file:///usr/share/distribution-gpg-keys/navy/RPM-GPG-KEY-navy-linux-official

[nl-extra]
name=Navy Linux Enterprise Extra  Repository - el$releasever
baseurl=https://cdn.navylinux.org/navylinux/releases/$releasever/$basearch/extra/
enabled=0
gpgcheck=1
gpgkey=file:///usr/share/distribution-gpg-keys/navy/RPM-GPG-KEY-navy-linux-official

[nl-devel]
name=Navy Linux Devel Repository - el$releasever
baseurl=https://cdn.navylinux.org/navylinux/releases/$releasever/$basearch/devel/
enabled=0
gpgcheck=1
gpgkey=file:///usr/share/distribution-gpg-keys/navy/RPM-GPG-KEY-navy-linux-official

[nl-debug]
name=Navy Linux Debug Repository - el$releasever
baseurl=https://cdn.navylinux.org/navylinux/releases/$releasever/$basearch/debug/
enabled=0
gpgcheck=1
gpgkey=file:///usr/share/distribution-gpg-keys/navy/RPM-GPG-KEY-navy-linux-official

[nl-source]
name=Navy Linux Source Repository - el$releasever
baseurl=https://cdn.navylinux.org/navylinux/releases/$releasever/$basearch/source/
enabled=0
gpgcheck=1
gpgkey=file:///usr/share/distribution-gpg-keys/navy/RPM-GPG-KEY-navy-linux-official

"""

