-
Notifications
You must be signed in to change notification settings - Fork 7
/
Makefile
44 lines (35 loc) · 1.3 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-codestyle check-docs codestyle docker docker-fp16 docker-dev docker-dev-fp16 install-from-source clean
check-codestyle:
bash ./bin/codestyle/_check_codestyle.sh -s
check-docs:
bash ./bin/codestyle/_check_docs.sh
codestyle:
pre-commit run
docker: ./requirements/
echo building $${REPO_NAME:-catalyst-base}:$${TAG:-latest} ...
docker build \
-t $${REPO_NAME:-catalyst-base}:$${TAG:-latest} . \
-f ./docker/Dockerfile --no-cache
docker-fp16: ./requirements/
echo building $${REPO_NAME:-catalyst-base-fp16}:$${TAG:-latest} ...
docker build \
-t $${REPO_NAME:-catalyst-base-fp16}:$${TAG:-latest} . \
-f ./docker/Dockerfile-fp16 --no-cache
docker-dev: ./requirements/
echo building $${REPO_NAME:-catalyst-dev}:$${TAG:-latest} ...
docker build \
-t $${REPO_NAME:-catalyst-dev}:$${TAG:-latest} . \
-f ./docker/Dockerfile-dev --no-cache
docker-dev-fp16: ./requirements/
echo building $${REPO_NAME:-catalyst-dev-fp16}:$${TAG:-latest} ...
docker build \
-t $${REPO_NAME:-catalyst-dev-fp16}:$${TAG:-latest} . \
-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