Add comprehensive documentation, live-build configuration, and testing framework
Some checks failed
Build Simple CLI / build (push) Failing after 1s
Some checks failed
Build Simple CLI / build (push) Failing after 1s
- Add community release and integration documentation - Add production deployment and testing framework guides - Add live-build configuration with hooks and package lists - Add VM management and testing scripts - Update .gitignore to block build artifacts and large files - Remove old bootc package file - Add comprehensive project completion summary
This commit is contained in:
parent
9e9d4ea8d2
commit
d0d29139e5
52 changed files with 2994 additions and 162 deletions
61
justfile
61
justfile
|
|
@ -42,7 +42,7 @@ generate-bootable:
|
|||
-v $PWD/output:/output \
|
||||
-v /var/lib/containers/storage:/var/lib/containers/storage \
|
||||
quay.io/centos-bootc/bootc-image-builder:latest \
|
||||
--type iso,raw \
|
||||
--type qcow2 \
|
||||
--output /output \
|
||||
localhost/simple-cli:latest
|
||||
echo "Bootable image generated in output/"
|
||||
|
|
@ -57,7 +57,7 @@ generate-bootable-with-tools:
|
|||
-v $PWD/output:/output \
|
||||
-v /var/lib/containers/storage:/var/lib/containers/storage \
|
||||
quay.io/centos-bootc/bootc-image-builder:latest \
|
||||
--type iso,raw \
|
||||
--type qcow2 \
|
||||
--output /output \
|
||||
localhost/simple-cli:latest
|
||||
echo ""
|
||||
|
|
@ -310,3 +310,60 @@ create-ostree-deployment:
|
|||
echo " ./scripts/create-ostree-deployment.sh"
|
||||
echo ""
|
||||
echo "3. Exit and rebuild the bootable image"
|
||||
|
||||
# Build the container image with Particle-OS tools and SSH
|
||||
build-with-tools-ssh:
|
||||
#!/usr/bin/env bash
|
||||
echo "Building Simple CLI container image with Particle-OS tools and SSH..."
|
||||
echo "This will include: apt-ostree, deb-bootupd, bootc, and SSH server"
|
||||
podman build -f Containerfile -t localhost/simple-cli:latest .
|
||||
echo "Build complete: localhost/simple-cli:latest"
|
||||
echo ""
|
||||
echo "Testing tools and SSH..."
|
||||
podman run --rm localhost/simple-cli:latest verify-tools
|
||||
echo ""
|
||||
echo "SSH server is configured with:"
|
||||
echo " Username: root"
|
||||
echo " Password: particle-os"
|
||||
echo " Port: 22"
|
||||
|
||||
# Generate bootable qcow2 using deb-bootc-image-builder
|
||||
generate-qcow2:
|
||||
#!/usr/bin/env bash
|
||||
echo "Generating bootable qcow2 image using deb-bootc-image-builder..."
|
||||
echo "This will create a qcow2 disk image from the simple-cli container"
|
||||
echo ""
|
||||
echo "1. Building simple-cli container first..."
|
||||
just build-with-tools-ssh
|
||||
echo ""
|
||||
echo "2. Using pre-built bootc-image-builder in container to generate qcow2..."
|
||||
cd ../deb-bootc-image-builder
|
||||
podman run --rm --privileged \
|
||||
-v /var/lib/containers/storage:/var/lib/containers/storage \
|
||||
-v $PWD:/workspace \
|
||||
-w /workspace \
|
||||
localhost/simple-cli:latest \
|
||||
/workspace/bin/bootc-image-builder --type qcow2 --output /workspace/../simple-cli/simple-cli-bootable.qcow2 simple-cli:latest
|
||||
echo ""
|
||||
echo "✅ Bootable qcow2 image created: simple-cli-bootable.qcow2"
|
||||
echo "📱 You can now boot this image in QEMU or create a VM with it!"
|
||||
|
||||
# Full pipeline with SSH and qcow2 generation
|
||||
pipeline-with-ssh: build-with-tools-ssh test-tools generate-qcow2
|
||||
@echo "Full build pipeline with SSH and qcow2 generation completed"
|
||||
@echo ""
|
||||
@echo "🎉 Your Particle-OS tools are now integrated with SSH access!"
|
||||
@echo "📦 apt-ostree: Atomic package management"
|
||||
@echo "🔧 bootupd: Bootloader update management"
|
||||
@echo "📦 bootc: Container to bootable image conversion"
|
||||
@echo "🔑 SSH: Remote access enabled (root:particle-os)"
|
||||
@echo ""
|
||||
@echo "Generated files:"
|
||||
@echo " - Container: localhost/simple-cli:latest"
|
||||
@echo " - Bootable image: simple-cli-bootable.qcow2"
|
||||
@echo ""
|
||||
@echo "Next steps:"
|
||||
@echo "1. Test the container: just test-tools"
|
||||
@echo "2. Boot the qcow2 image in QEMU"
|
||||
@echo "3. SSH into the booted system"
|
||||
@echo "4. Create your Particle-OS variants"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue