-
Notifications
You must be signed in to change notification settings - Fork 321
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Lots of updates to project dependencies
* Now builds with Go 1.14 * Uses go modules for dependency management * Builds binary inside docker * Streamlines build scripts to remove cruft * Changes linter to golangci-lint for performance and compatibility
- Loading branch information
1 parent
ec6e589
commit 15c2f63
Showing
9 changed files
with
336 additions
and
412 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,3 @@ | ||
.idea/ | ||
build/bin/darwin/ | ||
cmd/ | ||
iptables/ | ||
version/ | ||
vendor/ | ||
build/bin/darwin | ||
vendor/ |
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,9 +1,13 @@ | ||
FROM alpine:3.9 | ||
FROM golang:1.14.0 AS BUILDER | ||
WORKDIR /go/src/github.com/jtblin/kube2iam | ||
ENV ARCH=linux | ||
ENV CGO_ENABLED=0 | ||
COPY . ./ | ||
RUN make setup && make build | ||
|
||
FROM alpine:3.11.3 | ||
RUN apk --no-cache add \ | ||
ca-certificates \ | ||
iptables | ||
|
||
COPY build/bin/linux/kube2iam /bin/kube2iam | ||
|
||
COPY --from=BUILDER /go/src/github.com/jtblin/kube2iam/build/bin/linux/kube2iam /bin/kube2iam | ||
ENTRYPOINT ["kube2iam"] |
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.