-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
73 lines (51 loc) · 1.52 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
#
#
# Vetulus Makefile
#
#
help:
@echo "Vetulus Target rules:"
@echo
@echo " start Runs docker composition"
@echo " stop Cleans and stops docker composition"
@echo " restart Restartes containers from docker composition"
@echo " logs Follow Vetulus logs"
@echo " clean Cleans project compilation"
@echo " test Runs Vetulus tests"
@echo " shell Run a shell inside Vetulus container"
@echo " compile Compile all modules"
@echo " build Builds docker image locally"
@echo " image Merges master into docker branch and pushes to remote"
start:
$(info Running Vetulus services)
@docker-compose up -d
stop:
$(info Stoping Vetulus services)
@docker-compose down
restart:
$(info Restarting Vetulus services)
@docker-compose restart
logs:
@docker logs --tail 100 --follow vetulus
clean:
$(info Cleaning project)
@docker exec -it vetulus bash -c 'find {manager,config,services} -type d -iname build | xargs rm -rvf'
test:
$(info Running Vetulus tests)
@docker exec -it vetulus scripts/run_tests.sh
shell:
@docker exec -it vetulus bash
compile:
@docker exec -it vetulus scripts/compile.sh
build: Dockerfile
$(info Building docker image locally)
@time docker build . --tag vetulus
image:
$(info Triggers docker image build)
@git checkout master;
@git pull origin master --rebase;
@git checkout docker;
@git pull origin docker --rebase;
@git merge master --no-commit;
@git push origin docker;
@git checkout master;