Commit graph

244 commits

Author SHA1 Message Date
Chris Kuehl
dba55e1dc6 Loosen a proc assertion 2016-08-25 13:13:51 -07:00
Buck Evan
b0bf2eeb17 Merge pull request #112 from chriskuehl/clarify-json-syntax
Clarify the importance of JSON syntax for CMD
2016-08-15 14:20:06 -07:00
Chris Kuehl
411d1fc420 Clarify the importance of JSON syntax for CMD 2016-08-15 14:14:07 -07:00
Chris Kuehl
0f286e285f Release v1.1.3 2016-08-02 10:59:59 -07:00
Chris Kuehl
301eeddce7 Merge pull request #109 from chriskuehl/fixes-for-freebsd
Fixes for FreeBSD kernel
2016-08-01 18:47:40 -07:00
Chris Kuehl
3c141fe7e6 Merge pull request #108 from chriskuehl/fix-more-flaky-tests
Fix more flaky tests
2016-08-01 10:35:35 -07:00
Chris Kuehl
f854583872 Fixes for FreeBSD kernel 2016-08-01 10:32:31 -07:00
Chris Kuehl
4349c629f8 Fix more flaky tests 2016-08-01 09:16:28 -07:00
Chris Kuehl
9d862c8a2b Fix signal number assertions on non-amd64 2016-08-01 08:40:48 -07:00
Chris Kuehl
76436e0ee9 Merge pull request #103 from chriskuehl/mention-entrypoint-README
Expand on how to use in a Dockerfile
2016-07-28 14:05:44 -07:00
Chris Kuehl
e5783199ac Dockerfile syntax highlighting is a thing now 2016-07-28 13:53:25 -07:00
Chris Kuehl
db53ed45e3 Expand on how to use in a Dockerfile 2016-07-28 13:48:06 -07:00
Chris Kuehl
eb86ebe961 Release v1.1.2 2016-07-25 22:50:09 -07:00
Anthony Sottile
74bdd54040 Merge pull request #104 from chriskuehl/set-signal-mask-before-fork
Set the signal mask before forking
2016-07-25 22:43:07 -07:00
Chris Kuehl
d17ab8ac18 Set the signal mask before forking
Fixes #102
2016-07-25 22:30:22 -07:00
Anthony Sottile
90bfe0fd90 Merge pull request #101 from chriskuehl/fix-flakey-tests
Fix two flakey tests
2016-07-25 10:02:37 -07:00
Chris Kuehl
23dbc512c2 Fix two flakey tests 2016-07-25 09:54:39 -07:00
Chris Kuehl
62ca2aaace Merge pull request #98 from chriskuehl/add-some-more-logging-to-tests
Be more generous with sleeps in tests, add more test output on fail
2016-07-19 14:47:27 -07:00
Chris Kuehl
8269e190f1 Be more generous with sleeps, add more test output on fail 2016-07-19 14:40:26 -07:00
Chris Kuehl
cbd1db01a8 Let's try bold 2016-07-15 22:25:01 -07:00
Anthony Sottile
d1393dd6fe Merge pull request #95 from chriskuehl/fix-itest-lucid
Fix itest_lucid
2016-07-11 14:59:51 -07:00
Chris Kuehl
1b32040658 Fix itest_lucid 2016-07-02 11:36:30 -07:00
Chris Kuehl
4f1a255b04 Merge pull request #93 from Yelp/remove_unused_hooks
Remove a few unused pre-commit hooks
2016-06-24 13:41:27 -07:00
Anthony Sottile
f131ae86c0 Remove a few unused pre-commit hooks 2016-06-24 13:30:10 -07:00
Anthony Sottile
78ee446099 Merge pull request #91 from chriskuehl/make-tests-less-leaky
Make tests a bit less leaky
2016-06-24 12:07:03 -07:00
Chris Kuehl
135bfcaf2c Add a timeout to tests during builddeb-docker, make verbose 2016-06-24 11:30:40 -07:00
Chris Kuehl
2033f56126 gitignore debian/debhelper-build-stamp 2016-06-24 11:30:40 -07:00
Chris Kuehl
7ab9a2d8d6 Merge pull request #90 from grnhse/debug-on-translate
Print debug output when rewriting signal
2016-06-19 18:36:11 -04:00
Mike McClurg
d57a38b0c1 Print debug output when translating signal 2016-06-19 15:24:34 -07:00
Anthony Sottile
843626f152 Merge pull request #89 from chriskuehl/clean-up-tests
Clean up tests a bit
2016-06-17 15:58:46 -07:00
Chris Kuehl
169727ba43 Clean up tests a bit 2016-06-17 12:47:34 -07:00
Chris Kuehl
35a343fb66 Release v1.1.1 2016-06-17 12:15:30 -07:00
Anthony Sottile
a6df732935 Merge pull request #88 from chriskuehl/fix-segfault-on-unknown-args
Fix segfault on invalid arguments
2016-06-17 11:25:48 -07:00
Chris Kuehl
4ce5ec42d2 Loosen assertion a bit for musl 2016-06-17 11:06:24 -07:00
Chris Kuehl
a2df72a637 Build in stretch instead of jessie to avoid musl bug 2016-06-17 11:06:21 -07:00
Chris Kuehl
b678dbf4b3 Fix segfault on invalid arguments 2016-06-17 10:20:05 -07:00
Chris Kuehl
38dc560513 Release v1.1.0 2016-06-14 11:50:24 -07:00
Chris Kuehl
2d5483d689 Merge pull request #86 from chriskuehl/add-signal-ignoring
Add ability to ignore (not proxy) signals
2016-06-14 14:44:44 -04:00
Chris Kuehl
1a7c635071 Add ability to ignore signals 2016-06-14 11:34:52 -07:00
Chris Kuehl
859cfa61de Merge pull request #85 from chriskuehl/allow-rewrite-tty-signals
Use new signal rewriting for TTY signal special cases
2016-06-14 14:15:18 -04:00
Chris Kuehl
554760fda6 Use signal rewriting for TTY signal special cases 2016-06-14 11:08:33 -07:00
Chris Kuehl
54a2fe46cb Merge pull request #83 from grnhse/translate-sigterm
Add '--signal' option to replace SIGTERM
2016-06-14 13:18:12 -04:00
Mike McClurg
38f63093cb Merge pull request #2 from chriskuehl/translate-sigterm
Add signal translation tests
2016-06-14 08:47:54 -06:00
Chris Kuehl
9e456addb7 Add signal translation tests 2016-06-13 14:33:51 -07:00
Mike McClurg
6f6b51f869 Rewrite arbitrary signals, and update tests
We've decided to allow arbitrary signal rewriting, not just SIGTERM
rewriting. To use, call dumb-init with the '-r s:r' option, which will
rewrite signum s to signum r. Only signals 1-31 are allowed to be
rewritten, which should cover all the signals we need to cover.

