-
Notifications
You must be signed in to change notification settings - Fork 20
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
Compile tools statically linked #7
Comments
(For reference) As mentioned, there are a couple of problems with the musl solution, both regarding rust.
|
We should not forget about this, there have been some interest from others to use Alpine for example. I also have interest to make "distroless" dapps, where I would install tools into an empty filesystem and copy my dapp statically linked, the dapp rootfs would be very tiny this way. To make this happen we need to:
|
There are plans to deprecate the |
On the
I've already used its s6-rc and s6-overlays on container environments, but I never used it inside cartesi-machine, but I plan to test it. |
Statically linking to MUSL instead of GLIBC would make the final binaries smaller, allowing rootfs to be more compact. Also statically linking GLIBC is not recommend, though @mpolitzer pointed this does not impact us.
To do this we would need to use a MUSL toolchain to build the tools, we could probably use Alpine toolchain or some other distro to compile them instead of creating our own toolchain, or maybe we could move our toolchain to use MUSL once we get rid of buildroot.
The text was updated successfully, but these errors were encountered: