-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
56 lines (38 loc) · 1.89 KB
/
Copy pathMakefile
File metadata and controls
56 lines (38 loc) · 1.89 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
# ==============================================================================
# GHOST MACHINES — DEVELOPER WORKFLOW RUNNER
# ==============================================================================
.DEFAULT_GOAL := help
SHELL := /bin/bash
.PHONY: help test lint build-ubuntu build-debian build-alpine build-arch build-all start 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
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
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