initial
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
# mcma-bootstrap — installer & lifecycle for self-hosted MCMA.
|
||||
#
|
||||
# All real logic lives in the shell scripts; this Makefile is a thin entrypoint.
|
||||
# `make` or `make help` lists targets.
|
||||
|
||||
SHELL := /bin/bash
|
||||
HERE := $(dir $(abspath $(lastword $(MAKEFILE_LIST))))
|
||||
|
||||
.DEFAULT_GOAL := help
|
||||
.PHONY: help deploy update up down logs status clean
|
||||
|
||||
help: ## Show this help
|
||||
@grep -hE '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) \
|
||||
| awk 'BEGIN{FS=":.*?## "}{printf " \033[36m%-10s\033[0m %s\n", $$1, $$2}'
|
||||
|
||||
deploy: ## Run the interactive installer (fresh install or update menu)
|
||||
@bash "$(HERE)deploy.sh"
|
||||
|
||||
update: ## Pull fresh images of the current tag and restart (no wizard)
|
||||
@bash "$(HERE)deploy.sh" --update
|
||||
|
||||
up: ## Start the stack from the existing config
|
||||
@bash "$(HERE)deploy.sh" --up
|
||||
|
||||
down: ## Stop the stack (containers only; data is kept)
|
||||
@bash "$(HERE)deploy.sh" --down
|
||||
|
||||
logs: ## Tail logs from all services
|
||||
@bash "$(HERE)deploy.sh" --logs
|
||||
|
||||
status: ## Show container status + health
|
||||
@bash "$(HERE)deploy.sh" --status
|
||||
|
||||
clean: ## Stop and remove generated config (prompts before deleting data volumes)
|
||||
@bash "$(HERE)deploy.sh" --clean
|
||||
Reference in New Issue
Block a user