-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMakefile
37 lines (26 loc) · 985 Bytes
/
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
PROJECT_ROOT_DIR := $(shell dirname $(realpath $(firstword $(MAKEFILE_LIST))))
format-java:
./gradlew spotlessApply
lint-java:
./gradlew spotlessCheck
compile:
./gradlew clean compileJava
test-all:
./gradlew test
image:
./gradlew jib
# SDK
bufbuild-image:
docker build -f bufbuild.Dockerfile . -t caraml-store-bufbuild:build
# LegacyJobService is required on server side for backward compatibility with old clients but not required for the new SDK
bufbuild-proto:
docker run --volume "${PWD}:/caraml-store" --workdir /caraml-store/caraml-store-protobuf/src/main/proto caraml-store-bufbuild:build generate --template buf.gen.sdk.yaml --exclude-path feast/core/LegacyJobService.proto
compile-protos-py:
docker run -v ${PROJECT_ROOT_DIR}:/local protoc
install-python-sdk-local:
pip install -e caraml-store-sdk/python
package-python-sdk:
cd caraml-store-sdk/python; \
pip install -r requirements-build.txt; \
rm -rf build dist; \
python setup.py sdist bdist_wheel