You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`git2consul` takes one or more git repositories and then map them on to the consul server. Target is to read configurations from git repo and save them as key value pairs in consul server. <br>
5
+
Any change in git repo is mapped on to the consul server after every 1 minute.
6
+
<h3>Usage</h3>
7
+
To run the docker container of `git2consul`, set command in environment variable `command`.
where endpoint is the location of the consul server, port is the consul server port and config.json file contains the information of git repository and some other configurations of `git2consul`.
12
+
<br>
13
+
Example `config.json`:
14
+
```
15
+
{
16
+
"version": "1.0",
17
+
"repos" : [{
18
+
"name" : "keyValue pairs",
19
+
"url" : "your git repo link",
20
+
"branches" : ["dev"],
21
+
"include_branch_name" : false,
22
+
"ignore_repo_name" : true,
23
+
"ignore_file_extension" : true,
24
+
"expand_keys": true,
25
+
"hooks": [{
26
+
"type" : "polling",
27
+
"interval" : "1"
28
+
}]
29
+
}]
30
+
}
31
+
```
32
+
You can learn more about `git2consul` configurations [here](https://github.com/breser/git2consul).<br>
33
+
If you do not set command in environment variable `command`, container will run default command, which is as follow: <br>
0 commit comments