summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--image-clang32.yaml35
-rwxr-xr-xinit2
-rw-r--r--meta.lua2
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 @@
1image: 1image:
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
6source: 7source:
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
11files: 12files:
@@ -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
35packages: 26packages:
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
46actions: 37actions:
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
59mappings: 44mappings:
60 architecture_map: 45 architecture_map:
diff --git a/init b/init
index 242fe06..9e42dcc 100755
--- a/init
+++ b/init
@@ -1,6 +1,6 @@
1#!/bin/bash -ex 1#!/bin/bash -ex
2apt update 2apt update
3apt install -yqq distrobuilder 3apt install -yqq distrobuilder
4distrobuilder build-incus image-clang32.yaml 4distrobuilder build-incus image-clang32/image-clang32.yaml
5 5
6echo "Hello, world!" > hello.txt 6echo "Hello, world!" > hello.txt
diff --git a/meta.lua b/meta.lua
index ff0bbb5..28e3bfd 100644
--- a/meta.lua
+++ b/meta.lua
@@ -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}