A couple of scripts needed for build a talos image, mainly for create custom images and trying out patched for u-boot or the kernel.
It is current set up for to build arm64 architecture images from a amd64 host, so make sure you do a:
sudo apt install gcc-aarch64-linux-gnu-
Run a registry
first we run a registry images are pushed to this registry and the talos image will be build using our custom containers.
docker run --rm -p 5000:5000 --name registry registry:2
-
Build and push a u-boot image
`Here u-boot next branch is used, talos obviously uses a u-boot release.
cd u-boot ./doallWhen succesfull you should see a
"PUT /v2/ubootbash/manifests/latest HTTP/1.1"call to your docker registry, takes about a minute on my machine, all good. ` -
Build and push a kernel image
Currently the doall script applies this patch to mitigate this issue.
cd pkgs ./doallget a lot of coffee.
When succesfull you should see a
"PUT /v2/tlarsen/kernel/manifests/v1.5.0-9-g7f9d6eb-dirty HTTP/1.1"in your registry log. -
Build a talos image
The Dockerfile is patched so it uses the u-boot and kernel images.
cd talos ./doallget some coffee.