|
|
## Installing GitLab+Jenkins+Sonarqube interation
|
|
## Installing GitLab+Jenkins+Sonarqube interation
|
|
|
|
|
|
|
|
### Prerequisites
|
|
### Prerequisites
|
|
|
I used to install this integration Ubuntu 16.04 server machine on virtualbox. I installed each service using Docker and Docker-Compose. See how to install docker [here](Gitlab_compose container_guide) if you don't know how. |
|
I used to install this integration Ubuntu 16.04 server machine on virtualbox. I installed each service using Docker and Docker-Compose. See how to install docker [here](Gitlab_compose container_guide) if you don't know how. I installed Gitlab using the same guide.
|
|
\ No newline at end of file |
|
### Jenkins
|
|
|
|
#### Installing Jenkins
|
|
|
|
I installed Jenkins with docker-compose.
|
|
|
|
|
|
|
|
```
|
|
|
|
jenkins:
|
|
|
|
image: 'jenkins/jenkins:lts'
|
|
|
|
privileged: true
|
|
|
|
user: root
|
|
|
|
ports:
|
|
|
|
- 8080:8080
|
|
|
|
- 50000:50000
|
|
|
|
container_name: jenkins
|
|
|
|
volumes:
|
|
|
|
- /tmp/jenkins:/var/jenkins_home #Remember that, the tmp directory is designed to be wiped on s$
|
|
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
|
|
depends_on:
|
|
|
|
- sonarqube
|
|
|
|
|
|
|
|
```
|
|
|
|
#### Configuring Jenkins to work with Gitlab
|
|
|
|
I builded my integration based on [this](https://docs.gitlab.com/ee/integration/jenkins.html) guide. |