refraction-forger/images/ubuntu-rust-ci.kdl
Till Wegmueller 86c645f7ff
Lots of testing and fixing the builds to produce a Ubuntu and a omnios image
Signed-off-by: Till Wegmueller <toasterson@gmail.com>
2026-02-16 00:12:13 +01:00

45 lines
1 KiB
Text

metadata name="ubuntu-rust-ci" version="0.1.0" description="Ubuntu 22.04 CI image with Rust"
distro "ubuntu-22.04"
repositories {
apt-mirror "http://archive.ubuntu.com/ubuntu" suite="jammy" components="main universe"
}
packages {
package "build-essential"
package "pkg-config"
package "curl"
package "git"
package "ca-certificates"
package "rustc"
package "cargo"
package "libssl-dev"
package "openssh-server"
package "cloud-init"
package "cloud-guest-utils"
package "grub-efi-amd64"
package "linux-image-generic"
}
customization {
user "ci"
}
overlays {
shadow username="root" password="$5$kr1VgdIt$OUiUAyZCDogH/uaxH71rMeQxvpDEY2yX.x0ZQRnmeb9"
ensure-dir "/home/ci" owner="ci" group="ci" mode="755"
}
builder {
image "https://cloud-images.ubuntu.com/jammy/current/jammy-server-cloudimg-amd64.img"
vcpus 4
memory 4096
}
target "qcow2" kind="qcow2" {
disk-size "8G"
bootloader "grub"
filesystem "ext4"
push-to "ghcr.io/cloudnebulaproject/ubuntu-rust:latest"
}