name: simple-cli-bootable
description: Generate bootable image from simple-cli container
base-image: git.raines.xyz/robojerk/simple-cli:latest
image-version: "1.0"

stages:
  - type: org.osbuild.debian.apt
    options:
      packages:
        - systemd
        - systemd-sysv
        - udev
        - procps
        - util-linux
        - mount
        - passwd
        - login
        - bash
        - coreutils
        - ostree
        - ostree-boot
        - linux-image-amd64
        - linux-headers-amd64
        - initramfs-tools
        - grub-common
        - grub-efi-amd64
        - curl
        - wget
        - vim
        - less
        - locales
        - ca-certificates
        - tzdata

  - type: org.osbuild.debian.locale
    options:
      locale: en_US.UTF-8

  - type: org.osbuild.debian.timezone
    options:
      timezone: UTC

  - type: org.osbuild.debian.users
    options:
      users:
        simple:
          password: "$6$rounds=656000$salt$hashed_password"
          shell: /bin/bash
          groups: ["sudo", "users"]
          uid: 1000
          gid: 1000
          home: /home/simple
          comment: "Simple CLI User"
      default_shell: /bin/bash
      default_home: /home

  - type: org.osbuild.qemu
    options:
      formats: ["raw", "qcow2"]
      size: "10G"
      filename: "simple-cli-bootable"

output:
  formats: ["raw", "qcow2"]
  size: "10G"
  path: "simple-cli-bootable"

metadata:
  author: "particle-os"
  category: "cli"
  tags: ["cli", "minimal", "particle-os", "simple-cli"]
  description: "Bootable image generated from simple-cli container"
  target_audience: "CLI users, minimal systems, particle-os enthusiasts"
  based_on: "git.raines.xyz/robojerk/simple-cli:latest"
