This repository has been archived by the owner on Sep 11, 2023. It is now read-only.
forked from bank-vaults/bank-vaults
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
94c1f06
commit 6eae966
Showing
8 changed files
with
232 additions
and
145 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
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,15 @@ | ||
root = true | ||
|
||
[*] | ||
charset = utf-8 | ||
end_of_line = lf | ||
indent_size = 4 | ||
indent_style = space | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true | ||
|
||
[*.go] | ||
indent_style = tab | ||
|
||
[{Makefile,*.mk}] | ||
indent_style = tab |
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 |
---|---|---|
|
@@ -20,6 +20,7 @@ operator/tmp/_output/bin/* | |
/vendor/ | ||
/.licensei.cache | ||
bin/* | ||
/build/ | ||
|
||
|
||
# IDE integration | ||
|
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,8 @@ | ||
run: | ||
skip-dirs: | ||
- operator | ||
|
||
linters: | ||
disable: | ||
- errcheck | ||
- megacheck |
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,14 +1,25 @@ | ||
FROM golang:1.11-alpine as golang | ||
RUN apk add --update --no-cache ca-certificates curl git make | ||
RUN mkdir -p /go/src/github.com/banzaicloud/bank-vaults | ||
ADD Gopkg.* Makefile /go/src/github.com/banzaicloud/bank-vaults/ | ||
WORKDIR /go/src/github.com/banzaicloud/bank-vaults | ||
ARG GO_VERSION=1.11 | ||
|
||
FROM golang:${GO_VERSION}-alpine AS builder | ||
|
||
RUN apk add --update --no-cache ca-certificates make git curl mercurial | ||
|
||
ARG PACKAGE=github.com/banzaicloud/bank-vaults | ||
|
||
RUN mkdir -p /go/src/${PACKAGE} | ||
WORKDIR /go/src/${PACKAGE} | ||
|
||
COPY Gopkg.* Makefile /go/src/${PACKAGE}/ | ||
RUN make vendor | ||
ADD . /go/src/github.com/banzaicloud/bank-vaults | ||
|
||
COPY . /go/src/${PACKAGE} | ||
RUN go install ./cmd/bank-vaults | ||
|
||
|
||
FROM alpine:3.7 | ||
|
||
RUN apk add --no-cache ca-certificates | ||
COPY --from=golang /go/bin/bank-vaults /usr/local/bin/bank-vaults | ||
|
||
COPY --from=builder /go/bin/bank-vaults /usr/local/bin/bank-vaults | ||
|
||
ENTRYPOINT ["/usr/local/bin/bank-vaults"] |
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,16 +1,28 @@ | ||
FROM golang:1.11-alpine as golang | ||
RUN apk add --update --no-cache ca-certificates curl git make | ||
RUN mkdir -p /go/src/github.com/banzaicloud/bank-vaults | ||
ADD Gopkg.* Makefile /go/src/github.com/banzaicloud/bank-vaults/ | ||
WORKDIR /go/src/github.com/banzaicloud/bank-vaults | ||
ARG GO_VERSION=1.11 | ||
|
||
FROM golang:${GO_VERSION}-alpine AS builder | ||
|
||
RUN apk add --update --no-cache ca-certificates make git curl mercurial | ||
|
||
ARG PACKAGE=github.com/banzaicloud/bank-vaults | ||
|
||
RUN mkdir -p /go/src/${PACKAGE} | ||
WORKDIR /go/src/${PACKAGE} | ||
|
||
COPY Gopkg.* Makefile /go/src/${PACKAGE}/ | ||
RUN make vendor | ||
ADD . /go/src/github.com/banzaicloud/bank-vaults | ||
|
||
COPY . /go/src/${PACKAGE} | ||
RUN go install ./operator/cmd/vault-operator | ||
|
||
|
||
FROM alpine:3.7 | ||
|
||
RUN apk add --no-cache ca-certificates | ||
COPY --from=golang /go/bin/vault-operator /usr/local/bin/vault-operator | ||
|
||
COPY --from=builder /go/bin/vault-operator /usr/local/bin/vault-operator | ||
|
||
RUN adduser -D vault-operator | ||
USER vault-operator | ||
|
||
ENTRYPOINT ["/usr/local/bin/vault-operator"] |
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.