-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
54 lines (36 loc) · 1.07 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
# use the rest as arguments for targets
TARGET_ARGS := $(wordlist 2,$(words $(MAKECMDGOALS)),$(MAKECMDGOALS))
# ...and turn them into do-nothing targets
$(eval $(TARGET_ARGS):;@:)
-include .env
# containers
start:
sudo rm -rf .data/zk/* && docker-compose up -d
stop:
docker-compose stop
start-prod:
docker-compose -f docker-compose.yml -f docker-compose.prod.yml
rebuild:
docker-compose build --force-rm $(TARGET_ARGS)
logs:
docker-compose logs -f $(TARGET_ARGS)
exec:
docker-compose exec $(TARGET_ARGS)
bash:
docker-compose exec $(TARGET_ARGS) bash
zsh:
docker-compose exec $(TARGET_ARGS) zsh
clean:
docker-compose stop; docker-compose rm -svf
restart:
docker-compose stop $(TARGET_ARGS) && docker-compose start $(TARGET_ARGS)
clean-restart:
docker-compose stop $(TARGET_ARGS) && docker-compose rm -f $(TARGET_ARGS) && make rebuild $(TARGET_ARGS) && docker-compose up -d
bootstrap:
yarn bootstrap
run-catalog:
yarn bootstrap && python /code/packages/catalog/src/catalog/main.py
nodemon-catalog:
nodemon --exec make `run-catalog`
own:
sudo chown -R $(USER) ./