This repository was archived by the owner on Aug 3, 2021. It is now read-only.
forked from gliderlabs/registrator
-
Notifications
You must be signed in to change notification settings - Fork 1
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 gliderlabs#658 from Snapkitchen/PR-568
resolve merge conflicts in PR-568 (update vendor libraries to fix tls support)
- Loading branch information
Showing
8 changed files
with
139 additions
and
52 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 |
---|---|---|
@@ -1,3 +1,5 @@ | ||
release | ||
build | ||
.git | ||
.gvm_local | ||
build | ||
release | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
release | ||
.gvm_local | ||
build | ||
vendor | ||
release | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,18 @@ | ||
FROM alpine:3.7 AS builder | ||
COPY . /go/src/github.com/gliderlabs/registrator | ||
RUN apk --no-cache add -t build-deps build-base go git curl \ | ||
&& apk --no-cache add ca-certificates \ | ||
&& export GOPATH=/go && mkdir -p /go/bin && export PATH=$PATH:/go/bin \ | ||
FROM golang:1.9.4-alpine3.7 AS builder | ||
WORKDIR /go/src/github.com/gliderlabs/registrator/ | ||
COPY . . | ||
RUN \ | ||
apk add --no-cache curl git \ | ||
&& curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh \ | ||
&& cd /go/src/github.com/gliderlabs/registrator \ | ||
&& export GOPATH=/go \ | ||
&& git config --global http.https://gopkg.in.followRedirects true \ | ||
&& dep ensure \ | ||
&& go build -ldflags "-X main.Version=$(cat VERSION)" -o /bin/registrator \ | ||
&& rm -rf /go \ | ||
&& apk del --purge build-deps | ||
&& dep ensure -vendor-only \ | ||
&& CGO_ENABLED=0 GOOS=linux go build \ | ||
-a -installsuffix cgo \ | ||
-ldflags "-X main.Version=$(cat VERSION)" \ | ||
-o bin/registrator \ | ||
. | ||
|
||
FROM alpine:3.7 | ||
COPY --from=builder /bin/registrator /bin/registrator | ||
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt | ||
RUN apk add --no-cache ca-certificates | ||
COPY --from=builder /go/src/github.com/gliderlabs/registrator/bin/registrator /bin/registrator | ||
|
||
ENTRYPOINT ["/bin/registrator"] |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.