Docker container for git2consul, with a volume to mount a local git repository.
100K+
Automated Dockerfile build repository for devth/git2consul.
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
docker build -t devth/git2consul .
Copyright (c) 2016 Trevor C. Hartman. Distributed under the MIT License.
Content type
Image
Digest
Size
47.4 MB
Last updated
over 10 years ago
docker pull devth/git2consul