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

OBS-361: Remove tini and set up stop signals. #6771

Merged
merged 1 commit into from
Oct 29, 2024
Merged

OBS-361: Remove tini and set up stop signals. #6771

merged 1 commit into from
Oct 29, 2024

Conversation

smarnach
Copy link
Contributor

The tini process was originally added to make Docker comtainers quite properly when receiving the TERM signal on docker compose stop. Some containers don't react to this signal, so terminating them will hang for ten seconds before Docker Compose sends SIGKILL.

The changes in this PR are similar to mozilla-services/tecken#3049.

I added exec to run the main command to a bunch of shell scripts. This ensures the shell script doesn't linger around, and the actual main process receives the signals, which is a lot more useful.

https://mozilla-hub.atlassian.net/browse/OBS-361

@smarnach smarnach requested a review from a team as a code owner October 28, 2024 17:44
@smarnach smarnach added this pull request to the merge queue Oct 29, 2024
Merged via the queue into main with commit 2141236 Oct 29, 2024
1 check passed
@smarnach smarnach deleted the remove-tini branch October 29, 2024 07:16
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.

2 participants