forked from EngineersBox/NewsAggregator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
32 lines (24 loc) · 735 Bytes
/
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
DOCKER_BUILD_NAME:=elasticsearch-ui
VUE_APP_PORT:=8080
FLASK_APP_PORT:=3001
GU_WORKER_COUNT:=4
.PHONY: install compose_build compose_up compose_down install_ansible install_all create_indexes
install_all: install install_ansible
install:
@python3.8 -m pip install --upgrade pip
@python3.8 -m pip install --no-cache-dir -r requirements.txt
@python3.8 -m spacy download en_core_web_sm
@cd frontend && npm i
compose_build:
@docker-compose build
compose_up:
@docker-compose up -d
compose_down:
@docker-compose down
install_ansible:
@apt update -y
@apt install software-properties-common -y
@apt-add-repository -yu ppa:ansible/ansible
@apt install ansible -y
create_indexes:
@cd index_datas && python3.8 import_datas.py