robbertkl/base-s6

By robbertkl

Updated about 7 years ago

Base image extension with s6-overlay

Image
1

3.9K

robbertkl/base-s6 repository overview

robbertkl/base-s6

Base image extension with s6-overlay:

  • Based on robbertkl/base
  • Uses s6-overlay
  • Runs cron and rsyslogd services
  • Helper service to output arbitrary logs to stdout or stderr
  • Basic SSL certificate preparation

Usage

Just extend it in your Dockerfile using FROM. Example:

FROM robbertkl/base-s6

RUN cleaninstall package1 package2 package3
RUN echo /var/log/custom.log >> /etc/services.d/logs/stderr

...

Logging

To have your custom logs show up in docker logs, you can append your name to either /etc/services.d/logs/stdout or /etc/services.d/logs/stderr.

SSL

As a convention, please copy or mount your SSL files to /private/ssl named cert.pem, key.pem and ca.pem. A default (snakeoil) certificate will be provided as a fallback. Create custom (combined) pem bundles from these files in your s6 run scripts.

Alternatively, you can mount a Let's Encrypt configuration to /etc/letsencrypt and set LETSENCRYPT_HOST to the hostname of the certificate to use. Symlinks with the correct names will then be create in /private/ssl.

Authors

License

This repo is published under the MIT License.

Tag summary

Content type

Image

Digest

Size

99.2 MB

Last updated

about 7 years ago

Requires Docker Desktop 4.37.1 or later.