build

1
koji --user openstack --password openstack build cj8-uelc-openstack-victoria $1 --nowait
1
2
koji --user openstack --password openstack build cj8-uelc-openstack-victoria $1 --scratch --nowait --arch-override=x86_64
koji --user openstack --password openstack build cj8-uelc-openstack-victoria $1 --scratch --nowait --arch-override=loongarch64

delete build

1
koji --user openstack --password openstack call deleteBuild $1

tag

1
koji --user openstack --password openstack tag-build --nowait cj8-uelc-openstack-victoria $1

untag

1
koji --user openstack --password openstack untag-build cj8-uelc-openstack-victoria $1

add pkg

1
koji --user openstack --password openstack add_pkg --owner openstack cj8-uelc-openstack-victoria $1

mock.cfg

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
config_opts['basedir'] = '/var/lib/mock'
config_opts['chroot_setup_cmd'] = 'groupinstall srpm-build'
config_opts['chroothome'] = '/builddir'
config_opts['dnf_warning'] = True
config_opts['package_manager'] = 'dnf'
config_opts['root'] = 'uos'
config_opts['rpmbuild_networking'] = True
config_opts['rpmbuild_timeout'] = 86400
config_opts['target_arch'] = 'x86_64'
config_opts['use_host_resolv'] = True
config_opts['yum.conf'] = """
[main]
cachedir=/var/cache/yum
debuglevel=1
logfile=/var/log/yum.log
reposdir=/dev/null
retries=20
obsoletes=1
gpgcheck=0
assumeyes=1
keepcache=1
install_weak_deps=0
strict=1
# repos
[build]
name=build
baseurl=http://10.30.38.102/kojifiles/repos/cj8-uelc-openstack-victoria-build/latest/x86_64/
module_hotfixes=1
"""

config_opts['plugin_conf']['ccache_enable'] = False
config_opts['plugin_conf']['root_cache_enable'] = False
config_opts['plugin_conf']['yum_cache_enable'] = False

config_opts['macros']['%_host'] = 'x86_64-uniontech-linux'
config_opts['macros']['%_host_cpu'] = 'x86_64'
config_opts['macros']['%_rpmfilename'] = '%%{NAME}-%%{VERSION}-%%{RELEASE}.%%{ARCH}.rpm'
config_opts['macros']['%_topdir'] = '/builddir/build'
config_opts['macros']['%distribution'] = 'UOS'
config_opts['macros']['%packager'] = 'UOS Linux'
config_opts['macros']['%vendor'] = 'UnionTech'

config_opts['files']['etc/hosts'] = """
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
10.30.38.102 kojihub
10.100.10.22 registry.chengjieos.com
146.75.112.223 docs.python.org
"""