-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
62 lines (52 loc) · 1.66 KB
/
Makefile
File metadata and controls
62 lines (52 loc) · 1.66 KB
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
.DEFAULT_GOAL := help
.SILENT :
BIYellow = \033[1;93m
GREEN = \033[0;32m
BIGreen = \033[1;92m
NC = \033[0m
## Display this help dialog
help:
echo "This Makefile help you using yout local development environment."
echo "Usage: make <action>"
awk '/^[a-zA-Z\-\_0-9]+:/ { \
separator = match(lastLine, /^## --/); \
if (separator) { \
helpCommand = substr($$1, 0, index($$1, ":")-1); \
printf "\t${BIYellow}= %s =${NC}\n", helpCommand; \
} \
helpMessage = match(lastLine, /^## (.*)/); \
if (helpMessage) { \
helpCommand = substr($$1, 0, index($$1, ":")); \
helpMessage = substr(lastLine, RSTART + 3, RLENGTH); \
if(helpMessage!="--") { \
printf "\t${GREEN}%-20s${NC} %s\n", helpCommand, helpMessage; \
} \
} \
} \
{ lastLine = $$0 }' $(MAKEFILE_LIST)
.PHONY: help
## Build the docker image fteam:php
docker-build:
docker build -t fteam:php .
## Save the builded docker image /build/fteam.tar.gz
docker-save:
docker save fteam:php | gzip > build/fteam.tar.gz
## Save the builded docker image /build/fteam.tar.gz
docker-load:
docker load < build/fteam.tar.gz
## Run milestone command
run-milestone:
docker run --env-file .env -it fteam:php /app/bin/console celerity:milestone
## Run milestone command with snapshot parameter
run-milestone-snapshot:
docker run --env-file .env -it fteam:php /app/bin/console celerity:milestone --snapshot
## Run issue command
run-issue:
docker run --env-file .env -it fteam:php /app/bin/console celerity:issue
## Run celerity command
run-celerity:
docker run --env-file .env -it fteam:php /app/bin/console celerity:celerity
## Compile the app in a .phar archive
phar:
rm -rf ./cache/* ./log/*
box compile -vvv