bitovi / bitovi/bitops

Update dockerfile to accept sigint more gracefully

Open
#430 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
37
Forks
9
PR merge metrics
No merged PRs in 30d

Description

When you have to kill a bitops run on the command line, with ctrl-c, it just hangs. It would be nice if it would exit gracefully.

I believe this can be done by adding STOPSIGNAL SIGINT to the dockerfile, or by running the main process inside a dummy process that catches the signal and exits.

likely resource: [tini entrypoint](https://github.com/hexops/dockerfile#use-tini-as-your-entrypoint)

(ported into `bitops` from https://github.com/bitovi/operations-repo-examples-internal/issues/6)

Contributor guide

Open the contributing guide

Research direction

Start with the repository's Dockerfile and entrypoint configuration, then review the linked tini entrypoint resource and compare it with the suggested STOPSIGNAL SIGINT approach. Done means a BitOps run started from the command line exits gracefully rather than hanging when interrupted with Ctrl-C.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker
Domain
devops
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.