Repository navigation
Expand file tree
/
Copy pathMakefile
More file actions
80 lines (54 loc) · 2.69 KB
/
Copy pathMakefile
File metadata and controls
80 lines (54 loc) · 2.69 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
# ==============================================================================
# GHOST MACHINES — DEVELOPER WORKFLOW RUNNER
# ==============================================================================
.DEFAULT_GOAL := help
SHELL := /bin/bash
.PHONY: help test lint docs docs-check video build-ubuntu build-debian build-alpine build-arch build-all start stop status logs restart prebuilt clean snapshot restore setup-host
help: ## Show this help message
@echo "=================================================="
@echo " GHOST MACHINES: TASK RUNNER"
@echo "=================================================="
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-18s\033[0m %s\n", $$1, $$2}'
test: ## Run master automated test suite (all milestones)
@./tests/run_all.sh
lint: ## Run static analysis & ShellCheck linting
@./tests/test_lint.sh
docs: ## Regenerate the static documentation site from docs/*.md
@python3 tools/build_site.py
docs-check: ## Verify docs links, examples, facts and generated site
@./tests/test_docs.sh
video: ## Re-render the 3-minute tour (HyperFrames)
@cd video/ghost-machines-explainer && npx hyperframes check && npx hyperframes render
build-ubuntu: ## Build Ubuntu Master Template
docker build -t ubuntu-template:latest -f Dockerfile .
build-debian: ## Build Debian Slim Template
docker build -t debian-template:latest -f Dockerfile.debian .
build-alpine: ## Build Alpine Linux Template
docker build -t alpine-template:latest -f Dockerfile.alpine .
build-arch: ## Build Arch Linux Template
docker build -t arch-template:latest -f Dockerfile.arch .
build-all: build-ubuntu build-debian build-alpine build-arch ## Build all 4 OS engine images
start: ## Launch interactive engine & mode deployment
@./start.sh
stop: ## Stop and remove containers (work in mounts/ is kept)
@./start.sh stop
status: ## Show container state, SSH ports and image in use
@./start.sh status
logs: ## Follow container logs
@./start.sh logs
restart: ## Restart existing containers
@./start.sh restart
prebuilt: ## Pull and run a GHCR image (make prebuilt ENGINE=debian MODE=single)
@./start.sh --prebuilt "$(or $(ENGINE),ubuntu)" -m "$(or $(MODE),single)"
clean: ## Interactive or headless environment cleanup
@./clean.sh
snapshot: ## Create smart snapshot with cache exclusions & SHA-256
@./snapshot.sh
restore: ## Restore workspace snapshot with integrity check & atomic rollback
@./restore.sh
setup-host: ## Install host system dependencies (LXCFS, Docker)
@./setup-host.sh
tenant-list: ## List all configured multi-tenant workspaces
@./tenant.sh list
tenant-stats: ## Live CPU/RAM metrics for active tenant workspaces
@./tenant.sh stats