This folder host configuration files to run GrimoireLab using docker-compose, one of the easiest way to get started with GrimoireLab.
- A Git client
- Docker Engine and Docker Compose
- Recommended, at least, 2CPUs, 8GB memory RAM, and 2GB SWAP (MacOS users can manage it with Docker client for Mac)
For example, in one of my latest demos, I was using:
root@qiskit-6fc71ea6:~# git --version
git version 2.17.1
root@qiskit-6fc71ea6:~# docker --version
Docker version 19.03.1, build 74b1e89
root@qiskit-6fc71ea6:~# docker-compose --version
docker-compose version 1.22.0, build f46880fe
root@qiskit-6fc71ea6:~# free
total used free shared buff/cache available
Mem: 8167996 3463652 128844 1440 4575500 4413328
Swap: 0 0 0
root@qiskit-6fc71ea6:~# du -hs /
du: cannot access '/proc/2234/task/2234/fd/4': No such file or directory
du: cannot access '/proc/2234/task/2234/fdinfo/4': No such file or directory
du: cannot access '/proc/2234/fd/3': No such file or directory
du: cannot access '/proc/2234/fdinfo/3': No such file or directory
26G /Note: free and du are Linux utilities to display amount of free and used
memory in the system, and to estimate file space usage, respectively.
You should ensure enough virtual memory for Elasticsearch
(one of GrimoireLab components). You can do it running the following command as root in Linux or as administrator user in MacOS:
sysctl -w vm.max_map_count=262144$ screen ~/Library/Containers/com.docker.docker/Data/vms/0/tty
(then run:) sysctl -w vm.max_map_count=262144
Remember also to assign proper resources to Docker through the UI. 8GB Memory and 2GB Swap should work.
- Clone this project:
git clone https://github.com/chaoss/grimoirelab-
By default, this repository comes with some configuration files in
default-grimoirelab-settings. These files are the minimum set up to analyze git activity in this repository. If you want to analyze a different project with a different set of repositories and data sources, you need to modifyprojects.jsonandsetup.cfgfiles. See below more information about these files format. -
Access to
docker-composefolder and deploy GrimoireLab running this command:
cd grimoirelab/docker-compose
docker-compose up -dIf everything goes well, data will be gathered and processed. To get access to
them, go to http://localhost:8000/. To get access:
- User:
admin - Password:
GrimoireLab.1
To manage contributors profile information with SortingHat,
go to http://localhost:8000/identities/. To get access:
- User:
admin - Pass:
admin
Note: you can change user and password in the docker-compose.yml file.
This version doesn't come with visualizations. You need to manually import the dashboards from Sigils repository or create your own.
- The
projects.jsonfile format - The
setup.cfgfile format - Getting API tokens for different services:
There might be 2 potential scenarios:
- If you want to do a simple configuration change and restart the platform:
docker-compose restart- If you want to destroy current deployed configuration, and after some changes, start from fresh one:
docker-compose downand once they are down:
docker-compose up -d