Public | Automated Build

Last pushed: 2 years ago
Short Description
Short description is empty for this repo.
Full Description

alpine-base

An Alpine Linux 3.2 based base image including the s6 (via
s6-overlay), to make it super simple to start multiple process
and manage them correctly.

Usage

Use this as a base image in your Dockerfile.

FROM easysys/alpine-base

To start your service using s6:

  • create a folder at /etc/services.d/service-name
  • create a file in your new folder called run and give it execute permissions
  • inside that file start your service, for example:
#!/bin/sh
set -e

# Apache gets grumpy about PID files pre-existing
rm -f /var/run/apache2/apache2.pid

exec httpd -DFOREGROUND

Crashes, logs, no-restarts?

s6 has a number of other options that you can use to customise
what happens when your process suddenly dies. s6-overlay also has
a guide to customising s6 (when using
s6-overlay).

Docker Pull Command
Owner
easysys
Source Repository

Comments (0)