Public | Automated Build

Last pushed: 2 years ago
Short Description
Docker container for git2consul, with a volume to mount a local git repository.
Full Description

git2consul-docker

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
.

Docker Pull Command
Owner
devth
Source Repository