Skip to content

Jonatanmdez/dokku-sonar-postgres

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

Sonar in Dokku with postgres

dokku apps:create sonar
dokku postgres:create sonar_postgres
dokku postgres:link sonar_postgres sonar

If you use dokku-limit, you need to increase the limit

dokku limit:set sonar web memory=2G

In your local

git clone 
git remote add dokku dokku@yourinstance
git push dokku

Bind manual between variables

View variable of postgres

dokku postgres:info sonar_postgres

Manual bind

dokku config:set sonar SONARQUBE_JDBC_URL=jdbc:postgresql://dokku-postgres-sonar-postgres/sonar_postgres SONARQUBE_JDBC_USERNAME=postgres SONARQUBE_JDBC_PASSWORD={$put-password-of-bind}

Persistance in sonar for install plugins in marketplace

mkdir /var/lib/dokku/data/storage/sonar
dokku storage:mount sonar /var/lib/dokku/data/storage/sonar/downloads:/opt/sonarqube/extensions/downloads
dokku storage:mount sonar /var/lib/dokku/data/storage/sonar/plugins:/opt/sonarqube/extensions/plugins
dokku ps:restart sonar

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published