Skip to content

Commit d8430a4

Browse files
committed
Update makefile
1 parent 4e2139c commit d8430a4

File tree

2 files changed

+21
-16
lines changed

2 files changed

+21
-16
lines changed

Makefile

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
MAKEFLAGS += -j1
44

55
PYTHON=python3
6+
PIP=pip3
67
PYLINT=pylint
78
PYTESTS=pytest
89
COVERAGE=coverage
@@ -25,7 +26,7 @@ test_coverage: check_formatting
2526
@echo "\033[95m\n\nCoverage successful! View the output at file://htmlcov/index.html.\n\033[0m"
2627

2728
install:
28-
pip install -e .
29+
$(PIP) install -e .
2930

3031
lint: check_formatting
3132
-$(PYLINT) --output-format=json superannotate/ | pylint-json2html -o pylint.html
@@ -44,3 +45,22 @@ dist:
4445

4546
check_formatting:
4647
yapf -p -r --diff superannotate
48+
49+
docker_run_dev_env: docker_pull_dev_env
50+
docker run -it -p 8888:8888 \
51+
-v ${HOME}/.superannotate:/root/.superannotate \
52+
-v $(pwd):/root/superannotate-python-sdk \
53+
superannotate/pythonsdk-dev-env
54+
55+
docker_run_dev_env_local_copy: docker_build_dev_env_from_local_copy
56+
docker run -it -p 8888:8888 \
57+
-v ${HOME}/.superannotate:/root/.superannotate \
58+
-v $(pwd):/root/superannotate-python-sdk \
59+
superannotate/pythonsdk-dev-env \
60+
bash -c "pip install -e superannotate-python-sdk && jupyter lab --allow-root --NotebookApp.token='' --NotebookApp.password='' --no-browser --ip 0.0.0.0"
61+
62+
docker_build_dev_env_from_local_copy:
63+
docker build -t superannotate/pythonsdk-dev-env:latest -f Dockerfile_dev_env .
64+
65+
docker_pull_dev_env:
66+
docker pull superannotate/pythonsdk-dev-env:latest

run_dev_env_in_container.sh

Lines changed: 0 additions & 15 deletions
This file was deleted.

0 commit comments

Comments
 (0)