Git Product home page Git Product logo

docker-confd's Introduction

docker-confd

Base image with confd and supervisor. Use to make a service dynamically configured using confd. This image starts from ubuntu:latest and installs both confd and supervisor so that services can easily inherit dynamic configuration using confd from any backend that confd supports. It also provides a start script /opt/start that will initialize confd and start the supervisor after adding a /etc/supervisor/conf.d/confd.conf so that configuration can be dynamically changed.

In order to use this base image, your Dockerfile should specify FROM cjhardekopf/confd. After installing and setting up the desired service you need to put the appropriate dynamic configuration in /etc/confd/conf.d/ and /etc/confd/templates/. This will set up the runtime configuration. In addition, put at least one .conf file in /etc/supervisor/conf.d/ so that supervisor can correctly start your service. In the confd configuration make sure to tell it how to restart your service (using supervisor) on configuration changes if necessary. Then you should just use the /opt/start script as your ENTRYPOINT to start everything.

You can specify a subset of the confd command line arguments as arguments to the /opt/start script in order to configure the source of configuration information:

  • -b|--backend="$backend"
  • --client-ca-keys="$client_ca_keys"
  • --client-cert="$client_cert"
  • --client-key="$client_key"
  • -i|--interval=$interval
  • -n|--node=[$node]
  • -p|--prefix="$prefix"
  • -s|--scheme="$scheme"
  • --srv-domain="$srv_domain"
  • -w|--watch
  • -h|--help

You can also specify some of the basic options from the environment. They are all optional and can be overridden from the command line:

  • CONFD_BACKEND
  • CONFD_INTERVAL
  • CONFD_NODE
  • CONFD_PREFIX
  • CONFD_SCHEME

docker-confd's People

Contributors

cjhardekopf avatar sporkmonger avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.