Sign inSign up

devth/git2consul

By devth

Updated over 10 years ago

Docker container for git2consul, with a volume to mount a local git repository.

Image
1

100K+

devth/git2consul repository overview

git2consul-docker

Docker Hub

Automated Dockerfile build repository for devth/git2consul.

Local repo

A volume exists at /repo. You can mount a git repo directly into that volume, and use it to populate your Consul instance. For example, given a git2consul config:

{
  "version": "1.0",
  "repos" : [{
    "include_branch_name" : false,
    "name" : "consul-config",
    "url" : "file:///repo/.git",
    "branches" : ["master"],
    "hooks": [{
      "type" : "polling",
      "interval" : "1"
    }]
  }]
}

You could run this in the root dir of a git repo on your machine, or e.g. in a Jenkins build:

docker run \
  -v `pwd`:/repo \
  --rm --name git2consul \
  devth/git2consul --endpoint $ENDPOINT

Build

docker build -t devth/git2consul .

License

Copyright (c) 2016 Trevor C. Hartman. Distributed under the MIT License.

Tag summary

Content type

Image

Digest

Size

47.4 MB

Last updated

over 10 years ago

docker pull devth/git2consul