SonarQube by Neodoo En » Histórico » Versión 3
Francisco Javier Solans Benedí, 2024-04-10 08:28
| 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 | 3 | Francisco Javier Solans Benedí | ``` shell |
| 29 | 1 | Francisco Javier Solans Benedí | $ sudo systemctl status sonarqube |
| 30 | 3 | Francisco Javier Solans Benedí | ``` |
| 31 | 1 | Francisco Javier Solans Benedí | |
| 32 | Stop server: |
||
| 33 | 3 | Francisco Javier Solans Benedí | ``` shell |
| 34 | 1 | Francisco Javier Solans Benedí | $ sudo systemctl stop sonarqube |
| 35 | 3 | Francisco Javier Solans Benedí | ``` |
| 36 | 1 | Francisco Javier Solans Benedí | |
| 37 | Start server: |
||
| 38 | 3 | Francisco Javier Solans Benedí | ``` shell |
| 39 | 1 | Francisco Javier Solans Benedí | $ sudo systemctl start sonarqube |
| 40 | 3 | Francisco Javier Solans Benedí | ``` |
| 41 | 1 | Francisco Javier Solans Benedí | |
| 42 | 3 | Francisco Javier Solans Benedí | ### PostgreSQL |
| 43 | 1 | Francisco Javier Solans Benedí | |
| 44 | SonarQube is configurated with the PostgreSQL database. |
||
| 45 | |||
| 46 | View status server: |
||
| 47 | ``` shell |
||
| 48 | 2 | Francisco Javier Solans Benedí | $ sudo systemctl status postgresql |
| 49 | 3 | Francisco Javier Solans Benedí | ``` |
| 50 | 1 | Francisco Javier Solans Benedí | |
| 51 | Stop server: |
||
| 52 | 2 | Francisco Javier Solans Benedí | ``` shell |
| 53 | $ sudo systemctl stop postgresql |
||
| 54 | 1 | Francisco Javier Solans Benedí | ``` |
| 55 | 3 | Francisco Javier Solans Benedí | |
| 56 | 1 | Francisco Javier Solans Benedí | Start server: |
| 57 | 2 | Francisco Javier Solans Benedí | ``` shell |
| 58 | 1 | Francisco Javier Solans Benedí | $ sudo systemctl start postgresql |
| 59 | 2 | Francisco Javier Solans Benedí | ``` |
| 60 | |||
| 61 | ## Other useful data |
||
| 62 | |||
| 63 | **Location of sensitive information** |
||
| 64 | 1 | Francisco Javier Solans Benedí | All the information is saved in the database. |
| 65 | |||
| 66 | In PostgreSQL the data folder is /var/lib/pgsql/data |
||
| 67 | |||
| 68 | 2 | Francisco Javier Solans Benedí | **Encryption configuration** |
| 69 | 1 | Francisco Javier Solans Benedí | There is no encrypted data. |
| 70 | |||
| 71 | 2 | Francisco Javier Solans Benedí | **Changing system credentials** |
| 72 | 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" . |
| 73 | |||
| 74 | 2 | Francisco Javier Solans Benedí | **Instructions on how the user interacts with SonarQube to decrypt necessary data** |
| 75 | 1 | Francisco Javier Solans Benedí | You can use the SonarQube management console to view all necessary data. |
| 76 | |||
| 77 | 2 | Francisco Javier Solans Benedí | **How to assess and monitor the health and proper function of the application** |
| 78 | 1 | Francisco Javier Solans Benedí | 1. Navigate to your Amazon EC2 console and verify that you're in the correct region. |
| 79 | 2. Choose Instance and select your launched instance. |
||
| 80 | 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. |
||
| 81 | |||
| 82 | 2 | Francisco Javier Solans Benedí | ## Additional resources |
| 83 | 1 | Francisco Javier Solans Benedí | |
| 84 | 2 | Francisco Javier Solans Benedí | * SonarQube official site: https://www.sonarqube.org |
| 85 | * PostgreSQL: https://www.postgresql.org |