|
|
|
|
# Jenkins & Sonarqube
|
|
|
|
|
|
|
|
|
|
- [Tutorial](https://funnelgarden.com/sonarqube-jenkins-docker/)
|
|
|
|
|
- [Tutorial](https://tomgregory.com/sonarqube-quality-gates-in-jenkins-build-pipeline/)
|
|
|
|
|
|
|
|
|
|
```sh
|
|
|
|
|
$ docker-compose up
|
|
|
|
|
|
|
|
|
|
# Jenkins initial password from logs
|
|
|
|
|
|
|
|
|
|
# jenkins_1 | *************************************************************
|
|
|
|
|
# jenkins_1 | *************************************************************
|
|
|
|
|
# jenkins_1 | *************************************************************
|
|
|
|
|
# jenkins_1 |
|
|
|
|
|
# jenkins_1 | Jenkins initial setup is required. An admin user has been created and a password generated.
|
|
|
|
|
# jenkins_1 | Please use the following password to proceed to installation:
|
|
|
|
|
# jenkins_1 |
|
|
|
|
|
# jenkins_1 | afd7922699d4468fbc4ec453d05d57fb
|
|
|
|
|
# jenkins_1 |
|
|
|
|
|
# jenkins_1 | This may also be found at: /var/jenkins_home/secrets/initialAdminPassword
|
|
|
|
|
# jenkins_1 |
|
|
|
|
|
# jenkins_1 | *************************************************************
|
|
|
|
|
# jenkins_1 | *************************************************************
|
|
|
|
|
# jenkins_1 | *************************************************************
|
|
|
|
|
|
|
|
|
|
# Sonarqube initial password: admin / admin
|
|
|
|
|
|
|
|
|
|
# shutdown and remove volume
|
|
|
|
|
$ docker-compose down -v
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
- [Jenkins](http://localhost:8080)
|
|
|
|
|
- [Sonarqube](http://localhost:9000)
|
|
|
|
|
|
|
|
|
|
## Fixes
|
|
|
|
|
- `Elasticsearch: Max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]`
|
|
|
|
|
|
|
|
|
|
```sh
|
|
|
|
|
$ sysctl -w vm.max_map_count=262144
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
```powershell
|
|
|
|
|
$ wsl -d docker-desktop
|
|
|
|
|
$ sysctl -w vm.max_map_count=262144
|
|
|
|
|
```
|