-
Notifications
You must be signed in to change notification settings - Fork 103
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Increase golangci-lint timeout from 1m to 3m I found that on lower powered ARM machines when trying to build Kudo a longer timeout was needed to complete. * Introduce ARM64 docker build file * Add multi-platform build and push support to Makefile Signed-off-by: Shane Utt <shaneutt@linux.com>
- Loading branch information
Showing
4 changed files
with
50 additions
and
11 deletions.
There are no files selected for viewing
File renamed without changes.
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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Build the manager binary | ||
FROM golang:1.14 as builder | ||
|
||
# Setting arguments | ||
ARG ldflags_arg | ||
|
||
# Copy in the go src | ||
WORKDIR /go/src/github.com/kudobuilder/kudo | ||
COPY pkg/ pkg/ | ||
COPY cmd/ cmd/ | ||
COPY go.mod go.mod | ||
COPY go.sum go.sum | ||
ENV GO111MODULE on | ||
|
||
# Build with ldflags set | ||
RUN CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build -a -o manager \ | ||
-ldflags "${ldflags_arg}" github.com/kudobuilder/kudo/cmd/manager | ||
|
||
# Copy the controller-manager into a thin image | ||
FROM arm64v8/ubuntu:18.04 | ||
WORKDIR /root/ | ||
COPY --from=builder /go/src/github.com/kudobuilder/kudo/manager . | ||
ENTRYPOINT ["./manager"] |
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