-
Notifications
You must be signed in to change notification settings - Fork 18.9k
Replace grimes with tini for default init shipped in Docker #28037
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
Conversation
|
@crosbymichael ooooh, there are much more files where you need to change that :) |
|
@LK4D4 what do you mean? |
|
ahh, yes, the other dockerfiles |
|
@crosbymichael and also rpm and deb stuff :/ and don't forget about specs there, too |
|
@LK4D4 i think I found all the references let me know if I missed anything specifically |
Dockerfile
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
does this dep of tini?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, its used during the build an provides features to embed the license of the project into the strings of the binary.
|
LGTM |
|
Lets see about setting up CI for this before merging |
|
Anything to make @LK4D4 happy ;) |
|
ping @crosbymichael dunno who is toto, though, but probably he is not in Kansas anymore. |
|
@LK4D4 ya, i'm working on fixing it. @tiborvass explained to me what |
|
@LK4D4 it's the signature of a French guy debugging software. It's the equivalent of |
|
This may have been no different with grimes, but please (at least on platforms with support) can we compile with Musl libc not glibc. Compiling Alpine does not support all the platforms we do yet, but it should soon, and at least the common ones can have a small |
|
@justincormack whats the best way to do this inside our normal build process? |
afb3a84 to
5dd6f51
Compare
|
This PR is ready to be reviewed again. The change I made in |
|
LGTM |
There is no reason to duplicate efforts and tini is well built and better than grimes. It is a much stronger option for the default init and @krallin has done a great job maintaining it and helping make changes so that it will work with Docker. Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
Convert this to lower before checking the message of the error. Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
vdemeester
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🐸
|
LGTM |
|
nice, @krallin fyi ;) |
|
Awesome! Looking forward to trying this out in Docker 1.13 😄 |
|
Will look at how best to do Musl build within the normal build... On 9 Nov 2016 4:52 p.m., "Thomas Orozco" notifications@github.com wrote:
|
|
@justincormack thanks. I don't know the best way to do it with our current build process |
|
#27359 (with dobi) would make this pretty easy. We'd have one task for building tini on alpine, and another that depends on it, to build the binary: image=tini-builder:
image: docker-tini-dev
context: dockerfiles/tini/
job=tini:
use: tini-builder
mounts: [tini-source]
job=binary:
use: builder
depends: [tini] |
moby/moby#26061 moby/moby#28037 own copy (instead of distro package) because it requires tini with no args build krallin/tini#55
krallin/tini#55 (comment) krallin/tini#55 (comment) moby#28037 Signed-off-by: Elan Ruusamäe <glen@delfi.ee>
krallin/tini#55 (comment) krallin/tini#55 (comment) moby#28037 Signed-off-by: Elan Ruusamäe <glen@delfi.ee> (cherry picked from commit d7df731) Signed-off-by: Victor Vieux <vieux@docker.com>
There is no reason to duplicate efforts and tini is well built and
better than grimes. It is a much stronger option for the default init
and @krallin has done a great job maintaining it and helping make
changes so that it will work with Docker using it as the default.
The only build change required is that we add
cmaketo the dockerfile andvim-commonbecause it has tools for embedding the licence in tini that is part of its build process.You can see the tini repo here:
https://github.com/krallin/tini
The init change has not be released so changing from grimes to tini does not impact anyone out of master.
Signed-off-by: Michael Crosby crosbymichael@gmail.com