-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
35 lines (30 loc) · 1.15 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
lint:
@echo "${INFO}Linting...${NC}"
@export PIPENV_DONT_LOAD_ENV=1
@cd bothub-nlp-api \
&& PIPENV_DONT_LOAD_ENV=1 pipenv run lint \
&& echo "${SUCCESS}✔${NC} bothub-nlp-api" || echo "${DANGER}✖${NC} bothub-nlp-api"
@cd bothub-nlp-nlu-worker \
&& PIPENV_DONT_LOAD_ENV=1 pipenv run lint \
&& echo "${SUCCESS}✔${NC} bothub-nlp-nlu-worker" || echo "${DANGER}✖${NC} bothub-nlp-nlu-worker"
@cd bothub-nlp-nlu-worker-on-demand \
&& PIPENV_DONT_LOAD_ENV=1 pipenv run lint \
&& echo "${SUCCESS}✔${NC} bothub-nlp-nlu-worker-on-demand" || echo "${DANGER}✖${NC} bothub-nlp-nlu-worker-on-demand"
init_env:
@echo "${INFO}Starting init environment...${NC}"
@echo "SUPPORTED_LANGUAGES=en:en_core_web_md" >> .env
@echo "BOTHUB_ENGINE_URL=https://api.bothub.it" >> .env
@echo "ENGINE_PORT=8000" >> .env
@echo "${SUCCESS}Finish...${NC}"
start_development:
@echo "${INFO}Starting Build all project (Docker)...${NC}"
@docker-compose build --build-arg DOWNLOAD_SPACY_MODELS=en:en_core_web_md
@docker-compose up -d
@echo "${SUCCESS}Finish...${NC}"
# Utils
## Colors
SUCCESS = \033[0;32m
INFO = \033[0;36m
WARNING = \033[0;33m
DANGER = \033[0;31m
NC = \033[0m