https://github.com/devth/git2consul-docker
Automated Dockerfile build for latest version of git2consul
https://github.com/devth/git2consul-docker
Last synced: about 11 hours ago
JSON representation
Automated Dockerfile build for latest version of git2consul
- Host: GitHub
- URL: https://github.com/devth/git2consul-docker
- Owner: devth
- License: apache-2.0
- Created: 2016-03-15T19:53:42.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2016-05-02T20:49:13.000Z (over 9 years ago)
- Last Synced: 2025-02-02T15:32:32.685Z (11 months ago)
- Homepage: https://hub.docker.com/r/devth/git2consul/
- Size: 5.86 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# git2consul-docker
[](https://hub.docker.com/r/devth/git2consul/tags/)
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:
```json
{
"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](LICENSE).