diff options
| -rw-r--r-- | image-clang32.yaml | 35 | ||||
| -rwxr-xr-x | init | 2 | ||||
| -rw-r--r-- | meta.lua | 2 |
3 files changed, 12 insertions, 27 deletions
diff --git a/image-clang32.yaml b/image-clang32.yaml index 6558784..407f162 100644 --- a/image-clang32.yaml +++ b/image-clang32.yaml | |||
| @@ -1,11 +1,12 @@ | |||
| 1 | image: | 1 | image: |
| 2 | distribution: alpinelinux | 2 | distribution: alpinelinux |
| 3 | description: Build image for lua4.win | 3 | description: Build image for lua4.win |
| 4 | architecture: i386 | 4 | architecture: x86 |
| 5 | release: edge | ||
| 5 | 6 | ||
| 6 | source: | 7 | source: |
| 7 | downloader: alpinelinux-http | 8 | downloader: alpinelinux-http |
| 8 | same_as: 3.12 | 9 | same_as: 3.20 |
| 9 | url: http://dl-cdn.alpinelinux.org/alpine | 10 | url: http://dl-cdn.alpinelinux.org/alpine |
| 10 | 11 | ||
| 11 | files: | 12 | files: |
| @@ -15,22 +16,12 @@ files: | |||
| 15 | - path: /etc/hosts | 16 | - path: /etc/hosts |
| 16 | generator: hosts | 17 | generator: hosts |
| 17 | 18 | ||
| 18 | - path: /etc/machine-id | 19 | - path: /etc/network/interfaces |
| 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 | 20 | generator: dump |
| 27 | content: |- | 21 | content: |- |
| 28 | network: | 22 | auth eth0 |
| 29 | version: 2 | 23 | iface eth0 inet dhcp |
| 30 | ethernets: | 24 | hostname $(hostname) |
| 31 | eth0: | ||
| 32 | dhcp4: true | ||
| 33 | dhcp-identifier: mac | ||
| 34 | 25 | ||
| 35 | packages: | 26 | packages: |
| 36 | manager: apk | 27 | manager: apk |
| @@ -38,23 +29,17 @@ packages: | |||
| 38 | cleanup: true | 29 | cleanup: true |
| 39 | sets: | 30 | sets: |
| 40 | - packages: | 31 | - packages: |
| 41 | - gcc | ||
| 42 | - alpine-base | 32 | - alpine-base |
| 43 | - neovim | 33 | - clang18 |
| 34 | - clang18-dev | ||
| 44 | action: install | 35 | action: install |
| 45 | 36 | ||
| 46 | actions: | 37 | actions: |
| 47 | - trigger: post-update | ||
| 48 | action: |- | ||
| 49 | #!/bin/sh | ||
| 50 | set -eux | ||
| 51 | systemctl enable systemd-networkd | ||
| 52 | - trigger: post-packages | 38 | - trigger: post-packages |
| 53 | action: |- | 39 | action: |- |
| 54 | #!/bin/sh | 40 | #!/bin/sh |
| 55 | set -eux | 41 | set -eux |
| 56 | locale-gen en_US.UTF-8 | 42 | rm -f /var/cache/apk/* |
| 57 | update-locale LANG=en_US.UTF-8 | ||
| 58 | 43 | ||
| 59 | mappings: | 44 | mappings: |
| 60 | architecture_map: | 45 | architecture_map: |
| @@ -1,6 +1,6 @@ | |||
| 1 | #!/bin/bash -ex | 1 | #!/bin/bash -ex |
| 2 | apt update | 2 | apt update |
| 3 | apt install -yqq distrobuilder | 3 | apt install -yqq distrobuilder |
| 4 | distrobuilder build-incus image-clang32.yaml | 4 | distrobuilder build-incus image-clang32/image-clang32.yaml |
| 5 | 5 | ||
| 6 | echo "Hello, world!" > hello.txt | 6 | echo "Hello, world!" > hello.txt |
| @@ -3,6 +3,6 @@ return { | |||
| 3 | image = "images:debian/trixie", | 3 | image = "images:debian/trixie", |
| 4 | name = "image-clang32", | 4 | name = "image-clang32", |
| 5 | requires = {}, | 5 | requires = {}, |
| 6 | produces = {"hello.txt", "incus.tar.xz","rootfs.squashfs"}, | 6 | produces = {"incus.tar.xz","rootfs.squashfs"}, |
| 7 | } | 7 | } |
| 8 | } | 8 | } |
