summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander M Pickering <alex@cogarr.net>2024-07-20 14:45:16 -0500
committerAlexander M Pickering <alex@cogarr.net>2024-07-20 14:45:16 -0500
commit9ca88b0043618caadb7475387c5326da0449b58d (patch)
tree8400e0b48f66ae675fc7164de131abe5b4e75c82
parenta694fc3ed72c1d66f9fd07f4ece4a707b011216c (diff)
downloadimage-clang32-9ca88b0043618caadb7475387c5326da0449b58d.tar.gz
image-clang32-9ca88b0043618caadb7475387c5326da0449b58d.tar.bz2
image-clang32-9ca88b0043618caadb7475387c5326da0449b58d.zip
Add distrobuilder yaml
-rw-r--r--image-clang32.yaml60
-rwxr-xr-xinit6
-rw-r--r--meta.lua3
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 @@
1image:
2 distribution: alpinelinux
3 description: Build image for lua4.win
4 architecture: i386
5
6source:
7 downloader: alpinelinux-http
8 same_as: 3.12
9 url: http://dl-cdn.alpinelinux.org/alpine
10
11files:
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
35packages:
36 manager: apk
37 update: true
38 cleanup: true
39 sets:
40 - packages:
41 - gcc
42 - alpine-base
43 - neovim
44 action: install
45
46actions:
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
59mappings:
60 architecture_map:
diff --git a/init b/init
index b669c39..242fe06 100755
--- a/init
+++ b/init
@@ -1,2 +1,6 @@
1#!/bin/sh 1#!/bin/bash -ex
2apt update
3apt install -yqq distrobuilder
4distrobuilder build-incus image-clang32.yaml
5
2echo "Hello, world!" > hello.txt 6echo "Hello, world!" > hello.txt
diff --git a/meta.lua b/meta.lua
index 0db8cf9..9e16b56 100644
--- a/meta.lua
+++ b/meta.lua
@@ -1,7 +1,8 @@
1return { 1return {
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}