forked from SeldonIO/seldon-core
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace api group machinelearning with machinelearning.seldon.io (Sel…
…donIO#1614) * Replace api group machinelearning with machinelearning.seldon.io Signed-off-by: glindsell <[email protected]> * Fix merge conflicts Signed-off-by: glindsell <[email protected]> * Replace api group in executor and some operator files Signed-off-by: glindsell <[email protected]> * Change import in executor Signed-off-by: glindsell <[email protected]> * update executor group references to api and client Signed-off-by: glindsell <[email protected]> * Fix merge conflict filepath redeclaration bug Signed-off-by: glindsell <[email protected]> * Add runtime argument to Dockerfile and Makefile Signed-off-by: glindsell <[email protected]> * Update imports from merge Signed-off-by: glindsell <[email protected]>
- Loading branch information
Showing
146 changed files
with
4,844 additions
and
1,938 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,32 @@ | ||
# Build the manager binary | ||
FROM golang:1.13 as builder | ||
ARG base=. | ||
|
||
WORKDIR /workspace | ||
# Copy the Go Modules manifests | ||
COPY go.mod go.mod | ||
COPY go.sum go.sum | ||
COPY proto/ proto/ | ||
COPY ${base}/go.mod go.mod | ||
COPY ${base}/go.sum go.sum | ||
COPY ${base}/proto/ proto/ | ||
COPY operator/ ../operator/ | ||
# cache deps before building and copying source so that we don't need to re-download as much | ||
# and so that source changes don't invalidate our downloaded layer | ||
RUN go mod download | ||
|
||
# Copy the go source | ||
COPY main.go main.go | ||
COPY api/ api/ | ||
COPY predictor/ predictor/ | ||
COPY logger/ logger/ | ||
COPY k8s/ k8s/ | ||
COPY ${base}/main.go main.go | ||
COPY ${base}/api/ api/ | ||
COPY ${base}/predictor/ predictor/ | ||
COPY ${base}/logger/ logger/ | ||
COPY ${base}/k8s/ k8s/ | ||
|
||
# Build | ||
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 GO111MODULE=on go build -a -o executor main.go | ||
|
||
# Use distroless as minimal base image to package the manager binary | ||
# Refer to https://github.com/GoogleContainerTools/distroless for more details | ||
FROM gcr.io/distroless/static:latest | ||
ARG base=. | ||
WORKDIR / | ||
COPY --from=builder /workspace/executor . | ||
COPY licenses/license.txt . | ||
COPY ${base}/licenses/license.txt . | ||
ENTRYPOINT ["/executor"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.