gabriel / raspberry-builds
Actions du dépôt
Watch
1
0
Fork
You've already forked raspberry-builds
0

Custom Images.

github-actions[bot] edited this page 2025-12-09 00:01:08 +00:00

Creating Custom Images

Guide to creating your own image configurations.

Quick Start

# 1. Copy base configuration
cp -r images/debian images/myproject

# 2. Edit config
vim images/myproject/config.sh

# 3. Customize setup
vim images/myproject/services/base/setup.sh

# 4. Build
./bin/autobuild --image myproject

Configuration File (config.sh)

Required variables:

OUTPUT_IMAGE="myproject.img"
IMAGE_SIZE="8G"
QEMU_RAM="4G"
QEMU_CPUS="4"
CLOUD=true  # or false
IMAGE_URL="https://cloud.debian.org/images/cloud/trixie-backports/daily/latest/debian-13-backports-genericcloud-arm64-daily.raw"
SERVICES="base qemu docker"
DESCRIPTION="My custom image"

Using Service Composition

Dynamic images - compose from existing services:

./bin/autobuild --image debian/qemu+docker+myservice

Physical images - full custom directory:

./bin/autobuild --image myproject

See Services - Creating Custom Services for adding new service modules.

Examples

Minimal Debian:

SERVICES="base"
IMAGE_SIZE="4G"

Docker host:

SERVICES="base docker"
IMAGE_SIZE="8G"

Custom service stack:

SERVICES="base qemu docker myapp"
IMAGE_SIZE="16G"

Next Steps

Cloner la documentation