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

Ensure SIGTERM leads to graceful termination in rocker/binder #773

Merged
merged 1 commit into from
Mar 29, 2024

Conversation

consideRatio
Copy link
Contributor

@consideRatio consideRatio commented Mar 16, 2024

Fixes #771, not by introducing tini, but by ensuring we don't let sh be the init process which in turn runs jupyter lab without propegating SIGTERM to it.

There may be a point to introduce tini or similar, but from the SIGTERM perspective, this does the trick as well.

This PR is modelled on for example https://github.com/rocker-org/rocker-versioned2/pull/740/files where I see that all Dockerfiles are updated along with a repsective .json file.

@cboettig
Copy link
Member

@eitsupi thoughts on this?

@consideRatio consideRatio force-pushed the pr/make-sigterm-propegate branch from e3d2d01 to 61d1c64 Compare March 16, 2024 23:06
@consideRatio
Copy link
Contributor Author

I did a force push. I saw that I had updated .json files incorrectly to reflect the changes in the Dockerfiles (left /bin/sh -c in the .json representation still)

Copy link
Member

@eitsupi eitsupi left a comment

Choose a reason for hiding this comment

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

Thank you for working on this.

I don't have anything to say, but please merge if you are sure because I have no idea if this Dockerfile will work correctly.

@consideRatio
Copy link
Contributor Author

I've tested to startup the Dockerfile built just adjusting CMD as this PR does and it works fine, but I don't understand what I changed in the .json files.

@eitsupi
Copy link
Member

eitsupi commented Mar 17, 2024

I have confirmed that the JSON file has now been changed without any problems.

@consideRatio
Copy link
Contributor Author

I don't have anything to say, but please merge if you are sure because I have no idea if this Dockerfile will work correctly.

@cboettig you hold the ball to get this merged - ok to go?

@cboettig cboettig merged commit cfe88aa into rocker-org:master Mar 29, 2024
1 check passed
@cboettig
Copy link
Member

thanks for the ping!

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.

SIGTERM isn't propegated or respected, making docker stop slow and then forceful
3 participants