add new arches to configs and build script
This commit is contained in:
parent
f186fe4202
commit
16125d5010
@ -238,6 +238,9 @@ class CB:
|
|||||||
self._repository_url = cfg.get('repository_url',
|
self._repository_url = cfg.get('repository_url',
|
||||||
'copy:///space/ALT/{branch}')
|
'copy:///space/ALT/{branch}')
|
||||||
|
|
||||||
|
self._other_repo_url = cfg.get('other_repo_url',
|
||||||
|
'http://ftp.altlinux.org/pub/distributions/ALTLinux/ports/{arch}')
|
||||||
|
|
||||||
self._image_repo = cfg.get('image_repo')
|
self._image_repo = cfg.get('image_repo')
|
||||||
|
|
||||||
self.patch_mp_prog = get_overrided('patch_mp_prog')
|
self.patch_mp_prog = get_overrided('patch_mp_prog')
|
||||||
@ -315,6 +318,14 @@ class CB:
|
|||||||
self._repository_url)
|
self._repository_url)
|
||||||
return url.format(branch=branch, arch=arch)
|
return url.format(branch=branch, arch=arch)
|
||||||
|
|
||||||
|
def other_repo_url(self, branch: str, arch: str) -> str:
|
||||||
|
url = self._branches[branch]['arches'][arch].get('repository_url')
|
||||||
|
if url is None:
|
||||||
|
url = self._branches[branch].get('repository_url',
|
||||||
|
self._repository_url)
|
||||||
|
return url.format(branch=branch, arch=arch)
|
||||||
|
|
||||||
|
|
||||||
def image_repo(self, branch: str, arch: str) -> str:
|
def image_repo(self, branch: str, arch: str) -> str:
|
||||||
url = self._branches[branch]['arches'][arch].get('image_repo')
|
url = self._branches[branch]['arches'][arch].get('image_repo')
|
||||||
if url is None:
|
if url is None:
|
||||||
@ -394,6 +405,10 @@ Dir::Etc::preferencesparts "/var/empty";
|
|||||||
|
|
||||||
with open(f'{apt_dir}/sources.list.{branch}.{arch}', 'w') as f:
|
with open(f'{apt_dir}/sources.list.{branch}.{arch}', 'w') as f:
|
||||||
sources_list = f'rpm {repo} {arch} classic\n'
|
sources_list = f'rpm {repo} {arch} classic\n'
|
||||||
|
if arch in ['loongarch64', 'riscv64']:
|
||||||
|
sources_list = f'rpm {repo} {branch}/{arch} classic\n'
|
||||||
|
sources_list += f'rpm {repo} {branch}/noarch classic\n'
|
||||||
|
else:
|
||||||
if arch == 'x86_64':
|
if arch == 'x86_64':
|
||||||
sources_list += f'rpm {repo} {arch}-i586 classic\n'
|
sources_list += f'rpm {repo} {arch}-i586 classic\n'
|
||||||
if arch not in self.bad_arches:
|
if arch not in self.bad_arches:
|
||||||
|
@ -8,6 +8,12 @@ rebuild_after:
|
|||||||
days: 5
|
days: 5
|
||||||
|
|
||||||
images:
|
images:
|
||||||
|
rootfs-minimal:
|
||||||
|
target: ve/docker
|
||||||
|
kinds:
|
||||||
|
- tar.xz
|
||||||
|
tests:
|
||||||
|
- method: docker
|
||||||
rootfs-systemd:
|
rootfs-systemd:
|
||||||
target: ve/systemd-networkd
|
target: ve/systemd-networkd
|
||||||
kinds:
|
kinds:
|
||||||
@ -37,19 +43,6 @@ images:
|
|||||||
- method: lxd
|
- method: lxd
|
||||||
scripts:
|
scripts:
|
||||||
- securetty
|
- securetty
|
||||||
cloud:
|
|
||||||
target: vm/cloud-systemd
|
|
||||||
kinds:
|
|
||||||
- qcow2c
|
|
||||||
scripts:
|
|
||||||
- machine_id
|
|
||||||
packages:
|
|
||||||
- update-kernel
|
|
||||||
- apt-scripts
|
|
||||||
- systemd-settings-disable-kill-user-processes
|
|
||||||
rename:
|
|
||||||
regex: '(.*)\.qcow2c$'
|
|
||||||
to: '\1.qcow2'
|
|
||||||
|
|
||||||
branches:
|
branches:
|
||||||
Sisyphus:
|
Sisyphus:
|
||||||
@ -59,11 +52,11 @@ branches:
|
|||||||
p10:
|
p10:
|
||||||
arches:
|
arches:
|
||||||
aarch64:
|
aarch64:
|
||||||
branding: alt-starterkit
|
branding: alt-container
|
||||||
p11:
|
p11:
|
||||||
arches:
|
arches:
|
||||||
aarch64:
|
aarch64:
|
||||||
branding: alt-starterkit
|
branding: alt-container
|
||||||
|
|
||||||
scripts:
|
scripts:
|
||||||
machine_id:
|
machine_id:
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
remote: 'cloud@172.16.0.2:/home/cloud/images/{branch}/{arch}'
|
remote: '/home/builder/images/{branch}/{arch}'
|
||||||
repository_url: copy:///space/ALT/{branch}
|
repository_url: http://ftp.altlinux.org/pub/distributions/ALTLinux/ports/{arch}
|
||||||
try_build_all: True
|
try_build_all: True
|
||||||
log_level: debug
|
log_level: debug
|
||||||
|
|
||||||
@ -41,18 +41,12 @@ images:
|
|||||||
scripts:
|
scripts:
|
||||||
- securetty
|
- securetty
|
||||||
- netsharedpath
|
- netsharedpath
|
||||||
exclude_branches:
|
|
||||||
- c8
|
|
||||||
|
|
||||||
branches:
|
branches:
|
||||||
Sisyphus:
|
Sisyphus:
|
||||||
arches:
|
arches:
|
||||||
ppc64le:
|
loongarch64:
|
||||||
p10:
|
riscv64:
|
||||||
arches:
|
|
||||||
ppc64le:
|
|
||||||
armh:
|
|
||||||
branding: alt-starterkit
|
|
||||||
|
|
||||||
scripts:
|
scripts:
|
||||||
securetty:
|
securetty:
|
||||||
|
@ -8,6 +8,12 @@ rebuild_after:
|
|||||||
days: 5
|
days: 5
|
||||||
|
|
||||||
images:
|
images:
|
||||||
|
rootfs-minimal:
|
||||||
|
target: ve/docker
|
||||||
|
kinds:
|
||||||
|
- tar.xz
|
||||||
|
tests:
|
||||||
|
- method: docker
|
||||||
rootfs-systemd:
|
rootfs-systemd:
|
||||||
target: ve/systemd-networkd
|
target: ve/systemd-networkd
|
||||||
kinds:
|
kinds:
|
||||||
@ -45,12 +51,12 @@ branches:
|
|||||||
arches:
|
arches:
|
||||||
i586:
|
i586:
|
||||||
x86_64:
|
x86_64:
|
||||||
branding: alt-starterkit
|
branding: alt-container
|
||||||
p11:
|
p11:
|
||||||
arches:
|
arches:
|
||||||
i586:
|
i586:
|
||||||
x86_64:
|
x86_64:
|
||||||
branding: alt-starterkit
|
branding: alt-container
|
||||||
|
|
||||||
scripts:
|
scripts:
|
||||||
securetty:
|
securetty:
|
||||||
|
68
configs/cb-vm-aarch64.yaml
Normal file
68
configs/cb-vm-aarch64.yaml
Normal file
@ -0,0 +1,68 @@
|
|||||||
|
---
|
||||||
|
remote: 'builder@cloud-builder.office.basealt.ru:/home/builder/images/{branch}/{arch}'
|
||||||
|
repository_url: http://mirror.yandex.ru/altlinux/{branch}/branch
|
||||||
|
try_build_all: True
|
||||||
|
log_level: debug
|
||||||
|
|
||||||
|
rebuild_after:
|
||||||
|
days: 5
|
||||||
|
|
||||||
|
images:
|
||||||
|
cloud:
|
||||||
|
target: vm/cloud-systemd
|
||||||
|
kinds:
|
||||||
|
- qcow2c
|
||||||
|
scripts:
|
||||||
|
- machine_id
|
||||||
|
packages:
|
||||||
|
- update-kernel
|
||||||
|
- apt-scripts
|
||||||
|
- systemd-settings-disable-kill-user-processes
|
||||||
|
rename:
|
||||||
|
regex: '(.*)\.qcow2c$'
|
||||||
|
to: '\1.qcow2'
|
||||||
|
|
||||||
|
branches:
|
||||||
|
Sisyphus:
|
||||||
|
arches:
|
||||||
|
aarch64:
|
||||||
|
repository_url: http://ftp.altlinux.org/pub/distributions/ALTLinux/{branch}
|
||||||
|
p10:
|
||||||
|
arches:
|
||||||
|
aarch64:
|
||||||
|
branding: alt-starterkit
|
||||||
|
p11:
|
||||||
|
arches:
|
||||||
|
aarch64:
|
||||||
|
branding: alt-starterkit
|
||||||
|
|
||||||
|
scripts:
|
||||||
|
machine_id:
|
||||||
|
contents: |
|
||||||
|
#!/bin/sh -exu
|
||||||
|
|
||||||
|
etc_machine_id=/etc/machine-id
|
||||||
|
dbus_machine_id=/var/lib/dbus/machine-id
|
||||||
|
|
||||||
|
rm -f "$etc_machine_id" "$dbus_machine_id"
|
||||||
|
touch "$etc_machine_id"
|
||||||
|
global: no
|
||||||
|
number: 90
|
||||||
|
securetty:
|
||||||
|
contents: |
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
echo pts/0 >> /etc/securetty
|
||||||
|
echo pts/1 >> /etc/securetty
|
||||||
|
global: no
|
||||||
|
number: 1
|
||||||
|
apt_sources:
|
||||||
|
contents: |
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
repo_source=/etc/apt/sources.list.d/altsp.list
|
||||||
|
[ -s "$repo_source" ] || exit 0
|
||||||
|
sed -i -E 's/^\s*#(rpm.*http)/\1/' "$repo_source"
|
||||||
|
global: no
|
||||||
|
number: 80
|
||||||
|
...
|
@ -1,32 +0,0 @@
|
|||||||
---
|
|
||||||
remote: 'builder@cloud-builder.office.basealt.ru:/home/builder/images/{branch}/{arch}'
|
|
||||||
repository_url: http://mirror.yandex.ru/altlinux/{branch}/branch
|
|
||||||
try_build_all: True
|
|
||||||
log_level: debug
|
|
||||||
|
|
||||||
rebuild_after:
|
|
||||||
days: 5
|
|
||||||
|
|
||||||
images:
|
|
||||||
rootfs-minimal:
|
|
||||||
target: ve/docker
|
|
||||||
kinds:
|
|
||||||
- tar.xz
|
|
||||||
tests:
|
|
||||||
- method: docker
|
|
||||||
|
|
||||||
branches:
|
|
||||||
Sisyphus:
|
|
||||||
arches:
|
|
||||||
aarch64:
|
|
||||||
repository_url: http://ftp.altlinux.org/pub/distributions/ALTLinux/{branch}
|
|
||||||
p10:
|
|
||||||
arches:
|
|
||||||
aarch64:
|
|
||||||
branding: alt-container
|
|
||||||
p11:
|
|
||||||
arches:
|
|
||||||
aarch64:
|
|
||||||
branding: alt-container
|
|
||||||
|
|
||||||
...
|
|
@ -1,34 +0,0 @@
|
|||||||
---
|
|
||||||
remote: '/home/builder/images/{branch}/{arch}'
|
|
||||||
repository_url: copy:///space/ALT/{branch}
|
|
||||||
try_build_all: True
|
|
||||||
log_level: debug
|
|
||||||
|
|
||||||
rebuild_after:
|
|
||||||
days: 5
|
|
||||||
|
|
||||||
images:
|
|
||||||
rootfs-minimal:
|
|
||||||
target: ve/docker
|
|
||||||
kinds:
|
|
||||||
- tar.xz
|
|
||||||
tests:
|
|
||||||
- method: docker
|
|
||||||
|
|
||||||
branches:
|
|
||||||
Sisyphus:
|
|
||||||
arches:
|
|
||||||
i586:
|
|
||||||
x86_64:
|
|
||||||
p10:
|
|
||||||
arches:
|
|
||||||
i586:
|
|
||||||
x86_64:
|
|
||||||
branding: alt-container
|
|
||||||
p11:
|
|
||||||
arches:
|
|
||||||
i586:
|
|
||||||
x86_64:
|
|
||||||
branding: alt-container
|
|
||||||
|
|
||||||
...
|
|
Loading…
Reference in New Issue
Block a user