-
Notifications
You must be signed in to change notification settings - Fork 10
/
Makefile
65 lines (47 loc) · 1.61 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
PHONY: install build push
install:
cd backend && make install
cd frontend && make install
backup:
scripts/backup-db.sh
clean:
read -p "Warning - it will remove all the previews, database and logs. ARE YOU SURE? " -n 1 -r
echo # (optional) move to a new line
if [[ $REPLY =~ ^[Yy]$ ]]
then
docker-compose down -v
sudo rm -rf data/db/* data/preview/* data/rabbitmq/* data/log/*
fi
build:
cd backend && make build
cd frontend && make build
rebuild:
docker compose down worker frontend transcoder watchdog webapp
cd backend && make build
cd frontend && make build
docker compose up -d
push:
cd backend && make push
cd frontend && make push
run-dev-support:
docker compose up -d redis db adminer rabbitmq
run-dev-worker:
docker compose up -d worker
down:
docker compose down
up:
docker compose up -d
up-storage:
docker compose up -d redis db adminer rabbitmq
download-model:
# this is only required if you want to develop locally and only once in the beginning
wget -O backend/ssd.tgz "https://tfhub.dev/google/openimages_v4/ssd/mobilenet_v2/1?tf-hub-format=compressed"
mkdir backend/models/facial
wget https://github.com/serengil/deepface_models/releases/download/v1.0/gender_model_weights.h5
mv gender_model_weights.h5 backend/models/facial/
wget https://github.com/serengil/deepface_models/releases/download/v1.0/age_model_weights.h5
mv age_model_weights.h5 backend/models/facial/
wget https://github.com/serengil/deepface_models/releases/download/v1.0/facial_expression_model_weights.h5
mv facial_expression_model_weights.h5 backend/models/facial/
make-dev-dirs:
scripts/setup-dev-dirs.sh