Repository navigation
Expand file tree
/
Copy pathMakefile
More file actions
60 lines (46 loc) · 1.41 KB
/
Copy pathMakefile
File metadata and controls
60 lines (46 loc) · 1.41 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
.DEFAULT_GOAL := help
.PHONY: help build build-core build-nginx build-modules build-guard bake up down logs shellcheck clean prune
help:
@echo "Usage: make <target>"
@echo ""
@echo "Build targets:"
@echo " build Build all images via docker compose"
@echo " build-core Build misp-core only"
@echo " build-nginx Build misp-nginx only"
@echo " build-modules Build misp-modules only"
@echo " build-guard Build misp-guard only"
@echo " bake Build all images via docker buildx bake"
@echo ""
@echo "Runtime targets:"
@echo " up Start all services in background"
@echo " down Stop all services"
@echo " logs Tail logs from all services"
@echo ""
@echo "Utility targets:"
@echo " shellcheck Lint shell scripts"
@echo " clean Stop services and remove volumes"
@echo " prune Docker system prune (cleanup)"
build:
docker compose build
build-core:
docker compose build misp-core
build-nginx:
docker compose build misp-nginx
build-modules:
docker compose build misp-modules
build-guard:
docker compose build misp-guard
bake:
docker buildx bake
up:
docker compose up -d
down:
docker compose down
logs:
docker compose logs -f
shellcheck:
shellcheck core/files/*.sh core/files/kubernetes/*.sh nginx/files/*.sh guard/files/*.sh
clean:
docker compose down -v --remove-orphans
prune:
docker system prune -af --volumes