Skip to content

Manage local application configuration files using templates and data from etcd or consul

License

Notifications You must be signed in to change notification settings

qiuweirun/confd

 
 

Repository files navigation

Update

  • 新增模板方法{{getServiceIp}},获取服务器IP。
  • 此方法并不完整,只能获取一个非环回地址IP,不合适服务器多个IP的场景。

docker build amd64-linux版

  • docker pull golang:1.9-stretch
  • docker run -it --name conf-build -v /your/path/to/confd:/go/src/github.com/kelseyhightower/confd golang:1.9-stretch /bin/bash
  • 容器内操作: cd /go/src/github.com/kelseyhightower/confd && make build && make install && cp /usr/local/bin/confd /go/src/github.com/kelseyhightower/confd/bin
  • 你的“/your/path/to/confd/bin”内的confd就是二次开发的amd64-linux二进制执行文件

confd

Build Status

confd is a lightweight configuration management tool focused on:

Community

Building

Go 1.10 is required to build confd, which uses the new vendor directory.

$ mkdir -p $GOPATH/src/github.com/kelseyhightower
$ git clone https://github.com/kelseyhightower/confd.git $GOPATH/src/github.com/kelseyhightower/confd
$ cd $GOPATH/src/github.com/kelseyhightower/confd
$ make

You should now have confd in your bin/ directory:

$ ls bin/
confd

Getting Started

Before we begin be sure to download and install confd.

Next steps

Check out the docs directory for more docs.

About

Manage local application configuration files using templates and data from etcd or consul

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 87.2%
  • Shell 11.8%
  • Makefile 1.0%