feat: improve VM command naming and add commit guidelines
This commit is contained in:
@@ -23,6 +23,7 @@ This file provides guidelines for AI coding agents operating within this reposit
|
|||||||
- **Domain**: Use `codecrispi.es` consistently across all environments
|
- **Domain**: Use `codecrispi.es` consistently across all environments
|
||||||
- **Password Policy**: Minimize password usage; prefer key-based authentication
|
- **Password Policy**: Minimize password usage; prefer key-based authentication
|
||||||
- **Error Handling**: Handle errors explicitly. Use Nix's error reporting mechanisms.
|
- **Error Handling**: Handle errors explicitly. Use Nix's error reporting mechanisms.
|
||||||
|
- **Commit Messages**: Use conventional commit style (`type: subject`). Avoid scopes like `(makefile)`. The subject should be in lowercase.
|
||||||
|
|
||||||
## Container Architecture
|
## Container Architecture
|
||||||
|
|
||||||
|
|||||||
13
Makefile
13
Makefile
@@ -1,7 +1,7 @@
|
|||||||
-include .env
|
-include .env
|
||||||
export
|
export
|
||||||
|
|
||||||
.PHONY: help deploy-cloud build-usb flash-usb local-vm test-vm clean status destroy-cloud opencode lint
|
.PHONY: help deploy-cloud build-usb flash-usb vm-run vm-build clean status destroy-cloud opencode lint
|
||||||
|
|
||||||
DOMAIN := $(or $(WORKSHOP_DOMAIN),codecrispi.es)
|
DOMAIN := $(or $(WORKSHOP_DOMAIN),codecrispi.es)
|
||||||
USB_DEVICE := $(or $(USB_DEVICE),/dev/sdX)
|
USB_DEVICE := $(or $(USB_DEVICE),/dev/sdX)
|
||||||
@@ -20,8 +20,9 @@ help:
|
|||||||
@echo " make test-usb - Test USB environment in QEMU"
|
@echo " make test-usb - Test USB environment in QEMU"
|
||||||
@echo ""
|
@echo ""
|
||||||
@echo "🖥️ Local Development:"
|
@echo "🖥️ Local Development:"
|
||||||
@echo " make local-vm - Start local VM (simulates USB environment)"
|
@echo " make vm-run - Start local VM (simulates USB environment)"
|
||||||
@echo " make test-vm - Test VM without GUI"
|
@echo " make vm - Alias for vm-run"
|
||||||
|
@echo " make vm-build - Test VM without GUI"
|
||||||
@echo " make clean - Clean build artifacts"
|
@echo " make clean - Clean build artifacts"
|
||||||
@echo ""
|
@echo ""
|
||||||
@echo "⚙️ Development:"
|
@echo "⚙️ Development:"
|
||||||
@@ -67,11 +68,13 @@ test-usb: build-usb
|
|||||||
-device virtio-net,netdev=net0 \
|
-device virtio-net,netdev=net0 \
|
||||||
-display gtk
|
-display gtk
|
||||||
|
|
||||||
local-vm:
|
vm-run:
|
||||||
@echo "🖥️ Starting workshop VM..."
|
@echo "🖥️ Starting workshop VM..."
|
||||||
nix run .#local-vm
|
nix run .#local-vm
|
||||||
|
|
||||||
test-vm:
|
vm: vm-run
|
||||||
|
|
||||||
|
vm-build:
|
||||||
@echo "🧪 Testing VM build..."
|
@echo "🧪 Testing VM build..."
|
||||||
nix build .#local-vm
|
nix build .#local-vm
|
||||||
@echo "✅ VM builds successfully"
|
@echo "✅ VM builds successfully"
|
||||||
|
|||||||
Reference in New Issue
Block a user