Debian Codegraph @

doc/examples/ospack-debian/ospack-debian.yaml

raw
1 {{ $architecture := or .architecture "arm64" }}
2 {{ $suite := or .suite "trixie" }}
3 {{ $image := or .image (printf "debian-example-ospack-%s-%s.tar.gz" $suite $architecture) }}
4
5 architecture: {{ $architecture }}
6
7 actions:
8 - action: debootstrap
9 description: Bootstrap Debian base system
10 suite: {{ $suite }}
11 components:
12 - main
13 mirror: https://deb.debian.org/debian
14 variant: minbase
15
16 - action: apt
17 description: Install some packages into the rootfs
18 packages:
19 - sudo
20 - openssh-server
21 - adduser
22 - systemd-sysv
23
24 - action: run
25 description: Run a script inside the rootfs
26 chroot: true
27 script: scripts/setup-user.sh
28
29 - action: overlay
30 description: Copy files inside the rootfs
31 source: overlays/sudo
32
33 - action: run
34 description: Run a command inside the build environment
35 command: echo debian > ${ROOTDIR}/etc/hostname
36
37 - action: pack
38 description: Pack rootfs contents to tarball
39 file: {{ $image }}
40 compression: gz