Skip to content

[micro-mordred] Add tutorial for exectution of Micro-Mordred via #87

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 12, 2019
Merged

[micro-mordred] Add tutorial for exectution of Micro-Mordred via #87

merged 1 commit into from
Jun 12, 2019

Conversation

inishchith
Copy link
Contributor

@valeriocos @jgbarah Please do let me know if any section needs more elaboration :)

Fixes: #84

Signed-off-by: inishchith inishchith@gmail.com

@inishchith inishchith marked this pull request as ready for review May 31, 2019 07:43
@inishchith
Copy link
Contributor Author

@valeriocos Ping :)

<p><b>Browser: Kibiter Instance</b></p>
</div>

3. We need to create and Index Pattern before we move further, but as you can see on the `Kibiter Instance` above, it say `Couldn't find any Elasticsearch data. You'll need to index some data into Elasticsearch before you can create an index pattern`. Hence, in order to do that, we'll now execute mirco-mordred using the following command, which will execute the `Raw` and `Enrich` tasks for the Git config section from the provided `setup.cfg` file.
Copy link
Member

@valeriocos valeriocos Jun 4, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The beginning of the paragraph can be confusing for a reader, a possible alternative could be:

As you can see on the `Kibiter Instance` above, it say `Couldn't find any Elasticsearch data. You'll need to index
 some data into Elasticsearch before you can create an index pattern`. Hence, in order to index some data, we'll
 now execute micro-mordred using the following command, which will call the `Raw` and `Enrich` tasks for the
 Git config section from the provided `setup.cfg` file.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for the confusion. I'll make sure to avoid such in the future.
Thanks for a reference alternative :)


We'll (for the purpose of this tutorial) use the files provided in the `/utils` directory, but feel free to play around with the file and their configurations :)

- **Note**: In case the process fails to index the data to the ElasticSearch, check the `.perceval` folder in the home directory; which in this case may contain same repositories as mentioned in the `projects.json` file.
Copy link
Member

@valeriocos valeriocos Jun 4, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It could be useful to add also the action to take: rm -rf .perceval/repositories/...

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes. That would be helpful.
Thanks!

3. We need to create and Index Pattern before we move further, but as you can see on the `Kibiter Instance` above, it say `Couldn't find any Elasticsearch data. You'll need to index some data into Elasticsearch before you can create an index pattern`. Hence, in order to do that, we'll now execute mirco-mordred using the following command, which will execute the `Raw` and `Enrich` tasks for the Git config section from the provided `setup.cfg` file.

```
$ python3 micro.py --raw --enrich setup.cfg --backends git github
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

github can be removed ?


- **Note**: In case the process fails to index the data to the ElasticSearch, check the `.perceval` folder in the home directory; which in this case may contain same repositories as mentioned in the `projects.json` file.

4. Now we can create index pattern and on it's successful creation we can analyzer the data as per fields. Now, we execute the `panels` task to load the corresponding `sigils panels` to Kibiter instance using the following command.
Copy link
Member

@valeriocos valeriocos Jun 4, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are some typos in this sentence:
missing comma after Now
index pattern-> the index pattern
it's-> its
analyzer -> analyze

The sentence could be rewritten as follows:

Now, we can create the index pattern, and after its successful creation we can analyze the data as per fields. 
Then, we can execute the `panels` task to load the corresponding `sigils panels` to Kibiter via the 
following command.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for pointing these out!.
I'll make the changes.

$ python3 micro.py --panels --cfg setup.cfg
```

On successful execution of the above command, we can manage to produce some dashboard similar to the one shown below -
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing full stop at the end of the sentence

<p><b>Dashboard - Git: Areas of Code </b></p>
</div>

- Hence, we have successfully executed micro-mordred with the help of docker-compose
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same as above

Copy link
Member

@valeriocos valeriocos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall LGTM, I left some suggestions. Thanks @inishchith

@valeriocos valeriocos requested a review from jgbarah June 4, 2019 13:55
Docker-Compose

Signed-off-by: inishchith <inishchith@gmail.com>
@inishchith
Copy link
Contributor Author

@valeriocos Thanks a lot! for the review.
I've gone through the comments and re-read the document and updated it wherever necessary.
Please let me know if any changes required :)

@inishchith
Copy link
Contributor Author

@jgbarah @valeriocos Can you have a look at this.

Thanks!

Copy link
Contributor

@jgbarah jgbarah left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@valeriocos: ready to merge, from your point of view?

@valeriocos valeriocos self-requested a review June 12, 2019 09:41
Copy link
Member

@valeriocos valeriocos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks @inishchith @jgbarah

@jgbarah jgbarah merged commit afb733b into chaoss:master Jun 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[components] How to play with Grimoirelab components
3 participants