-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathMakefile
More file actions
50 lines (36 loc) · 1.13 KB
/
Copy pathMakefile
File metadata and controls
50 lines (36 loc) · 1.13 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
help:
@cat $(MAKEFILE_LIST) | docker run --rm -i --platform linux/amd64 xanders/make-help
export COMPOSE_BAKE=1
compose = docker compose -f compose.yaml
all: clean build run
# Start all services using prod config (containers containing sources)
run: stop
@$(compose) up --force-recreate
start: run
up: run
# Stop all services
stop:
@$(compose) down --remove-orphans
down: stop
# Remove services, volumes, and locally built images
clean:
@$(compose) down --volumes --remove-orphans --rmi local
# Remove services, volumes, and all images
cleanall:
@$(compose) down --volumes --remove-orphans --rmi all
# Build all container images
build:
@$(compose) build
# Push container images to remote registry
push:
@$(compose) push
# Start all services for development using Tilt for live container updates
tilt:
@tilt up
@$(compose) down
# Start all services with processes in containers, but mounted source files on host
mounted: down
@$(compose) -f compose-mounts.yaml up --force-recreate --build
dev:
@echo 'Please switch to using new target: ${MAKE} mounted'
.PHONY: help run start up stop down clean cleanall build push tilt mounted dev