-
Notifications
You must be signed in to change notification settings - Fork 351
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build lightstep image based on alpine #762
Conversation
516b30e
to
0582aa4
Compare
Does this work on your machine? |
d874809
to
e0c05c6
Compare
@szuecs pushed some changes and updated the PR description. |
e0c05c6
to
81e25be
Compare
Signed-off-by: Mikkel Oscar Lyderik Larsen <mikkel.larsen@zalando.de>
81e25be
to
d1096cf
Compare
@mikkeloscar can you start the docker container without errors raised on plugin load time? |
@szuecs yes. I believe this means it's loaded right? $ docker run registry.opensource.zalan.do/pathfinder/skipper-lightstep-test:pr-762-9
[APP]time="2018-09-01T12:57:36Z" level=info msg="found plugin tracing_lightstep at plugins/tracing_lightstep.so"
[APP]time="2018-09-01T12:57:36Z" level=info msg="found plugin tracing_lightstep at /plugins/tracing_lightstep.so"
[APP]time="2018-09-01T12:57:36Z" level=info msg="attempting to load plugin from /plugins/tracing_lightstep.so"
[APP]time="2018-09-01T12:57:36Z" level=warning msg="no route source specified"
[APP]time="2018-09-01T12:57:36Z" level=info msg="Expose metrics in codahale format"
[APP]time="2018-09-01T12:57:36Z" level=info msg="support listener on :9911"
[APP]time="2018-09-01T12:57:36Z" level=info msg="proxy listener on :9090"
[APP]time="2018-09-01T12:57:36Z" level=info msg="certPathTLS or keyPathTLS not found, defaulting to HTTP"
# validate that we are running alpine
$ docker run --entrypoint /bin/sh registry.opensource.zalan.do/pathfinder/skipper-lightstep-test:pr-762-9 -c "cat /etc/issue"
Welcome to Alpine Linux 3.8
Kernel \r on an \m (\l) |
👍 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
Signed-off-by: Mikkel Oscar Lyderik Larsen <mikkel.larsen@zalando.de>
This was already done by @arjunrn. But I now just removed the variables no longer needed. The image I tested and showed the logs from was build via CDP :) |
👍 |
1 similar comment
👍 |
Thanks @mikkeloscar! |
Build lightstep image based on alpine. This is done to reduce the image size. It's a reduction from
179MB
->45.6MB
compared to the ubuntu based image.It's implemented by adding new make targets
alpine.build
andalpine.plugins
that builds skipper and plugins in agolang:alpine
based image such that both skipper and the tracing plugin is linked againstmusl
instead oflibc
.Ref: #761