| ... | ... | @@ -130,9 +130,46 @@ $ git push origin master |
|
|
|
|
|
|
|
- Press continue and wait for installation to complete
|
|
|
|
- After installation press Enter and next time you shut down system, **remember to remove installation disc form machine's settings**
|
|
|
|
- **Optional but recommended:** After Ubuntu is installed to boost up performance and to have all drivers up to date, you have to install Guest Additions
|
|
|
|
- When machine is up and running, click from machines toolbar Devices -> Insert Guest Additions CD image...
|
|
|
|
- Image has auto-run script inside and it will install packages automatically if you accept it
|
|
|
|
|
|
|
|

|
|
|
|
|
|
|
|
- What we need next is SonarQube, navigate in virtual machine to their [home site](https://www.sonarqube.org)
|
|
|
|
- Go to Downloads -> Get the latest: SonarQube (version) -> Click community edition -> Save File...
|
|
|
|
- To set up SonarQube you first need to unzip - let's say in "/etc/sonarqube", the SonarQube distribution once it's downloaded. And also you want to give permission to work in /etc
|
|
|
|
|
|
|
|
```shell
|
|
|
|
sonarqube@sonarqube:~/Downloads$ sudo cp -r sonarqube /etc/
|
|
|
|
sonarqube@sonarqube:~/Downloads$ cd /etc
|
|
|
|
sonarqube@sonarqube:/etc$ sudo chmod -R 777 sonarqube
|
|
|
|
```
|
|
|
|
- Now you only need to test that SonarQube starts correctly
|
|
|
|
|
|
|
|
```shell
|
|
|
|
sonarqube@sonarqube:/etc$ cd sonarqube/bin/linux-x86-64/
|
|
|
|
sonarqube@sonarqube:/etc/sonarqube/bin/linux-x86-64$ ./sonar.sh console
|
|
|
|
```
|
|
|
|
- Something is missing :thinking: We haven't yet installed Java to virtual machine, so that is the next thing to do
|
|
|
|
|
|
|
|
```shell
|
|
|
|
$ sudo apt install openjdk-11-jdk
|
|
|
|
$ sudo apt update
|
|
|
|
$ sudo apt upgrade
|
|
|
|
```
|
|
|
|
- Now SonarQube should start as wanted
|
|
|
|
|
|
|
|
```shell
|
|
|
|
sonarqube@sonarqube:/etc/sonarqube/bin/linux-x86-64$ ./sonar.sh console
|
|
|
|
# After start up last line should look like this...
|
|
|
|
jvm 1 | 2018.07.26 10:16:23 INFO app[][o.s.a.SchedulerImpl] SonarQube is up
|
|
|
|
```
|
|
|
|
- Now log in to http://localhost:9000 with System Administrator credentials (admin/admin)
|
|
|
|
- Everything seems to work rightly, but we aren't done yet
|
|
|
|
- We want to install SonarQube's server to work faster and etc.
|
|
|
|
- Go back to terminal on shut down SonarQube (LCTRL + C)
|
|
|
|
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| ... | ... | |
| ... | ... | |