-
Notifications
You must be signed in to change notification settings - Fork 351
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Build lightstep image based on alpine
Signed-off-by: Mikkel Oscar Lyderik Larsen <mikkel.larsen@zalando.de>
- Loading branch information
1 parent
5d7ae30
commit 0582aa4
Showing
2 changed files
with
21 additions
and
4 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,7 +1,24 @@ | ||
FROM registry.opensource.zalan.do/stups/ubuntu:latest | ||
# builder image | ||
FROM golang:alpine as builder | ||
|
||
RUN apk add -U git && \ | ||
go get github.com/Masterminds/glide | ||
COPY . . | ||
RUN go get -d github.com/skipper-plugins/opentracing && \ | ||
cd /go/src/github.com/skipper-plugins/opentracing && \ | ||
glide install --strip-vendor && \ | ||
GOOS=linux GOARCH=amd64 CGO_ENABLED=1 make | ||
|
||
# final image | ||
FROM alpine | ||
MAINTAINER Skipper Maintainers <team-pathfinder@zalando.de> | ||
RUN apk --no-cache add ca-certificates && update-ca-certificates | ||
RUN mkdir -p /usr/bin | ||
ADD skipper eskip /usr/bin/ | ||
EXPOSE 9090 9911 | ||
ENV PATH $PATH:/usr/bin | ||
RUN mkdir -p /plugins | ||
ADD build/tracing_lightstep.so /plugins/ | ||
COPY --from=builder /go/src/github.com/skipper-plugins/opentracing/build/tracing_lightstep.so /plugins/ | ||
|
||
EXPOSE 9090 9911 | ||
|
||
ENTRYPOINT ["/usr/bin/skipper", "-plugindir", "/plugins"] |
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