forked from ansible/galaxy-dev
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
52 lines (39 loc) · 1.1 KB
/
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
40
41
42
43
44
45
46
47
48
49
50
51
52
define HELP_MESSAGE =
Make targets:
Common:
help - Show this message and exit.
Docker commands:
docker/build - Build docker images
docker/up - Start docker environment in detached mode.
docker/logs - Display docker environment logs.
docker/down - Stop and remove containers.
docker/destroy - Stop and remove containers and data volumes.
docker/run-migrations - Run migrations in docker environment.
endef
export HELP_MESSAGE
.PHONY: help
help:
@echo "$$HELP_MESSAGE"
# Docker commands
.PHONY: docker/build
docker/build:
docker-compose build
.PHONY: docker/rebuild
docker/rebuild:
docker-compose build --no-cache
.PHONY: docker/up
docker/up:
docker-compose up --build -d
.PHONY: docker/logs
docker/logs:
docker-compose logs -f
.PHONY: docker/down
docker/down:
docker-compose down
.PHONY: docker/destroy
docker/destroy:
docker-compose down --volumes
.PHONY: docker/run-migrations
docker/run-migrations:
docker-compose run --rm pulp-api manage migrate
docker-compose run --rm galaxy-api manage migrate