diff options
| author | Alexander M Pickering <alex@cogarr.net> | 2024-07-20 14:45:16 -0500 |
|---|---|---|
| committer | Alexander M Pickering <alex@cogarr.net> | 2024-07-20 14:45:16 -0500 |
| commit | 9ca88b0043618caadb7475387c5326da0449b58d (patch) | |
| tree | 8400e0b48f66ae675fc7164de131abe5b4e75c82 | |
| parent | a694fc3ed72c1d66f9fd07f4ece4a707b011216c (diff) | |
| download | image-clang32-9ca88b0043618caadb7475387c5326da0449b58d.tar.gz image-clang32-9ca88b0043618caadb7475387c5326da0449b58d.tar.bz2 image-clang32-9ca88b0043618caadb7475387c5326da0449b58d.zip | |
Add distrobuilder yaml
| -rw-r--r-- | image-clang32.yaml | 60 | ||||
| -rwxr-xr-x | init | 6 | ||||
| -rw-r--r-- | meta.lua | 3 |
3 files changed, 67 insertions, 2 deletions
diff --git a/image-clang32.yaml b/image-clang32.yaml new file mode 100644 index 0000000..6558784 --- /dev/null +++ b/image-clang32.yaml | |||
| @@ -0,0 +1,60 @@ | |||
| 1 | image: | ||
| 2 | distribution: alpinelinux | ||
| 3 | description: Build image for lua4.win | ||
| 4 | architecture: i386 | ||
| 5 | |||
| 6 | source: | ||
| 7 | downloader: alpinelinux-http | ||
| 8 | same_as: 3.12 | ||
| 9 | url: http://dl-cdn.alpinelinux.org/alpine | ||
| 10 | |||
| 11 | files: | ||
| 12 | - path: /etc/hostname | ||
| 13 | generator: hostname | ||
| 14 | |||
| 15 | - path: /etc/hosts | ||
| 16 | generator: hosts | ||
| 17 | |||
| 18 | - path: /etc/machine-id | ||
| 19 | generator: dump | ||
| 20 | |||
| 21 | - path: /etc/user/profile | ||
| 22 | generator: copy | ||
| 23 | source: /etc/profile | ||
| 24 | |||
| 25 | - path: /etc/netplan/10-lxc.yaml | ||
| 26 | generator: dump | ||
| 27 | content: |- | ||
| 28 | network: | ||
| 29 | version: 2 | ||
| 30 | ethernets: | ||
| 31 | eth0: | ||
| 32 | dhcp4: true | ||
| 33 | dhcp-identifier: mac | ||
| 34 | |||
| 35 | packages: | ||
| 36 | manager: apk | ||
| 37 | update: true | ||
| 38 | cleanup: true | ||
| 39 | sets: | ||
| 40 | - packages: | ||
| 41 | - gcc | ||
| 42 | - alpine-base | ||
| 43 | - neovim | ||
| 44 | action: install | ||
| 45 | |||
| 46 | actions: | ||
| 47 | - trigger: post-update | ||
| 48 | action: |- | ||
| 49 | #!/bin/sh | ||
| 50 | set -eux | ||
| 51 | systemctl enable systemd-networkd | ||
| 52 | - trigger: post-packages | ||
| 53 | action: |- | ||
| 54 | #!/bin/sh | ||
| 55 | set -eux | ||
| 56 | locale-gen en_US.UTF-8 | ||
| 57 | update-locale LANG=en_US.UTF-8 | ||
| 58 | |||
| 59 | mappings: | ||
| 60 | architecture_map: | ||
| @@ -1,2 +1,6 @@ | |||
| 1 | #!/bin/sh | 1 | #!/bin/bash -ex |
| 2 | apt update | ||
| 3 | apt install -yqq distrobuilder | ||
| 4 | distrobuilder build-incus image-clang32.yaml | ||
| 5 | |||
| 2 | echo "Hello, world!" > hello.txt | 6 | echo "Hello, world!" > hello.txt |
| @@ -1,7 +1,8 @@ | |||
| 1 | return { | 1 | return { |
| 2 | { | 2 | { |
| 3 | image = "images:debian/trixie" | ||
| 3 | name = "image-clang32", | 4 | name = "image-clang32", |
| 4 | requires = {}, | 5 | requires = {}, |
| 5 | produces = {"hello.txt"}, | 6 | produces = {"hello.txt", "incus.tar.xz","rootfs.squashfs"}, |
| 6 | } | 7 | } |
| 7 | } | 8 | } |
