Proyecto

General

Perfil

SonarQube by Neodoo En » Histórico » Versión 2

Francisco Javier Solans Benedí, 2024-04-10 08:27

1 2 Francisco Javier Solans Benedí
{{toc}}
2 1 Francisco Javier Solans Benedí
3 2 Francisco Javier Solans Benedí
# Usage Instructions
4 1 Francisco Javier Solans Benedí
5 2 Francisco Javier Solans Benedí
## Getting started
6 1 Francisco Javier Solans Benedí
7 2 Francisco Javier Solans Benedí
1. Launch the product via 1-Click
8
2. Use a web browser to access the Admin console at: http://[ec2-ip]:9000, where [ec2_ip] is the public ip provided by Amazon for your instance.
9
3. Log in using the following credentials only the first time and then you will be asked to change the password in order to enter the application:
10
   * Username: admin
11
   * Password: Your instance id
12 1 Francisco Javier Solans Benedí
13
You can also access your instance via SSH using the username and your Amazon private key.
14
15 2 Francisco Javier Solans Benedí
The **username** depends on the operative system:
16
* Centos 9 Stream: 'ec2-user'
17
* Other Centos: 'centos'
18
* Ubuntu: 'ubuntu'
19
* Rocky Linux: 'rocky'
20 1 Francisco Javier Solans Benedí
21 2 Francisco Javier Solans Benedí
## Installation details
22
23 1 Francisco Javier Solans Benedí
SonarQube is deployed in /usr/java/sonarqube-[version] directory, which is linked to /usr/java/sonarqube.
24 2 Francisco Javier Solans Benedí
25 1 Francisco Javier Solans Benedí
Server service is configured with systemd.
26
27
View status server:
28
29
$ sudo systemctl status sonarqube
30 2 Francisco Javier Solans Benedí
31 1 Francisco Javier Solans Benedí
Stop server:
32
33
$ sudo systemctl stop sonarqube
34 2 Francisco Javier Solans Benedí
35 1 Francisco Javier Solans Benedí
Start server:
36
37
$ sudo systemctl start sonarqube
38
39
PostgreSQL
40
41
SonarQube is configurated with the PostgreSQL database.
42
43
View status server:
44 2 Francisco Javier Solans Benedí
``` shell
45 1 Francisco Javier Solans Benedí
$ sudo systemctl status postgresql
46
47 2 Francisco Javier Solans Benedí
Stop server:
48
``` shell
49 1 Francisco Javier Solans Benedí
$ sudo systemctl stop postgresql
50 2 Francisco Javier Solans Benedí
```
51 1 Francisco Javier Solans Benedí
Start server:
52 2 Francisco Javier Solans Benedí
``` shell
53 1 Francisco Javier Solans Benedí
$ sudo systemctl start postgresql
54 2 Francisco Javier Solans Benedí
```
55
56
## Other useful data
57
58
**Location of sensitive information**
59 1 Francisco Javier Solans Benedí
All the information is saved in the database.
60
61
In PostgreSQL the data folder is /var/lib/pgsql/data
62
63 2 Francisco Javier Solans Benedí
**Encryption configuration**
64 1 Francisco Javier Solans Benedí
There is no encrypted data.
65
66 2 Francisco Javier Solans Benedí
**Changing system credentials**
67 1 Francisco Javier Solans Benedí
To change the SonarQube you have to go to the Administration section, Security subsection, select users in the menu and, in your user press the action button and select "Enter a new Password" .
68
69 2 Francisco Javier Solans Benedí
**Instructions on how the user interacts with SonarQube to decrypt necessary data**
70 1 Francisco Javier Solans Benedí
You can use the SonarQube management console to view all necessary data.
71
72 2 Francisco Javier Solans Benedí
**How to assess and monitor the health and proper function of the application**
73 1 Francisco Javier Solans Benedí
1. Navigate to your Amazon EC2 console and verify that you're in the correct region.
74
2. Choose Instance and select your launched instance.
75
3. Select the server to display your metadata page and choose the Status checks tab at the bottom of the page to review if your status checks passed or failed.
76
77 2 Francisco Javier Solans Benedí
## Additional resources
78 1 Francisco Javier Solans Benedí
79 2 Francisco Javier Solans Benedí
* SonarQube official site: https://www.sonarqube.org
80
* PostgreSQL: https://www.postgresql.org