-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathMakefile
39 lines (28 loc) · 990 Bytes
/
Makefile
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
COMPOSE_FILE = docker-compose.yml
.PHONY: help build up populate test down clean
help:
@echo "============================="
@echo " PGQueuer Makefile Commands"
@echo "============================="
@echo " build Build Docker images"
@echo " up Start pgq container in background"
@echo " populate Run the populate service"
@echo " test Bring everything up, run tests, then exit"
@echo " down Stop and remove containers"
@echo " clean Remove containers, networks, volumes, and images"
build:
docker compose -f $(COMPOSE_FILE) build
up:
docker compose -f $(COMPOSE_FILE) up db
db:
docker compose -f $(COMPOSE_FILE) up db populate
populate:
docker compose -f $(COMPOSE_FILE) run --rm populate
test:
docker compose -f $(COMPOSE_FILE) run --rm test
benchmark:
docker compose -f $(COMPOSE_FILE) run --rm benchmark
down:
docker compose -f $(COMPOSE_FILE) down
clean:
docker compose -f $(COMPOSE_FILE) down --rmi all --volumes --remove-orphans