You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SirMordred is the tool used to coordinate the execution of the GrimoireLab platform, via two main configuration files, the [setup.cfg](./setup-cfg.md) and [projects.json](./projects-json.md), which are summarized in their corresponding sections.
10
+
SirMordred is the tool used to coordinate the execution of the GrimoireLab
11
+
platform, via two main configuration files, the [setup.cfg](./setup-cfg.md) and
12
+
[projects.json](./projects-json.md), which are summarized in their corresponding
13
+
sections.
10
14
11
-
SirModred relies on ElasticSearch, Kibiter and MySQL/MariaDB. The current versions used are:
15
+
SirModred relies on Elasticsearch, Kibiter and MySQL/MariaDB. The current
16
+
versions used are:
12
17
13
-
-ElasticSearch 6.8.6
18
+
-Elasticsearch 6.8.6
14
19
- Kibiter 6.8.6
15
20
- MySQL/MariaDB (5.7.24/10.0)
16
21
17
22
There are mainly 2 options to get started with SirMordred:
18
-
-[Source code and docker](#source-code-and-docker-):
19
-
In this method, the applications (ElasticSearch, Kibiter and MariaDB) are installed using docker and the GrimoireLab Components are installed using the source code.
20
-
-[Only docker](#only-docker-):
21
-
In this method, the applications (ElasticSearch, Kibiter and MariaDB) and the GrimoireLab Components are installed using docker.
23
+
-[Source code and docker](#source-code-and-docker): In this method, the
24
+
applications (Elasticsearch, Kibiter and MariaDB) are installed using docker and
25
+
the GrimoireLab Components are installed using the source code.
26
+
-[Only docker](#only-docker): In this method, the applications (Elasticsearch,
27
+
Kibiter and MariaDB) and the GrimoireLab Components are installed using docker.
22
28
23
29
## Source code and docker
24
30
25
31
### Getting the containers
26
32
27
-
You will have to install ElasticSearch (6.8.6), Kibiter (6.8.6) and a MySQL/MariaDB database (5.7.24/10.0). You can use the following docker-compose to have them running.
33
+
You will have to install Elasticsearch (6.8.6), Kibiter (6.8.6) and a
34
+
MySQL/MariaDB database (5.7.24/10.0). You can use the following docker-compose
35
+
to have them running.
36
+
37
+
> Help: You need to install docker and docker-compose for this. Please refer the
> 1. You can omit (comment/remove) the `mariadb` section in case you have MariaDB or MySQL already installed in your system.
34
-
> 2. It is not mandatory to use docker to install ElasticSearch, Kibiter and MySQL/MariaDB database. They can be installed by other means too (source code). We are not much concerned about the method they are installed. Docker is the easiest way as it mostly avoids the errors caused by them.
43
+
> 1. You can omit (comment/remove) the `mariadb` section in case you have
44
+
> MariaDB or MySQL already installed in your system.
45
+
> 2. It is not mandatory to use docker to install Elasticsearch, Kibiter and
46
+
> MySQL/MariaDB database. They can be installed by other means too (source
47
+
> code). We are not much concerned about the method they are installed.
48
+
> Docker is the easiest way as it mostly avoids the errors caused by them.
49
+
50
+
There are two versions of Elasticsearch and Kibiter which can be used, with
51
+
SearchGuard (secured one) and the without SearchGuard (not secured). You can
52
+
choose either of the versions.
35
53
36
54
**docker-compose (with SearchGuard)**
37
55
38
-
> **Note**: For accessing Kibiter and/or creating indexes login is required, the `username:password` is `admin:admin` in [`setup.cfg`](https://github.com/chaoss/grimoirelab-sirmordred/blob/master/sirmordred/utils/setup.cfg) file.
56
+
For accessing Elasticsearch/Kibiter, login credentials (`admin:admin`) is
57
+
required. You are also expected to update the configurations in the `setup.cfg`
58
+
file. See [#defining-the-es-configurations](#defining-the-es-configurations).
59
+
39
60
40
61
```
41
62
elasticsearch:
@@ -45,6 +66,7 @@ elasticsearch:
45
66
- 9200:9200
46
67
environment:
47
68
- ES_JAVA_OPTS=-Xms2g -Xmx2g
69
+
48
70
kibiter:
49
71
restart: on-failure:5
50
72
image: bitergia/kibiter:secured-v6.8.6-3
@@ -59,14 +81,24 @@ kibiter:
59
81
- elasticsearch
60
82
ports:
61
83
- 5601:5601
84
+
85
+
mariadb:
86
+
image: mariadb:10.0
87
+
expose:
88
+
- "3306"
89
+
environment:
90
+
- MYSQL_ROOT_PASSWORD=
91
+
- MYSQL_ALLOW_EMPTY_PASSWORD=yes
62
92
```
63
93
64
-
**docker-compose (without SearchGuard)**
94
+
**docker-compose (without SearchGuard)**
65
95
66
-
> **Note**: Here, access to kibiter and elasticsearch don't need credentials.
96
+
For accessing Elasticsearch/Kibiter, no login credentials is required. The
97
+
configurations in the `setup.cfg` file need to be updated. See
To install the dependencies, you can click on `File` -> `Settings` -> `Project` -> `Project Interpreter`, and then the `+` located on the top right corner (see figure below).
205
+
To install the dependencies, you can click on `File` -> `Settings` -> `Project`
206
+
-> `Project Interpreter`, and then the `+` located on the top right corner (see
Now that you have the ElasticSearch, Kibiter and MariaDB running on your system and the project configured in the PyCharm, we can execute micro-mordred/sirmordred.
219
+
Now that you have the Elasticsearch, Kibiter and MariaDB running on your system
220
+
and the project configured in the PyCharm, we can execute
- For accessing Elasticsearch/Kibiter, login credentials (`admin:admin`) is
231
+
required. You are also expected to update the configurations in the
232
+
`setup.cfg` file.
233
+
234
+
```
235
+
[es_collection]
236
+
url = https://admin:admin@localhost:9200
237
+
238
+
[es_enrichment]
239
+
url = https://admin:admin@localhost:9200
240
+
```
241
+
242
+
- For accessing Elasticsearch/Kibiter, no login credentials is required. The
243
+
configurations in the `setup.cfg` file can be updated as below.
244
+
245
+
```
246
+
[es_collection]
247
+
url = http://localhost:9200
162
248
163
-
To execute micro-mordred, define a [setup.cfg](https://github.com/chaoss/grimoirelab-sirmordred/blob/master/sirmordred/utils/setup.cfg) and [projects.json](https://github.com/chaoss/grimoirelab-sirmordred/blob/master/sirmordred/utils/projects.json), and
164
-
run the following commands, which will collect and enrich the data coming from the git sections and upload the corresponding panels to Kibiter:
249
+
[es_enrichment]
250
+
url = http://localhost:9200
165
251
```
252
+
253
+
### Micro Mordred
254
+
255
+
Run the following commands, which will collect and enrich the data coming from
256
+
the git sections and upload the corresponding panels to Kibiter:
0 commit comments