kosma / runit-docker

painlessly use Runit in Docker containers

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

runit-docker

Docker and runsvdir don't quite agree on what each signal means, causing TONS of frustration when attempting to use runsvdir as init under Docker. runit-docker is a plug'n'play adapter library which does signal translation without the overhead and nuisance of running a nanny process.

Features

  • Pressing Ctrl-C does a clean shutdown.
  • docker stop does a clean shutdown.

Under the hood, runit-docker translates SIGTERM and SIGINT to SIGHUP.

Usage

  • Build with make, install with make install.
  • Add CMD ["/usr/sbin/runit-docker"] to your Dockerfile.
  • Run debian/rules clean build binary to build a Debian package.

Author

runit-docker was written by Kosma Moczek <kosma@kosma.pl> during a single Scrum planning meeting. Damn meetings.

About

painlessly use Runit in Docker containers

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:C 59.8%Language:Makefile 29.3%Language:Shell 10.9%