forked from catalyst-team/catalyst
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
44 lines (35 loc) · 1.18 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
.PHONY: check-style codestyle check-docs docker docker-fp16 docker-dev docker-dev-fp16 install-from-source clean
check-style:
bash ./bin/_check_codestyle.sh -s
codestyle:
pre-commit run
check-docs:
bash ./bin/_check_docs.sh
docker: ./requirements/
echo building $${REPO_NAME:=catalyst-base}:$${TAG:=latest} ...
docker build \
-t $${REPO_NAME}:$${TAG} . \
-f ./docker/Dockerfile --no-cache
docker-fp16: ./requirements/
echo building $${REPO_NAME:=catalyst-base-fp16}:$${TAG:=latest} ...
docker build \
-t $${REPO_NAME}:$${TAG} . \
-f ./docker/Dockerfile-fp16 --no-cache
docker-dev: ./requirements/
echo building $${REPO_NAME:=catalyst-dev}:$${TAG:=latest} ...
docker build \
-t $${REPO_NAME}:$${TAG} . \
-f ./docker/Dockerfile-dev --no-cache
docker-dev-fp16: ./requirements/
echo building $${REPO_NAME:=catalyst-dev-fp16}:$${TAG:=latest} ...
docker build \
-t $${REPO_NAME}:$${TAG} . \
-f ./docker/Dockerfile-dev-fp16 --no-cache
install-from-source:
pip uninstall catalyst -y && pip install -e ./
clean:
rm -rf build/
docker rmi -f catalyst-base:latest
docker rmi -f catalyst-base-fp16:latest
docker rmi -f catalyst-dev:latest
docker rmi -f catalyst-dev-fp16:latest