Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,13 @@ ENTRYPOINT ["/bin/registrator"]
COPY . /go/src/github.com/gliderlabs/registrator
RUN apk --no-cache add -t build-deps build-base go git \
&& apk --no-cache add ca-certificates \
&& cd /go/src/github.com/gliderlabs/registrator \
&& export GOPATH=/go \
&& go get -u github.com/ugorji/go/codec/codecgen \
&& mkdir /go/src/github.com/coreos \
&& git clone https://github.com/coreos/go-etcd.git /go/src/github.com/coreos/go-etcd \
&& cd /go/src/github.com/coreos/go-etcd/etcd \
&& /go/bin/codecgen -d 1978 -o response.generated.go response.go \
&& cd /go/src/github.com/gliderlabs/registrator \
&& git config --global http.https://gopkg.in.followRedirects true \
&& go get \
&& go build -ldflags "-X main.Version=$(cat VERSION)" -o /bin/registrator \
Expand Down
5 changes: 5 additions & 0 deletions Dockerfile.dev
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ ENV GOPATH /go
RUN apk --no-cache add build-base go git ca-certificates
COPY . /go/src/github.com/gliderlabs/registrator
RUN cd /go/src/github.com/gliderlabs/registrator \
&& go get -u github.com/ugorji/go/codec/codecgen \
&& mkdir /go/src/github.com/coreos \
&& git clone https://github.com/coreos/go-etcd.git /go/src/github.com/coreos/go-etcd \
&& cd /go/src/github.com/coreos/go-etcd/etcd \
&& /go/bin/codecgen -d 1978 -o response.generated.go response.go \
&& git config --global http.https://gopkg.in.followRedirects true \
&& go get \
&& go build -ldflags "-X main.Version=dev" -o /bin/registrator