Add Docker-based release tooling for easier releases

Co-authored-by: johndoe6345789 <224850594+johndoe6345789@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2025-12-29 17:30:22 +00:00
parent 12723c0ece
commit 85094d4b94
4 changed files with 268 additions and 5 deletions

View File

@@ -7,7 +7,7 @@ DESTDIR = rootfs
IMAGE = sparkos.img
IMAGE_SIZE = 512M
.PHONY: all clean init image help install
.PHONY: all clean init image help install docker-release
all: init
@@ -15,13 +15,17 @@ help:
@echo "SparkOS Build System"
@echo "===================="
@echo "Targets:"
@echo " make init - Build the init system"
@echo " make install - Install init to rootfs"
@echo " make image - Create bootable dd-able image (requires root)"
@echo " make clean - Clean build artifacts"
@echo " make init - Build the init system"
@echo " make install - Install init to rootfs"
@echo " make image - Create bootable dd-able image (requires root)"
@echo " make docker-release - Build release package using Docker (no root required)"
@echo " make clean - Clean build artifacts"
@echo ""
@echo "Note: Creating a bootable image requires root privileges"
@echo " and various tools (debootstrap, syslinux, etc.)"
@echo ""
@echo "For easier release building, use Docker:"
@echo " ./scripts/docker-release.sh v1.0.0"
init: src/init.c
@echo "Building SparkOS init system..."
@@ -42,9 +46,14 @@ image: install
fi
@./scripts/create_image.sh
docker-release:
@echo "Building release package using Docker..."
@./scripts/docker-release.sh
clean:
@echo "Cleaning build artifacts..."
rm -f init
rm -f $(IMAGE)
rm -rf build/
rm -rf release/
@echo "Clean complete"