Skip to content

Commit

Permalink
Migrate KFServing to Go Module (kserve#796)
Browse files Browse the repository at this point in the history
* delete vendor

* Fix codegen

* Add go mod

* Fix status map type

* Fix status test

* Fix url address

* Fix url address test

* Pin controller tools version

* Remove address hack

* Fix dockerfile for go mod

* Update generated code

* Fix unit tests

* Fix dockerfile

* Fix openapi gen

* Copy go mod file

* Remove resource validation

* Increase timeout

* Add comment for update-codegen.sh

* Fix controller gen version

* Update api docs

* Remove generate from test target

* Update developer guide for GO MOD

* Fix rbac role name

* Add object selector

* Fix addressable type

* Fix addressable type

* Fix status map

* Generate swagger.json

* Fix status validation

* Review comments

* Clean up dependency
  • Loading branch information
yuzisun authored Jun 9, 2020
1 parent 5b30b87 commit f31f382
Show file tree
Hide file tree
Showing 18,266 changed files with 2,716 additions and 4,794,889 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
6 changes: 4 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@ FROM golang:1.13.0 as builder
# Copy in the go src
WORKDIR /go/src/github.com/kubeflow/kfserving
COPY cmd/ cmd/
COPY vendor/ vendor/
COPY pkg/ pkg/
COPY go.mod go.mod
COPY go.sum go.sum

RUN go mod download
# Build
RUN if [ "$(uname -m)" = "ppc64le" ]; then \
CGO_ENABLED=0 GOOS=linux GOARCH=ppc64le go build -a -o manager ./cmd/manager; \
Expand All @@ -17,7 +19,7 @@ RUN if [ "$(uname -m)" = "ppc64le" ]; then \
fi

# Copy the controller-manager into a thin image
FROM ubuntu:latest
FROM gcr.io/distroless/static:latest
WORKDIR /
COPY third_party/ third_party/
COPY --from=builder /go/src/github.com/kubeflow/kfserving/manager .
Expand Down
Loading

0 comments on commit f31f382

Please sign in to comment.