| ... | @@ -78,15 +78,46 @@ $ git init |
... | @@ -78,15 +78,46 @@ $ git init |
|
|
# git remote add origin (your address, paste it LSHIFT + INS)
|
|
# git remote add origin (your address, paste it LSHIFT + INS)
|
|
|
$ git remote add origin https://gitlab.labranet.jamk.fi/K1647/CI-testing.git
|
|
$ git remote add origin https://gitlab.labranet.jamk.fi/K1647/CI-testing.git
|
|
|
```
|
|
```
|
|
|
- Next we want to add all files for push and comment the commit by some message
|
|
- Next we want to add all files for push, comment the commit by some message and finally push project to git
|
|
|
|
|
|
|
|
```shell
|
|
```shell
|
|
|
$ git add -A
|
|
$ git add -A
|
|
|
$ git commit -m "the first push to gitlab"
|
|
$ git commit -m "the first push to gitlab"
|
|
|
$ git push origin master
|
|
$ git push origin master
|
|
|
```
|
|
```
|
|
|
|
- After that your Gitlab's repository should look like this
|
|
|
|
|
|
|
|
|

|
|
|
|
|
|
|
|
|
- Now we have finished the first part, so time to move the second part
|
|
|
|
|
|
|
|
### Step 2: SonarQube to virtual machine
|
|
|
|
|
|
|
|
- In this part we need to install virtual machine with Ubuntu 18.04 x64 version and set up SonarQube in it
|
|
|
|
- First we need to download and install software that can make virtual machine, in this guide I use [Oracle VirtualBox](https://www.virtualbox.org/wiki/Downloads)
|
|
|
|
- Next when you have installed VirtualBox we need to download image of [Ubuntu 18.04 .iso file](http://releases.ubuntu.com/18.04)
|
|
|
|
- Launch VirtualBox -> Click New icon in upper left corner
|
|
|
|
- Name your OS as you want but I name it as SonarQube
|
|
|
|
- Check that type is Linux and version is Ubuntu (64-bit)
|
|
|
|
- If version is only showing 32-bit version, you might like to read this [post](http://www.fixedbyvonnie.com/2014/11/virtualbox-showing-32-bit-guest-versions-64-bit-host-os/#.W1iCVVAzaUl)
|
|
|
|
|
|
|
|

|
|
|
|
|
|
|
|
- If all seems to look right click next
|
|
|
|
- I allocated 4096MB for RAM, maybe it is more than it needs but it's enough
|
|
|
|
- Create a virtual hard disk now -> Choose VDI -> Dynamically allocated -> 20 GB for disk size
|
|
|
|
- Then press create
|
|
|
|
- Now you have your machine in VirtualBox next you have to "insert" Ubuntu's .iso file in it
|
|
|
|
- Right click your machine -> Settings -> Storage -> Click Empty disc -> Choose Virtual Optical Disc File...
|
|
|
|
|
|
|
|

|
|
|
|
|
|
|
|
- Locate downloaded Ubuntu's .iso file and choose it for use
|
|
|
|
- In settings go Network -> Change in Adapter 1 Attached to: Bridged Adapter
|
|
|
|
|
|
|
|

|
|
|
|
|
|
|
|
- Press OK -> Right click your machine -> Go start -> Press Normal Start
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| ... | |
... | |
| ... | | ... | |