Note that this commit does not add new tests, it only fixes the existing
broken test.
2016-06-09 16:05:27 -06:00
Mike McClurg
3b6e9f256f Add '--signal' option to replace SIGTERM
Many servers respond to other signals than SIGTERM for their "soft
shutdown" option, such as Unicorn which requires SIGQUIT to wait on
outstanding connections. The 'docker stop' command sends the SIGTERM
signal to the container, and provides no option for modifying this
behavior. The 'docker kill' command has an '-s' option which allows one
to modify the signal sent to the container, but orchestration frameworks
such as Mesos don't provide a way to use this functionality.

This commit adds the '-s/--signal' option to dumb-init, which provides a
replacement signal for SIGTERM. For instance, running dumb-init like so:

  dumb-init -s 3 <command>

Will send SIGQUIT (3) to the <command> process it spawns when it
receives a SIGTERM. This allows Docker image writers the freedom to
specify how SIGTERM will behave in their containers.

A further improvement to this option could be to provide an arbirary
mapping from signal to signal, but that would greatly complicate the
code for a probably minor use case.
2016-06-08 16:20:57 -06:00
Chris Kuehl
662a3b7096 Release v1.0.3 2016-06-01 20:42:37 -04:00
Anthony Sottile
4ebd31a80e Merge pull request #82 from chriskuehl/fix-exec-fail-message
Fix incorrect error on bad exec when passing args
2016-05-28 03:01:56 -07:00
Chris Kuehl
b7aee39721 Fix incorrect error on bad exec when passing args 2016-05-28 02:03:19 -04:00
Anthony Sottile
e0ec865a6a Merge pull request #79 from chriskuehl/better-document-build-process
Document the build process better
2016-05-20 10:20:01 -07:00