3 How to build images
Надежда Федорова edited this page 2024-06-11 12:59:15 +03:00
  1. Building for i586, x86_64
  • go to builder host
  • check import setting in config ( cb-vm.yaml, cb-ve-x86.yaml )

remote: '/home/builder/images/{branch}/{arch}'

  • run building with setting of config.yaml ( cb-vm.yaml, cb-ve-x86.yaml )

~/cloud-build/cloud-build.py -c ~/cloud-build/configs/***.yaml --stages build test sync --create-remote-dirs

  • getting images in dir /images
  1. Building for aarch64
  • go to taishan

ssh worker@taishan -p 33201 -i ~/.ssh/id_ed25519_builder cd prog/

  • check import setting in config

remote: 'builder@cloud-builder.office.basealt.ru:/home/builder/images/{branch}/{arch}'

  • run building with setting of config.yaml ( cb-aarch64.yaml

~/cloud-build/cloud-build.py -c ~/cloud-build/configs/***.yaml --stages build test sync --create-remote-dirs

  1. Sign
  • check import setting in config ( master.yaml )

remote: '/home/builder/proto/{branch}/{arch}' key: *** external_files: '~/external-files'

  • sign images

~/cloud-build/cloud-build.py --built-images-dir ~/images --stages copy_external_files sign sync -c ~/cloud-build/configs/master.yaml

  • make check
  1. Test (1 case)
  • go to vm with tests user@basalt.office.basealt.ru:/home/obirvalger/vml/distrobuilder
  • tests are here: /root/tests/alt,
  • check path to images in config alt.yaml, key - url
  • run test ./test.sh
  1. Test (2 case)
  • test vm

vml create -i /home/builder/proto/p11/cloud/x86_64/alt-p11-cloud-x86_64.qcow2 p11-x86

  • create dockerfile

FROM scratch

MAINTAINER \

[Alexey Shabalin <shaba@altlinux.org>] \

[Mikhail Gordeev <obirvalger@altlinux.org]

ADD alt-p11-rootfs-minimal-x86_64.tar.xz /

RUN true > /etc/security/limits.d/50-defaults.conf

# overwrite this with 'CMD []' in a dependent Dockerfile

CMD ["/bin/bash"]

  • build and then run podman container (linux/amd64, linux/386, linux/arm64)

podman build --manifest="registry.altlinux.org/alt/alt:p11" --platform=linux/amd64

podman manifest push --all <name> docker://<name>

podman run --rm -it

cat /etc/os-release

apt-get update && apt-get dist-upgrade

  1. Rsync to mirror
  • run rsync.sh script
  1. Kick
  • go to proto and run kick

ssh -i .ssh/cloudkey cloud@proto

kick