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

Allow support of non-GNU distros (introduce a static binary?) #772

Closed
nickavem opened this issue May 20, 2021 · 4 comments
Closed

Allow support of non-GNU distros (introduce a static binary?) #772

nickavem opened this issue May 20, 2021 · 4 comments
Labels
1. Feature request A request for a new feature

Comments

@nickavem
Copy link

Is your feature request related to a problem? Please describe.
Right now the toolbox binary is dynamically linked:

/usr/bin/toolbox: ELF 64-bit LSB pie executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, BuildID[sha1]=f906e6e328b8ae7640b80a674713877e7cea2af5, for GNU/Linux 3.2.0, stripped

This makes it only useable with GNU/Linux guests.

Describe the solution you'd like
Introduce a static binary. I believe this should be fully doable with the Go language.

Describe alternatives you've considered
Create a musl compatible binary
Provide a mode to also automatically install required interpreters on non-GNU guests

@nickavem nickavem added the 1. Feature request A request for a new feature label May 20, 2021
@anthr76
Copy link
Contributor

anthr76 commented May 27, 2021

Would be awesome to have this for mac, but then podman is lacking. Toolbox seems pretty closely integrated with Linux. Nonetheless it would be cool to see a statically built binary.

@HarryMichal
Copy link
Member

There was an effort for having Toolbox build statically in the past. @debarshiray had some thoughts that made us decide against the decision. Maybe it's time to revisit this decision.

@debarshiray
Copy link
Member

Since #897 we run the /usr/bin/toolbox binary against the host's run-time, even for the init-container command inside the container. That should make it possible to use it with containers that have a different run-time implementation than the host. eg., musl versus glibc.

@debarshiray
Copy link
Member

Thanks for stopping by.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1. Feature request A request for a new feature
Projects
None yet
Development

No branches or pull requests

4 participants