Skip to content

Commit

Permalink
Added kubebuilder boilerplate (kserve#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ellis Bigelow authored and k8s-ci-robot committed Apr 3, 2019
1 parent dc5be66 commit 81f8b7c
Show file tree
Hide file tree
Showing 7,616 changed files with 2,596,204 additions and 2 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
24 changes: 24 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@

# Binaries for programs and plugins
*.exe
*.exe~
*.dll
*.so
*.dylib
bin

# Test binary, build with `go test -c`
*.test

# Output of the go coverage tool, specifically when used with LiteIDE
*.out

# Kubernetes Generated files - skip generated files, except for vendored files

!vendor/**/zz_generated.*

# editor and IDE paraphernalia
.idea
*.swp
*.swo
*~
17 changes: 17 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Build the manager binary
FROM golang:1.10.3 as builder

# Copy in the go src
WORKDIR /go/src/kfserving
COPY pkg/ pkg/
COPY cmd/ cmd/
COPY vendor/ vendor/

# Build
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -o manager kfserving/cmd/manager

# Copy the controller-manager into a thin image
FROM ubuntu:latest
WORKDIR /
COPY --from=builder /go/src/kfserving/manager .
ENTRYPOINT ["/manager"]
Loading

0 comments on commit 81f8b7c

Please sign in to comment.