GrimoireLab from Scratch

GrimoireLab from Scratch

Slides for the "GrimoireLab from Scratch" practical workshop at CHAOSSCon EU 2018.

B7081d0131ad47821467b8e81434cf7a?s=128

Jesus M. Gonzalez-Barahona

February 02, 2018
Tweet

Transcript

  1. chaoss.community GrimoireLab from scratch DIY guide to using GrimoireLab for

    Software Development Analytics
  2. chaoss.community Installing from pip $ python3 -m venv /tmp/gl $

    source /tmp/gl/bin/activate (gl) $ pip install --upgrade pip setuptools wheel (gl) $ pip install grimoire-mordred grimoirelab.gitbooks.io/tutorial/content/before-you-start/in stalling-grimoirelab.html
  3. chaoss.community Running Perceval (gl) $ perceval --help (gl) $ perceval

    git https://github.com/grimoirelab/perceval.git grimoirelab.gitbooks.io/tutorial/content/perceval/git.html
  4. chaoss.community Producing raw and enriched indexes (gl) $ p2o.py --enrich

    --index git_raw --index-enrich git \ -e http://localhost:9200 --no_inc --debug \ git https://github.com/grimoirelab/perceval.git (assumes Elasticsearch at http://localhost:9200) grimoirelab.gitbooks.io/tutorial/content/grimoireelk/a-simple- dashboard.html
  5. chaoss.community Producing a dashboard (assumes Elasticsearch at http://localhost:9200, Kibiter at

    http://localhost:5601 ) Prepare: mordred.cfg Prepare: projects.json Maybe: identities.yaml Maybe: menu.yaml (es) mordred -c mordred.cfg grimoirelab.gitbooks.io/tutorial/content/mordred/a-grimoirelab -dashboard-in-one-step.html
  6. chaoss.community Producing a report (assumes Elasticsearch at http://localhost:9200 ) (es)

    $ pip install manuscripts (es) $ manuscripts -d /tmp/report-result \ -u http://localhost:9200 \ -n GrimoireLab --data-sources git
  7. chaoss.community Installing with containers $ docker run -p 127.0.0.1:9200:9200 \

    -p 127.0.0.1:5601:5601 -p 127.0.0.1:3306:3306 \ -v $(pwd)/logs:/logs \ -v $(pwd)/mordred-jgb.cfg:/mordred-override.cfg \ -t grimoirelab/full grimoirelab.gitbooks.io/tutorial/content/before-you-start/deploying -from-dockerhub.html
  8. chaoss.community Installing with containers (2) $ docker run -p 127.0.0.1:9200:9200

    \ -p 127.0.0.1:5601:5601 -p 127.0.0.1:3306:3306 \ -v $(pwd)/logs:/logs \ -v $(pwd)/mordred-jgb.cfg:/mordred-override.cfg \ -e RUN_MORDRED="NO" \ -t grimoirelab/full grimoirelab.gitbooks.io/tutorial/content/before-you-start/deploying -from-dockerhub.html