-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
34 lines (24 loc) · 1.2 KB
/
Copy pathMakefile
File metadata and controls
34 lines (24 loc) · 1.2 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
build: build_pip
sudo docker build -t feedoo .
build_fast:
sudo docker build -t feedoofast -f dockerfile_fast .
unittest: build
sudo docker run -it --rm --net=host --name feedoo feedoo python3 -m unittest discover -s /root/tests -p "test_*.py"
fast_unittest: build_fast
sudo docker run -it --rm -v $(shell pwd)/tests:/root/tests -v $(shell pwd)/feedoo:/usr/local/lib/python3.8/dist-packages/feedoo --name feedoo feedoofast python3 -m unittest discover -s /root/tests -p "test_*.py"
run: build
sudo docker run -it --rm --net=host -v $(shell pwd)/db:/db --name feedoo feedoo feedoo -v
profile: build
sudo docker run -it --rm --net=host -v $(shell pwd)/db:/db --name feedoo feedoo feedoo -v -c /etc/feedoo/benchmark.yaml
#sudo docker run -it --rm --net=host -v $(shell pwd)/db:/db --name feedoo feedoo python3 -m cProfile -o /db/out.profile -m feedoo.feedoo -v -c /etc/feedoo/benchmark.yaml
clear:
docker images -a | grep none | grep -E -o "[0-9a-f]{12,12}" | xargs docker rmi -f
build_pip:
python3 setup.py sdist
python3 setup.py bdist_wheel
rethinkdb:
docker run --rm -p 8080:8080 -p 28015:28015 --name rethinkdb -d rethinkdb
clean_pip:
rm -rf dist/ build/ *.egg-info/
htop:
sudo docker exec -it feedoo htop