-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Look into compiling Teleport as a static binary again #4896
Comments
@webvictim how can we trigger PAM without CGO and libpam? |
I managed to compile the binary on alpine using |
What does Go do? Because I've seen similar issues discussed, for |
I was able to compile teleport as a static binary, by statically linking C libraries via
Inspired by https://www.arp242.net/static-go.html The binary starts find, but I'm not sure what features could be broken by this. |
This is the same way I compiled it statically too. |
There are a number of reasons why we don't compile Teleport as a static binary:
It's possible to work around all of these except the current requirement of using the glibc DNS resolver. Go's native resolver has apparently been considerably improved since Teleport was first compiled and can now handle the majority of settings in
/etc/nsswitch.conf
without trouble. It might be worth investigating whether we can use this instead and remove the dependency on glibc. This would enable us to truly have one Teleport binary with everything compiled in which will work anywhere, so we would no longer need separate CentOS 6 or other builds.The text was updated successfully, but these errors were encountered: