Sign inSign up

jermine/bbox

By jermine

•Updated over 7 years ago

use runit to management process in busybox

Image
1

489

jermine/bbox repository overview

⁠docker-busybox

A smaller base image and process management with runit

⁠The docker registry url is :

https://hub.docker.com/r/jermine/bbox⁠

git clone https://github.com/JermineHu/docker-busybox.git
cd docker-busybox
docker build -t jermine/bbox -f Dockerfile .

# the busybox includ a light http server 
docker run -it -v `pwd`:/www -p 1180:80 --rm jermine/bbox httpd -p 80 -h /www

# use runit to management process in busybox
runsvdir -P /www/runit/service

docker run -d -v `pwd`:/www jermine/bbox runsvdir -P /www/runit/service

⁠Docker, runit, and graceful termination

The following code shoud be in Dockerfile CMD line with run.sh file.


#!/bin/sh

exec /sbin/runsvdir /etc/service

https://peter.bourgon.org/blog/2015/09/24/docker-runit-and-graceful-termination.html⁠

https://github.com/tozd/docker-runit/blob/master/runsvdir-start⁠

Tag summary

Content type

Image

Digest

Size

935.9 kB

Last updated

over 7 years ago

docker pull jermine/bbox