{"id":30120191,"url":"https://github.com/stakater/dockerfile-git2consul","last_synced_at":"2025-08-10T12:54:31.380Z","repository":{"id":93164778,"uuid":"113312627","full_name":"stakater/dockerfile-git2consul","owner":"stakater","description":"dockerfile image for git2consul","archived":false,"fork":false,"pushed_at":"2023-12-15T02:51:24.000Z","size":8,"stargazers_count":0,"open_issues_count":1,"forks_count":2,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-04-15T04:16:19.135Z","etag":null,"topics":["consul","docker-image","dockerfile","git2consul"],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/stakater.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2017-12-06T12:19:31.000Z","updated_at":"2024-04-15T04:16:19.136Z","dependencies_parsed_at":"2023-04-03T11:47:10.501Z","dependency_job_id":null,"html_url":"https://github.com/stakater/dockerfile-git2consul","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/stakater/dockerfile-git2consul","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stakater%2Fdockerfile-git2consul","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stakater%2Fdockerfile-git2consul/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stakater%2Fdockerfile-git2consul/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stakater%2Fdockerfile-git2consul/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stakater","download_url":"https://codeload.github.com/stakater/dockerfile-git2consul/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stakater%2Fdockerfile-git2consul/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269727092,"owners_count":24465397,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-10T02:00:08.965Z","response_time":71,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["consul","docker-image","dockerfile","git2consul"],"created_at":"2025-08-10T12:53:53.297Z","updated_at":"2025-08-10T12:54:31.368Z","avatar_url":"https://github.com/stakater.png","language":"Shell","readme":"# Dockerfile-git2consul\nDockerfile image for git2consul\n\u003ch3\u003egit2consul \u003c/h3\u003e \n`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. \u003cbr\u003e\nAny change in git repo is mapped on to the consul server after every 1 minute. \n\u003ch3\u003eUsage\u003c/h3\u003e\nTo run the docker container of `git2consul`, set command in environment variable `command`.\n\u003cbr\u003eE.g:\u003cbr\u003e ```docker run -d -e COMMAND=\"git2consul --endpoint 127.0.0.1 --port 80 --config-file /home/git2consul/config.json\" -v /home/git2consul/:/home/git2consul stakater/git2consul:0.12.13```\n\u003cbr\u003e\n\nwhere 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`.\n\u003cbr\u003e\nExample `config.json`:  \n```\n{\n  \"version\": \"1.0\",\n  \"repos\" : [{\n    \"name\" : \"keyValue pairs\",\n    \"url\" : \"your git repo link\",\n    \"branches\" : [\"dev\"],\n    \"include_branch_name\" : false,\n    \"ignore_repo_name\" : true,\n    \"ignore_file_extension\" : true,\n    \"expand_keys\": true,\n    \"hooks\": [{\n      \"type\" : \"polling\",\n      \"interval\" : \"1\"\n    }]\n  }]\n}\n```\nYou can learn more about `git2consul` configurations [here](https://github.com/breser/git2consul).\u003cbr\u003e \nIf you do not set command in environment variable `command`, container will run default command, which is as follow: \u003cbr\u003e\n`git2consul --endpoint 127.0.0.1 --port 80 --config-file /home/git2consul/config.json`\n\u003ch3\u003eAvailable Versions\u003c/h3\u003e\n`v0.12.13`\n\u003ch3\u003eLayers\u003c/h3\u003e\nalpine:3.5 \u003e stakater/base-alpine:3.5 \u003e stataker/node/6.9 \u003e stakater/git2consul\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstakater%2Fdockerfile-git2consul","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstakater%2Fdockerfile-git2consul","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstakater%2Fdockerfile-git2consul/lists"}