-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
53 lines (38 loc) · 1.45 KB
/
Makefile
File metadata and controls
53 lines (38 loc) · 1.45 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
.PHONY: install docker-build docker-push docker-pull
install:
virtualenv -p /usr/bin/python3 venv3
. venv3/bin/activate; pip install -r requirements.txt
mkdir -p ./static/images/
wget https://github.com/Semantic-Org/Semantic-UI-CSS/archive/master.zip -O static/master.zip
cd ./static && unzip master.zip
npm install jade --save
build: jade
@echo "\n ---------------------------"
@echo " * Building botapad "
@echo " ---------------------------\n"
cd ../application/src/ && make build
cp -r ../application/src/static/bower_components/polymer static/
cp ../application/src/static/*.html static/
cp ../application/src/static/*.js static/
jade:
@echo "\n ---------------------------"
@echo " * Building flask templates"
@echo " ---------------------------\n"
cd ./templates && node ../node_modules/jade/bin/jade.js -P *.jade
rundev:
. venv3/bin/activate; export APP_DEBUG=false; export FLASK_APP=botapadapp.py ;export FLASK_DEBUG=1; flask run --port 5002
docker-build:
@echo "\n --------------------"
@echo " * Building Docker images"
@echo " --------------------\n"
docker-compose -f docker-compose.yml build
docker-push:
@echo "\n --------------------"
@echo " * Pushing images to PDG registry"
@echo " --------------------\n"
docker-compose -f docker-compose.yml push
docker-pull:
@echo "\n --------------------"
@echo " * Pulling images from PDG registry"
@echo " --------------------\n"
docker-compose -f docker-compose.yml pull