Skip to content

Commit

Permalink
Added proto conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
axsaucedo authored and seldondev committed Nov 17, 2020
1 parent 7b2482a commit 04f42b6
Show file tree
Hide file tree
Showing 4 changed files with 11,683 additions and 2 deletions.
11 changes: 9 additions & 2 deletions incubating/wrappers/s2i/cpp/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,21 @@ VERSION := 0.0.1
IMAGE_REGISTRY = docker.io/seldonio
IMAGE_NAME = ${IMAGE_REGISTRY}/s2i-cpp-build:${VERSION}

proto-build:
protoc -I=${SELDON_CORE_DIR}/proto -I=${SELDON_CORE_DIR}/proto/tensorflow \
--cpp_out=core/ \
${SELDON_CORE_DIR}/proto/prediction.proto
mv core/prediction.pb.h core/src/include/SeldonProto.hpp
mv core/prediction.pb.cc core/src/SeldonProto.cpp

build:

docker-build:
docker build -f Dockerfile \
-t $(IMAGE_NAME) \
--build-arg BASE_IMAGE_NAME=${BASE_IMAGE_NAME} \
--build-arg BASE_IMAGE_TAG=${BASE_IMAGE_TAG} \
./

push:
docker-push:
docker push $(IMAGE_NAME)

Loading

0 comments on commit 04f42b6

Please sign in to comment.