forked from SeldonIO/seldon-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
60 lines (49 loc) · 1.49 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
SHELL := /bin/bash
SELDON_CORE_LOCAL_DIR:=$(shell pwd)
UNAME_S := $(shell uname -s)
ifeq ($(UNAME_S),Linux)
SELDON_CORE_VM_DIR:=$(shell echo $(SELDON_CORE_LOCAL_DIR)|sed -e 's|^/home/|/hosthome/|')
endif
ifeq ($(UNAME_S),Darwin)
SELDON_CORE_VM_DIR:=$(SELDON_CORE_LOCAL_DIR)
endif
notarget:
@echo need target
run_jupyter_notebook:
@jupyter-notebook --ip=127.0.0.1 --port=8888 --no-browser
list_jupyter_notebooks:
@jupyter notebook list
run_core_builder_in_host:
unset DOCKER_TLS_VERIFY && \
unset DOCKER_HOST && \
unset DOCKER_CERT_PATH && \
unset DOCKER_API_VERSION && \
docker run --rm -it \
-v $${HOME}/.docker:/root/.docker \
-v /var/run/docker.sock:/var/run/docker.sock \
-v $${HOME}/.m2:/root/.m2 \
-v $(SELDON_CORE_LOCAL_DIR):/work \
seldonio/core-builder:0.20 bash
run_core_builder_in_minikube:
eval $$(minikube docker-env) && \
docker run --rm -it \
-v /var/run/docker.sock:/var/run/docker.sock \
-v /home/docker/.m2:/root/.m2 \
-v $(SELDON_CORE_VM_DIR):/work \
seldonio/core-builder:0.20 bash
show_paths:
@echo "local: $(SELDON_CORE_LOCAL_DIR)"
@echo " vm: $(SELDON_CORE_VM_DIR)"
tmp/seldon_deployment.md:
docker run --rm \
-v $(PWD)/tmp:/out \
-v $(PWD)/cluster-manager/src/main/proto:/protos \
pseudomuto/protoc-gen-doc \
-I/protos \
--doc_opt=markdown,seldon_deployment.md \
/protos/seldon_deployment.proto
run_python_builder:
docker run --rm -it \
--user=$$(id -u) \
-v $(SELDON_CORE_LOCAL_DIR):/work \
seldonio/python-builder:0.2 bash