Skip to content

Commit 3a71dc5

Browse files
committed
Initialize project with 'kubebuilder'
1 parent 669ded7 commit 3a71dc5

File tree

7,046 files changed

+2505952
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

7,046 files changed

+2505952
-0
lines changed

Dockerfile

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Build the manager binary
2+
FROM golang:1.10.3 as builder
3+
4+
# Copy in the go src
5+
WORKDIR /go/src/k8s-db-controller
6+
COPY pkg/ pkg/
7+
COPY cmd/ cmd/
8+
COPY vendor/ vendor/
9+
10+
# Build
11+
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -o manager k8s-db-controller/cmd/manager
12+
13+
# Copy the controller-manager into a thin image
14+
FROM ubuntu:latest
15+
WORKDIR /root/
16+
COPY --from=builder /go/src/k8s-db-controller/manager .
17+
ENTRYPOINT ["./manager"]

0 commit comments

Comments
 (0)