Sign inSign up

gongt/alpine-init

By gongt

Updated about 4 years ago

EXTREAM simple init script

Image
0

8.5K

gongt/alpine-init repository overview

docker

init

Extreme simple /sbin/init for alpine (or anything) in a container.

Features:

  • start multiple process
  • ensure their stdout/stderr does not get jumbled together
  • quit (or, "shutdown system") when:
    • any child process quit
    • receive SIGINT
  • on quit, send signal to all process, and (infinity) wait then to quit

Config file

/etc/programs

[php-fpm]
arg[]:/opt/prepare-and-run-php-fpm.sh
signal:int

[nginx]
arg[]:/usr/sbin/nginx
arg[]:-g
arg[]:daemon: off;
signal:int

# comment

Tag summary

Content type

Image

Digest

sha256:ac355d5a6

Size

3.4 MB

Last updated

about 4 years ago

docker pull gongt/alpine-init