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
Copy file name to clipboardExpand all lines: basics/dockerhub.md
+10-10Lines changed: 10 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,14 +7,14 @@ For using these container images, ensure you have a recent version of `docker` i
7
7
To try `grimoirelab/full`, just type:
8
8
9
9
```bash
10
-
$ docker run -p 127.0.0.1:5601:5601 \
11
-
-v $(pwd)/credentials.cfg:/override.cfg \
12
-
-t grimoirelab/full
10
+
docker run -p 127.0.0.1:5601:5601 \
11
+
-v $(pwd)/credentials.cfg:/override.cfg \
12
+
-t grimoirelab/full
13
13
```
14
14
15
15
`credentials.cfg` should have a GitHub API token, in `mordred.cfg` format:
16
16
17
-
```
17
+
```cfg
18
18
[github]
19
19
api-token = XXX
20
20
```
@@ -28,15 +28,15 @@ The resulting dashboard will be available from Kibiter, and you can see it by po
28
28
What is even more interesting: you can get a shell in the container (after launching it), and run arbitrary GrimoireLab commands (`container_id` is the identifier of the running container, that you can find out with `docker ps`, or by looking at the first line when running the container):
If you're running the container on Windows through Docker Quickstart Terminal and Oracle VirtualBox, additional steps need to be taken to access the dashboard from your Windows machine. First, you then want to go into the settings for the virtual machine through the VirtualBox manager. To accomplish this, click on your VM, and click on 'Settings'. Now go to the 'Network' tab and you should see two adapters, we want to reconfigure adapter 1. Change the 'Attached to' setting to 'Bridged Adapter', open up the Advanced dropdown, and change the Promiscuous Mode to 'Allow VMs'. Now change Bridged Adapter to NAT and click on Port Forwarding. Here you need to set up a rule that allows port 5601 on the VM to talk to localhost:5601 on your host machine. To do this, click the green diamond with a '+' inside it to add a new rule. Name this rule whatever you wish, set its protocol to TCP, host IP to 127.0.0.1, Host Port to 5601, leave Guest IP blank, and set Guest Port to 5601 and click OK. While you're in settings, I recommend upping the memory for your VM to 2048MB, and setting display memory to 10MB. After you've done this you can now exit all the way out of settings. You now need to stop the docker container if it's currently running, shut down your VM, and restart your VM. Once the VM is restarted, you'll need to run ``ifconfig | grep inet`` on the virtual machine the container is running on to find its local IP address, most likely it will be along the lines of 10.0.2.x. Now rerun
35
35
36
36
```bash
37
-
$ docker run -p x.x.x.x:5601:5601 \
38
-
-v $(pwd)/credentials.cfg:/override.cfg \
39
-
-t grimoirelab/full
37
+
docker run -p x.x.x.x:5601:5601 \
38
+
-v $(pwd)/credentials.cfg:/override.cfg \
39
+
-t grimoirelab/full
40
40
```
41
41
but replace the x'ed out IP address with the IP address of your VM that you got from `ifconfig`. If all goes well, once you see the docker command line print out "Elasticsearch Aliased: Created!", you should be able to go to 127.0.0.1:5601 on your host machine web browser and be able to access the GrimoireLab dashboard.
42
42
@@ -48,7 +48,7 @@ Have a look at the section
48
48
49
49
If you happen to run the container in Windows, remember that you should use backslash instead of slash for the paths related to Windows. That means that paths internal to the container will still include slashes, but those that refer to files or directories in the host machine will include backslashes, and maybe disk unit identifiers. For example:
50
50
51
-
```
52
-
$ docker run -p 127.0.0.1:5601:5601 -v D:\test\credentials.cfg:/override.cfg \
51
+
```bash
52
+
docker run -p 127.0.0.1:5601:5601 -v D:\test\credentials.cfg:/override.cfg \
Copy file name to clipboardExpand all lines: basics/install.md
+9-9Lines changed: 9 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -104,7 +104,7 @@ This should produce a banner with information about command line arguments, and
104
104
105
105
Assuming everything was fine, next thing is getting information about an specific backend. Let's start with the git backend, which will be a good starter for testing:
106
106
107
-
```
107
+
```bash
108
108
(gl) $ perceval git --help
109
109
```
110
110
@@ -208,14 +208,14 @@ Some of GrimoireLab dependencies need non-Python packages as pre-requisites to b
208
208
209
209
* For `dulwich` to be installed, you need to have some Python libraries present. In Debian-derived systems (such as Ubuntu), that can be done by installing the `python3-dev` package:
210
210
211
-
```
212
-
$ sudo apt-get install python3-dev
213
-
$ sudo apt-get install build-essential
211
+
```bash
212
+
sudo apt-get install python3-dev
213
+
sudo apt-get install build-essential
214
214
```
215
215
216
216
Usually, you know you need this when you have a problem installing `dulwich`. For example, you check the output of `pip install` and you find:
217
217
218
-
```
218
+
```bash
219
219
dulwich/_objects.c:21:10: fatal error: Python.h: No such file or Directory
220
220
```
221
221
@@ -230,7 +230,7 @@ Previous instructions are for installing the Python packages corresponding to th
230
230
It is designed to work standalone, with just a few dependencies. It is easy to produce a Python virtual environment with all GrimoireLab tools (and dependencies) installed, corresponding to the latest version in the master branch of each of the development repositories. Just the utility, and run:
[releases directory](https://github.com/chaoss/grimoirelab/tree/master/releases) and run (assuming you downloaded the release file `elasticgirl.21` to the current directory):
If you want, you can also produce the Python packages (wheels and dists) for any release, or the latest versions in development repositories. For example, for building packages for the latest versions in directory `/tmp/dists`:
Copy file name to clipboardExpand all lines: basics/supporting.md
+9-9Lines changed: 9 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -33,20 +33,20 @@ provided the right version of Python is available. In other platforms, your mile
33
33
Python3 is a standard package in Debian, so it is easy to install:
34
34
35
35
```bash
36
-
$ sudo apt-get install python3
36
+
sudo apt-get install python3
37
37
```
38
38
39
39
Once installed, you can check the installed version:
40
40
41
41
```bash
42
-
$ python3 --version
42
+
python3 --version
43
43
```
44
44
45
45
For installing some other Python modules, including GrimoireLab modules, you will need `pip` for Python3. For using `venv` virtual environments, you will also need `ensurepip`. Both are available in Debian and derivatives as packages `python3-pip` and `python3-venv`:
46
46
47
47
```bash
48
-
$ sudo apt-get install python3-pip
49
-
$ sudo apt-get install python3-venv
48
+
sudo apt-get install python3-pip
49
+
sudo apt-get install python3-venv
50
50
```
51
51
52
52
More information about installing Python3 in other platforms is available in [Properly installing Python](http://docs.python-guide.org/en/latest/starting/installation/). In addition, you can also check information on [how to install pip](https://pip.pypa.io/en/stable/installing/).
@@ -56,7 +56,7 @@ More information about installing Python3 in other platforms is available in [Pr
56
56
If you are retrieving data from git repositories, you will need git installed. Pretty simple:
57
57
58
58
```bash
59
-
$ sudo apt-get install git-all
59
+
sudo apt-get install git-all
60
60
```
61
61
62
62
More information about installing git in other platforms is available in
@@ -71,7 +71,7 @@ For installing Elasticsearch you can follow its [installation instructions](http
71
71
Assuming the installed ElasticSearch directory is `elasticsearch`, to launch it you will just run the appropriate command \(no need to run this from the virtual environment\):
72
72
73
73
```bash
74
-
$ elasticsearch/bin/elasticsearch
74
+
elasticsearch/bin/elasticsearch
75
75
```
76
76
77
77
This will launch Elasticsearch that will listen via its HTTP REST API at `http://localhost:9200`. You can check that everything went well by pointing your web browser to that url, and watching the ElasticSearch welcome message.
@@ -91,7 +91,7 @@ You can install Kibana instead of Kibiter. Maybe you will lose some functionalit
91
91
Assuming the installed Kibana directory is `kibana`, to launch it, again just run the appropriate command:
92
92
93
93
```bash
94
-
$ kibana/bin/kibana
94
+
kibana/bin/kibana
95
95
```
96
96
97
97
This should serve a Kibana instance in `http://localhost:5601`. Point your web browser to that url, and you´ll see the Kibana welcome page.
@@ -105,7 +105,7 @@ Now, we´re ready to go.
105
105
Instead of following the installation instructions mentioned above, you can also install ElasticSearch and Kibana as a Docker container, by using pre-composed images. For example:
106
106
107
107
```bash
108
-
$ docker run -d -p 9200:9200 -p 5601:5601 nshou/elasticsearch-kibana
108
+
docker run -d -p 9200:9200 -p 5601:5601 nshou/elasticsearch-kibana
109
109
```
110
110
111
111
Then you can connect to Elasticsearch by localhost:9200 and its Kibana front-end by localhost:5601. See [details about these Docker images in DockerHub](https://hub.docker.com/r/nshou/elasticsearch-kibana/)
@@ -116,7 +116,7 @@ Then you can connect to Elasticsearch by localhost:9200 and its Kibana front-end
116
116
If you are going to use SortingHat, you will need a database. Currently, MySQL-like databases are supported. In our case, we will use MariaDB. Installing it in Debian is easy:
0 commit comments