Skip to content

Commit 025084b

Browse files
scaronniConan-Kudo
authored andcommitted
Add Azure Linux 3 configuration
1 parent a54926d commit 025084b

File tree

4 files changed

+77
-0
lines changed

4 files changed

+77
-0
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
include('templates/azure-linux-3.tpl')
2+
3+
config_opts['root'] = 'azure-linux-3-x86_64'
4+
config_opts['description'] = 'Azure Linux 3.0'
5+
config_opts['target_arch'] = 'x86_64'
6+
config_opts['legal_host_arches'] = ('x86_64',)
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
include('templates/azure-linux-3.tpl')
2+
3+
config_opts['root'] = 'azure-linux-3-x86_64'
4+
config_opts['description'] = 'Azure Linux 3.0'
5+
config_opts['target_arch'] = 'x86_64'
6+
config_opts['legal_host_arches'] = ('x86_64',)
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
config_opts['chroot_setup_cmd'] = 'install bash binutils bzip2 coreutils cpio diffutils dnf findutils gawk glibc-devel grep gzip kernel-headers patch redhat-rpm-config rpm-build sed tar unzip util-linux which xz'
2+
config_opts['dist'] = 'azl3'
3+
config_opts['releasever'] = '3.0'
4+
config_opts['package_manager'] = 'dnf'
5+
config_opts['extra_chroot_dirs'] = [ '/run/lock', ]
6+
7+
# https://mcr.microsoft.com/en-us/product/azurelinux/base/core/tags:
8+
# config_opts['bootstrap_image'] = 'mcr.microsoft.com/azurelinux/base/core:3.0'
9+
# Container image contains tdnf (https://github.com/vmware/tdnf) as the base package manager so it can't be used:
10+
config_opts['use_bootstrap'] = False
11+
12+
config_opts['dnf.conf'] = """
13+
[main]
14+
keepcache=1
15+
debuglevel=2
16+
reposdir=/dev/null
17+
logfile=/var/log/yum.log
18+
retries=20
19+
obsoletes=1
20+
gpgcheck=0
21+
assumeyes=1
22+
syslog_ident=mock
23+
syslog_device=
24+
metadata_expire=0
25+
mdpolicy=group:primary
26+
best=1
27+
install_weak_deps=0
28+
protected_packages=
29+
module_platform_id=platform:2.9
30+
user_agent={{ user_agent }}
31+
32+
[azurelinux-official-base]
33+
name=Azure Linux Official Base $releasever $basearch
34+
baseurl=https://packages.microsoft.com/azurelinux/$releasever/prod/base/$basearch
35+
gpgkey=file:///usr/share/distribution-gpg-keys/azure-linux/MICROSOFT-RPM-GPG-KEY
36+
gpgcheck=1
37+
repo_gpgcheck=1
38+
enabled=1
39+
40+
[azurelinux-official-extended]
41+
name=Azure Linux Official Extended $releasever $basearch
42+
baseurl=https://packages.microsoft.com/azurelinux/$releasever/prod/extended/$basearch
43+
gpgkey=file:///usr/share/distribution-gpg-keys/azure-linux/MICROSOFT-RPM-GPG-KEY
44+
gpgcheck=1
45+
repo_gpgcheck=1
46+
enabled=1
47+
48+
[azurelinux-official-ms-oss]
49+
name=Azure Linux Official Microsoft Open-Source $releasever $basearch
50+
baseurl=https://packages.microsoft.com/azurelinux/$releasever/prod/ms-oss/$basearch
51+
gpgkey=file:///usr/share/distribution-gpg-keys/azure-linux/MICROSOFT-RPM-GPG-KEY
52+
gpgcheck=1
53+
repo_gpgcheck=1
54+
enabled=1
55+
56+
[azurelinux-official-ms-non-oss]
57+
name=Azure Linux Official Microsoft Non-Open-Source $releasever $basearch
58+
baseurl=https://packages.microsoft.com/azurelinux/$releasever/prod/ms-non-oss/$basearch
59+
gpgkey=file:///usr/share/distribution-gpg-keys/azure-linux/MICROSOFT-RPM-GPG-KEY
60+
gpgcheck=1
61+
repo_gpgcheck=1
62+
enabled=1
63+
64+
"""
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Add Azure Linux 3.0 configuration (x86_64, aarch64).

0 commit comments

Comments
 (0)