Inspired by https://github.com/kailunshi/consul-backup.
This utility helps manage consul.
If you have golang installed, you can use issue the following:
$ go get github.com/BSick7/envoyAlternatively, download the binary for your OS/Architecture from releases.
$ mkdir -p $GOPATH/src/github.com/BSick7
$ cd $GOPATH/src/github.com/BSick7
$ git clone git@github.com:BSick7/envoy.git
$ cd envoy
$ make deps
$ make installThis utility can be built as a statically linked library that can be embedded in a FROM scratch docker image.
$ make docker-build
$ cp dist/envoy_docker destination
Alternatively, download the binary from releases.
$ go run main.go
usage: envoy [--version] [--help] <command> [<args>]
Available commands are:
backup Backup consul k/v store
restore Restores consul k/v store$ envoy backup -http-address=127.0.0.1:8500 output.tar.gz$ CONSUL_HTTP_ADDR=127.0.0.1:8500
$ envoy backup > output.tar.gz$ envoy restore -http-address=127.0.0.1:8500 output.tar.gz$ CONSUL_HTTP_ADDR=127.0.0.1:8500
$ cat output.tar.gz | envoy restoreGITHUB_TOKEN environment variable must exist in CircleCI with public_repo and repo scope.
Travis automates this, but we are using CircleCI.