Skip to content
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

Merged
merged 2 commits into from
Sep 1, 2018
Merged

Build lightstep image based on alpine #762

merged 2 commits into from
Sep 1, 2018

Conversation

mikkeloscar
Copy link
Member

@mikkeloscar mikkeloscar commented Aug 31, 2018

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.

REPOSITORY                                                           TAG                                        IMAGE ID            CREATED             SIZE
registry.opensource.zalan.do/pathfinder/skipper-lightstep-test       pr-762-9                                   de824efae48c        4 minutes ago       45.6MB
registry.opensource.zalan.do/pathfinder/skipper-lightstep            v0.10.68                                   61a3b1c0a562        24 hours ago        179MB

It's implemented by adding new make targets alpine.build and alpine.plugins that builds skipper and plugins in a golang:alpine based image such that both skipper and the tracing plugin is linked against musl instead of libc.

Ref: #761

@szuecs
Copy link
Member

szuecs commented Aug 31, 2018

Does this work on your machine?

@mikkeloscar mikkeloscar force-pushed the lightstep-alpine branch 3 times, most recently from d874809 to e0c05c6 Compare September 1, 2018 07:11
@mikkeloscar mikkeloscar changed the title [WIP] Build lightstep image based on alpine Build lightstep image based on alpine Sep 1, 2018
@mikkeloscar
Copy link
Member Author

@szuecs pushed some changes and updated the PR description.

Signed-off-by: Mikkel Oscar Lyderik Larsen <mikkel.larsen@zalando.de>
@szuecs
Copy link
Member

szuecs commented Sep 1, 2018

@mikkeloscar can you start the docker container without errors raised on plugin load time?

@mikkeloscar
Copy link
Member Author

@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)

@szuecs
Copy link
Member

szuecs commented Sep 1, 2018

👍
@mikkeloscar can you add this docker image build to the delivery.yaml, such that we have it automatically build+pushed?
A 2nd push needs to be done with the same org path (pathfinder).

Copy link
Member

@szuecs szuecs left a 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>
@mikkeloscar
Copy link
Member Author

@mikkeloscar can you add this docker image build to the delivery.yaml, such that we have it automatically build+pushed?
A 2nd push needs to be done with the same org path (pathfinder).

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 :)

@arjunrn
Copy link
Contributor

arjunrn commented Sep 1, 2018

👍

1 similar comment
@szuecs
Copy link
Member

szuecs commented Sep 1, 2018

👍

@szuecs
Copy link
Member

szuecs commented Sep 1, 2018

Thanks @mikkeloscar!

@szuecs szuecs merged commit da8b845 into master Sep 1, 2018
@szuecs szuecs deleted the lightstep-alpine branch September 1, 2018 21:51
AlexanderYastrebov added a commit that referenced this pull request Jul 17, 2023
It was intriduced by #762 and its usage was removed by #779

Fixes #2468

Signed-off-by: Alexander Yastrebov <alexander.yastrebov@zalando.de>
AlexanderYastrebov added a commit that referenced this pull request Jul 17, 2023
It was introduced by #762 and its usage was removed by #779

Fixes #2468

Signed-off-by: Alexander Yastrebov <alexander.yastrebov@zalando.de>
AlexanderYastrebov added a commit that referenced this pull request Jul 18, 2023
It was introduced by #762 and its usage was removed by #779

Fixes #2468

Signed-off-by: Alexander Yastrebov <alexander.yastrebov@zalando.de>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants