mirror of
https://github.com/mulgadc/spinifex.git
synced 2026-10-20 11:21:49 +00:00
3129c9eb70
Extract build-alb-image.sh into manifest-driven build-system-image.sh: - alb.conf manifest + alb-setup.sh for ALB-specific config - build-alb-image.sh kept as thin wrapper for backward compat - Makefile targets: build-system-image, build-alb-image - Hardened error handling: curl --fail, e2fsck/resize2fs checks, static-link enforcement, rc-update validation, nbd device guard Also fixes 12 lint issues: errcheck, errchkjson, gosec, gofmt, modernize.
23 lines
668 B
Plaintext
23 lines
668 B
Plaintext
# ALB system image manifest
|
|
# Used by build-system-image.sh to create an Alpine AMI with HAProxy + alb-agent
|
|
|
|
IMAGE_NAME="alb"
|
|
IMAGE_DESCRIPTION="ALB VM with HAProxy and alb-agent"
|
|
ALPINE_VERSION="3.21.6"
|
|
IMAGE_SIZE="512M"
|
|
|
|
# Packages to install via apk
|
|
APK_PACKAGES="haproxy curl"
|
|
|
|
# Binaries to copy into the image (source:destination)
|
|
INSTALL_BINARIES="bin/alb-agent:/usr/local/bin/alb-agent"
|
|
|
|
# Build command for binaries (run before image build)
|
|
BUILD_COMMANDS="make build-alb-agent"
|
|
|
|
# OpenRC services to enable at boot
|
|
ENABLE_SERVICES="haproxy"
|
|
|
|
# Custom setup script (runs inside chroot after packages are installed)
|
|
SETUP_SCRIPT="scripts/images/alb-setup.sh"
|