-
Notifications
You must be signed in to change notification settings - Fork 41
/
Makefile
54 lines (39 loc) · 1.09 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
53
54
dco = $(or ${DCO}, docker-compose)
help:
@echo " make up - start containers"
@echo " make down - stop containers"
@echo " make purge - stop containers and prune volumes"
@echo " make recreate - stop containers, prune volumes and recreate/build containers"
@echo " make test - run unit tests"
@echo " make lint - run to lint (style check) repo"
build:
./scripts/build.sh
init:
${dco} up django_volumes
down:
${dco} down --remove-orphans
up: init
until ${dco} up -d nginx; do sleep 30; done;
pull:
${dco} pull
ps:
${dco} ps
restart: down up
purge: down
docker volume prune -f
recreate: purge build init
${dco} up -d --force-recreate
refresh_repo: # This is destructive. It will delete any modifications in ./deps and ./mapstory.
git pull
rm -r deps mapstory
git checkout -- mapstory
git submodule update --init --recursive
refresh_deploy: refresh_repo build down up # This is also destructive.
logs:
${dco} logs -f
test:
${dco} run --rm django --test
${dco} run --rm composer --test
lint:
${dco} run --rm composer --lint
${dco} run --rm django --lint