-
Notifications
You must be signed in to change notification settings - Fork 462
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
Please provide smaller static linked binaries (eg. using musl) #91
Comments
The required dependencies can be installed with
|
Yeah, this sounds like a good idea; thank you! One concern I have is that glibc and muslc parse command line arguments a little differently. glibc does the following, but muslc does not:
I'm leaning towards forcing the "posixly correct" mode, which is probably what users expect anyway (that's also how e.g. Anyhow, work in progress here: #92 |
Would be interesting how tini currently behaves in alpine linux, as it is compiled against musl there. For the build file: |
I think it should be fine - glibc's behavior is a bit unintuitive here. For example, if you run:
Then -v is interpreted as an option for tini, whereas you probably meant for it to be interpreted by program instead. Likewise, if the option does NOT exist for tini, then it'll throw an error. For example:
This will fail because This is why in the README I'm encouraging using |
Just curious, what's your use case here where you need such small tini? |
We have a policy of not creating docker containers without init as soon as we can not guarantee the daemon does not fork during it's lifetime. We are currently experimenting to build our containers with bazel thus i needed a small statically compiled init there (to have a common init base layer for static go executables AND normal dynamically compiled excutables). |
@gebi I released v0.15.0 today, which now includes musl-based builds! The binaries will be available once the build completes: https://travis-ci.org/krallin/tini/builds/249743590 |
yay, thx :)! |
Happy to hear it 😄 |
Hi,
We are using a statically compiled version of tini which using musl is only 55Kb in size anymore. It would be really nice if you could add this to your releases.
The text was updated successfully, but these errors were encountered: