Files
debos/doc/examples/example.yaml
Ana Guerrero Lopez cd486ecb6d Add doc/examples with an example
Signed-off-by: Ana Guerrero Lopez <ana.guerrero@collabora.com>
2018-06-14 10:53:25 +02:00

35 lines
754 B
YAML

{{- $architecture := or .architecture "arm64" -}}
{{- $suite := or .suite "stretch" -}}
{{ $image := or .image (printf "debian-%s-%s.tgz" $suite $architecture) }}
architecture: {{ $architecture }}
actions:
- action: debootstrap
suite: "buster"
components:
- main
- contrib
- non-free
mirror: https://deb.debian.org/debian
variant: minbase
- action: apt
description: Install some packages
packages: [ sudo, openssh-server, adduser, systemd-sysv, firmware-linux ]
- action: run
chroot: true
script: setup-user.sh
- action: overlay
source: overlays/sudo
- action: run
chroot: true
command: echo debian > /etc/hostname
- action: pack
file: {{ $image }}
compression: gz