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

Switch golang base image to Debian in order to address libc linking p… #41

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

cstsw
Copy link

@cstsw cstsw commented Jun 24, 2022

…roblem

Alpine has subistituted GNU libc with musl in 2014
(see https://www.alpinelinux.org/posts/Alpine-Linux-has-switched-to-musl-libc.html)

So if one builds ssl-proxy on Alpine, the linux binary will contain a reference to
the musl library. Since this library is not present in major linux distributions
(like Debian), launching ssl-proxy results in a "No such file or directory" error.
For more details on this problem see e.g.
https://www.reddit.com/r/golang/comments/64lz0s/how_to_crosscompile_libc_variants_like_musl/
https://stackoverflow.com/questions/54524785/how-to-build-a-go-executable-that-doesnt-link-to-musl-libc

Therefore the golang base image is switched from the Alpine to the Debian variant,
using it's most recent image of the 1.13 version line.

…roblem

Alpine has subistituted GNU libc with musl in 2014
(see https://www.alpinelinux.org/posts/Alpine-Linux-has-switched-to-musl-libc.html)

So if one builds ssl-proxy on Alpine, the linux binary will contain a reference to
the musl library. Since this library is not present in major linux distributions
(like Debian), launching ssl-proxy results in a "No such file or directory" error.
For more details on this problem see e.g.
https://www.reddit.com/r/golang/comments/64lz0s/how_to_crosscompile_libc_variants_like_musl/
https://stackoverflow.com/questions/54524785/how-to-build-a-go-executable-that-doesnt-link-to-musl-libc

Therefore the golang base image is switched from the Alpine to the Debian variant,
using it's most recent image of the 1.13 version line.
@cstsw
Copy link
Author

cstsw commented Jun 24, 2022

I would suggest switching the golang base image from Alpine to Debian in order to resolve #38

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.

1 participant