SonarQube by Neodoo En » Histórico » Versión 1
Francisco Javier Solans Benedí, 2024-03-13 06:37
| 1 | 1 | Francisco Javier Solans Benedí | Usage instructions |
|---|---|---|---|
| 2 | Getting started |
||
| 3 | |||
| 4 | Launch the product via 1-Click |
||
| 5 | |||
| 6 | 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. |
||
| 7 | |||
| 8 | 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: |
||
| 9 | |||
| 10 | Username: admin |
||
| 11 | |||
| 12 | Password: Your instance id |
||
| 13 | |||
| 14 | |||
| 15 | You can also access your instance via SSH using the username and your Amazon private key. |
||
| 16 | The username depends on the operative system: |
||
| 17 | - Centos 9 Stream: 'ec2-user' |
||
| 18 | - Other Centos: 'centos' |
||
| 19 | - Ubuntu: 'ubuntu' |
||
| 20 | - Rocky Linux: 'rocky' |
||
| 21 | |||
| 22 | Installation details |
||
| 23 | |||
| 24 | SonarQube is deployed in /usr/java/sonarqube-[version] directory, which is linked to /usr/java/sonarqube. |
||
| 25 | Server service is configured with systemd. |
||
| 26 | |||
| 27 | |||
| 28 | View status server: |
||
| 29 | |||
| 30 | $ sudo systemctl status sonarqube |
||
| 31 | Stop server: |
||
| 32 | |||
| 33 | $ sudo systemctl stop sonarqube |
||
| 34 | Start server: |
||
| 35 | |||
| 36 | $ sudo systemctl start sonarqube |
||
| 37 | |||
| 38 | PostgreSQL |
||
| 39 | |||
| 40 | SonarQube is configurated with the PostgreSQL database. |
||
| 41 | |||
| 42 | View status server: |
||
| 43 | |||
| 44 | $ sudo systemctl status postgresql |
||
| 45 | Stop server: |
||
| 46 | |||
| 47 | $ sudo systemctl stop postgresql |
||
| 48 | Start server: |
||
| 49 | |||
| 50 | $ sudo systemctl start postgresql |
||
| 51 | Other useful data |
||
| 52 | Location of sensitive information |
||
| 53 | All the information is saved in the database. |
||
| 54 | |||
| 55 | In PostgreSQL the data folder is /var/lib/pgsql/data |
||
| 56 | |||
| 57 | Encryption configuration |
||
| 58 | There is no encrypted data. |
||
| 59 | |||
| 60 | Changing system credentials |
||
| 61 | 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" . |
||
| 62 | |||
| 63 | Instructions on how the user interacts with SonarQube to decrypt necessary data |
||
| 64 | You can use the SonarQube management console to view all necessary data. |
||
| 65 | |||
| 66 | How to assess and monitor the health and proper function of the application. |
||
| 67 | 1. Navigate to your Amazon EC2 console and verify that you're in the correct region. |
||
| 68 | 2. Choose Instance and select your launched instance. |
||
| 69 | 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. |
||
| 70 | |||
| 71 | |||
| 72 | Additional resources |
||
| 73 | |||
| 74 | SonarQube official site: https://www.sonarqube.org |
||
| 75 | PostgreSQL: https://www.postgresql.org |