Linux Alpine image with Rancher tools
192
This images creates a volume /opt/tools and permits share tools with the services, avoiding coupling service with configuration.
That volume has the following structure:
|- /opt/tools
|-|- confd # Confd directory
|-|-|- etc
|-|-|-|- templates
|-|-|-|- conf.d
|-|-|- bin/service-conf.sh # Confd script to start stop or restart confd with rancher config
|-|- monit/conf.d/monit-conf.cfg # Confd start script for monit
To use this image include FROM robtimmer/alpine-rancher-tools at the top of your Dockerfile, add templates and conf.d files from your service.
Starting from robtimmer/alpine-rancher-tools provides you with the ability to easily get dinamic configuration using confd. confd will also keep running checking for config changes, restarting your service.
This image has to be started once as a sidekick of your service (based in alpine-monit), exporting a /opt/tools volume to it. It adds monit conf.d to start confd with a default parameters, that you can overwrite with environment variables.
These are the default parameters to run confd. You could overwrite these values, setting environment variables.
Content type
Image
Digest
Size
15.3 MB
Last updated
over 9 years ago
docker pull robtimmer/alpine-rancher-tools