-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
51 lines (34 loc) · 940 Bytes
/
Makefile
File metadata and controls
51 lines (34 loc) · 940 Bytes
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
# The very most basicest
.PHONY: build docker-build clean deploy
init:
echo "Init"
venv: venv/bin/activate
. venv/bin/activate
venv/bin/activate: monkeynn/requirements.txt
test -d venv || python3 -m venv venv
test:
pytest
perftest: test
echo "Perftest"
doc: Thesis/Thesis.pdf
echo "Doc"
build: docker-build
docker-build:
docker build -t flask-sample-one:latest -f Dockerfile.alpine .
docker-python:
docker build -t python374 -f Dockerfile.ubuntu .
docker-python-bash:
docker run -it python374 bash
clean:
yes | docker system prune
-docker rmi flask-sample-one
superclean:
deploy:
docker run -d -p 8000:8000 flask-sample-one
Thesis/Thesis.pdf: Thesis/*.rmd
Rscript -e "rmarkdown::render('Thesis/Thesis.rmd',output_file='Thesis.pdf')"
readdoc:
evince /home/chipmonkey/repos/TrilaterationIndex/Thesis/Thesis.pdf
# Apt packages required for python and R dependencies
apt:
apt install libudunits2-dev libgdal-dev