-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathMakefile
More file actions
64 lines (51 loc) · 1.51 KB
/
Makefile
File metadata and controls
64 lines (51 loc) · 1.51 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
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
61
62
63
64
SHELL := bash
.PHONY: install-deps
install-deps:
@echo "==> Installing dependencies"
go install github.com/goreleaser/goreleaser@latest
.PHONY: build
build:
@echo "==> Build Modelbox"
goreleaser release --snapshot --rm-dist
.PHONY: sync-docker-hub
sync-docker-hub:
@echo "==> Sync with docker hub"
docker push modelboxdotio/modelbox:0.0.1-next-arm64v8
docker push modelboxdotio/modelbox:0.0.1-next-amd64
docker manifest create modelboxdotio/modelbox:latest modelboxdotio/modelbox:0.0.1-next-arm64v8 modelboxdotio/modelbox:0.0.1-next-amd64
docker manifest push --purge modelboxdotio/modelbox:latest
.PHONY: test
test-server:
@echo "==> Test Modelbox Server"
go test ./server/storage/...
.PHONY: install-sdk-py
install-sdk-py:
@echo "==> Installing Python SDK"
cd sdk-py && pip install .
.PHONY: test-sdk-py
test-sdk-py:
@echo "==> Testing python sdk"
cd sdk-py && pip install .
cd sdk-py && python tests/test_modelbox_api.py
.PHONY: build-sdk-py
build-sdk-py:
@echo "==> Building modelbox py distribution "
cd sdk-py && python -m build .
.PHONY: upload-sdk-py-test
upload-sdk-py-test:
@echo "===> Uploading to test.pypi"
pip install twine
cd sdk-py && twine upload --repository testpypi dist/*
.PHONY: upload-sdk-py
upload-sdk-py:
@echo "===> Uploading to pypi"
pip install twine
cd sdk-py && twine upload dist/*
.PHONY: update-protos
update-protos:
@echo "==> Updating protos"
./proto/gen_proto.sh
.PHONY: gen-static
gen-static:
@echo "==> Generating static files"
cd cmd/modelbox && go-bindata assets/...