Public | Automated Build

Last pushed: 2 years ago
Short Description
Script to read GIT repositories for commits and push the commit meta data to ElasticSearch
Full Description

Points to note:
1) The config folder containing the config.json file should be mounted into the container at /workspace/configs.
2) The GIT repositories to be monitored should be mounted into the container at the location specified in the config.json file.
3) The cache folder should be mounted into the container at the location specified in the config.json file.
4) The container can be run in two modes:
a) setup: This creates the ElasticSearch index and mapping.
b) sync: This scans the repositories and pushes the read commit meta data to ElasticSearch

Use cases:
1) The container could be run on demand in setup or sync mode.
2) Run the container in sync mode via a cron job to periodically push commits to ElasticSearch.

Sample command line parameters:
docker run -it --net=myelasticsearchnetwork -v ${PWD}/my_cache:/tmp/cache -v /home/ajay/myrepo:/tmp/myrepo -v ${PWD}/configs:/workspace/configs ajaydivakaran/gitmonitorf setup

Sample config file:
Refer: https://github.com/ajaydivakaran/gitmonitorfeeder

Docker Pull Command
Owner
ajaydivakaran
Source Repository

Comments (0)