-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #24 from tuenti/release-0.2.0-rc.2
Cut Release 0.2.0 rc.2
- Loading branch information
Showing
15 changed files
with
226 additions
and
209 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,3 +1,4 @@ | ||
vendor/ | ||
build/ | ||
Dockerfile | ||
.git |
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,8 +1,14 @@ | ||
# Stage 0 | ||
# Build binary file | ||
FROM instrumentisto/glide:0.13.1-go1.10 | ||
FROM golang:1.11.5-alpine as builder | ||
ENV GLIDE_VERSION v0.13.2 | ||
|
||
RUN apk add --update make | ||
RUN wget "https://github.com/Masterminds/glide/releases/download/${GLIDE_VERSION}/glide-${GLIDE_VERSION}-linux-amd64.tar.gz" \ | ||
&& tar xf glide-${GLIDE_VERSION}-linux-amd64.tar.gz \ | ||
&& cp linux-amd64/glide $GOPATH/bin/ \ | ||
&& chmod +x $GOPATH/bin/glide | ||
|
||
RUN apk add --update git make | ||
|
||
ARG PROJECT_SLUG=github.com/tuenti/secrets-manager | ||
COPY glide.yaml /go/src/$PROJECT_SLUG/glide.yaml | ||
|
@@ -16,7 +22,8 @@ RUN make build-linux | |
|
||
# Stage 1 | ||
# Build actual docker image | ||
FROM alpine | ||
FROM alpine:3.8 | ||
ARG PROJECT_SLUG=github.com/tuenti/secrets-manager | ||
COPY --from=0 /go/src/$PROJECT_SLUG/build/secrets-manager /secrets-manager | ||
LABEL maintainer="[email protected]" | ||
COPY --from=builder /go/src/$PROJECT_SLUG/build/secrets-manager /secrets-manager | ||
ENTRYPOINT ["/secrets-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
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
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.