Skip to content

dynamic sidekick container for building config files from environment vars

License

Notifications You must be signed in to change notification settings

cha87de/sidekick-confer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Docker Pulls

Base Image for Dynamic Sidekick Config Containers

Usage example:

Build your image with your template configuration files:

Create a new Dockerfile (example with telegraf.conf):

FROM cha87de/sidekick-confer
VOLUME /etc/telegraf/
ADD telegraf.conf.tmpl /etc/telegraf/

And place a variable in the telegraf.conf.tmpl e.g.:

...
[[outputs.influxdb]]
  urls = ["$INFLUX_SERVER"]
...

Build your config image as user/yourconfig:latest. During deploy time use environment variables to set the variable in your configuration file:

docker run -e INFLUX_SERVER=http://testblabla:8086 user/yourconfig:latest

Or use it with docker-compose:

config:
    image: user/yourconfig:latest
    restart: "no"
    environment:
    - INFLUX_SERVER=http://testblabla:8086

telegraf:
    image: telegraf:1.10-alpine
    volumes_from:
    - config

About

dynamic sidekick container for building config files from environment vars

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published