Skip to content

Latest commit

 

History

History
54 lines (37 loc) · 2.06 KB

README.md

File metadata and controls

54 lines (37 loc) · 2.06 KB

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.