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

Add 'tini' as init #178

Merged
merged 1 commit into from
Jun 3, 2021
Merged

Add 'tini' as init #178

merged 1 commit into from
Jun 3, 2021

Conversation

kfdm
Copy link
Contributor

@kfdm kfdm commented Jun 2, 2021

A lot of containers try to avoid using shell for the ENTRYPOINT due to issues with escaping characters and not always handling signals very well. Many use tini as a way to handle this.

This is configured so that it is also easy to replace CMD with your own value without affecting the init.

@kfdm kfdm requested a review from iegomez as a code owner June 2, 2021 12:03
Dockerfile Show resolved Hide resolved
@iegomez
Copy link
Owner

iegomez commented Jun 2, 2021

@kfdm There's a typo that needs changing.
I don't know tiny, I'll look it up when I get some time before further reviewing.

@@ -41,7 +41,7 @@ RUN mkdir mosquitto-go-auth && \
FROM debian:stable-slim

#Get mosquitto dependencies.
RUN apt-get update && apt-get install -y libwebsockets8 libc-ares2 openssl uuid
RUN apt-get update && apt-get install -y libwebsockets8 libc-ares2 openssl uuid tiny
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
RUN apt-get update && apt-get install -y libwebsockets8 libc-ares2 openssl uuid tiny
RUN apt-get update && apt-get install -y libwebsockets8 libc-ares2 openssl uuid tini

@kfdm
Copy link
Contributor Author

kfdm commented Jun 2, 2021

Woops, sorry about the typo there. I likely only tested the base Docker image and neglected to test the other one 🙇
Should be fixed now.

This should explain things in detail krallin/tini#8 (comment)

@kfdm kfdm changed the title Add 'tiny' as init Add 'tini' as init Jun 2, 2021
@iegomez iegomez merged commit d895cf5 into iegomez:master Jun 3, 2021
@kfdm kfdm deleted the tiny-init branch July 8, 2021 09:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants