{"id":19811116,"url":"https://github.com/accenture/adop-sonar","last_synced_at":"2025-06-19T13:35:50.745Z","repository":{"id":141762258,"uuid":"50841840","full_name":"Accenture/adop-sonar","owner":"Accenture","description":null,"archived":false,"fork":false,"pushed_at":"2020-03-27T05:44:04.000Z","size":45,"stargazers_count":11,"open_issues_count":7,"forks_count":45,"subscribers_count":14,"default_branch":"master","last_synced_at":"2025-04-06T11:51:45.805Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Accenture.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-02-01T13:40:41.000Z","updated_at":"2021-09-04T02:13:03.000Z","dependencies_parsed_at":null,"dependency_job_id":"83822f1c-f81e-4064-88d9-3fac2c1a14a7","html_url":"https://github.com/Accenture/adop-sonar","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Accenture%2Fadop-sonar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Accenture%2Fadop-sonar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Accenture%2Fadop-sonar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Accenture%2Fadop-sonar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Accenture","download_url":"https://codeload.github.com/Accenture/adop-sonar/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251847828,"owners_count":21653582,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-12T09:24:48.725Z","updated_at":"2025-05-01T08:32:31.460Z","avatar_url":"https://github.com/Accenture.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"#Supported tags and respective Dockerfile links\r\n\r\n- [`0.1.0`, `0.1.0` (*0.1.0/Dockerfile*)](https://github.com/Accenture/adop-sonar/blob/master/Dockerfile.md)\r\n\r\n# What is adop-sonar?\r\n\r\nadop-sonar is a wrapper for the sonarqube image. It has primarily been built to perform extended configuration.\r\nSonarQube® software (previously called Sonar) is an open source quality management platform, dedicated to continuously analyze and measure technical quality, from project portfolio to method.\r\n\r\n# How to use this image\r\n\r\n## Run SonarQube\r\n\r\nTo start the server with the default H2 database run the following, where VERSION is the release version of the Docker container.\r\n\r\n      docker run -d --name sonarqube -p 9000:9000 -e ADOP_LDAP_ENABLED=false adop/sonar:VERSION\r\n\r\n## Database configuration\r\n\r\nBy default, the image will use an embedded H2 database that is not suited for production.\r\n\r\nThe production database is configured with these variables: `SONARQUBE_JDBC_USERNAME`, `SONARQUBE_JDBC_PASSWORD` and `SONARQUBE_JDBC_URL`.\r\n\r\n      docker run -d --name sonarqube \\\r\n          -p 9000:9000 -p 9092:9092 \\\r\n          -e SONARQUBE_JDBC_USERNAME=sonar \\\r\n          -e SONARQUBE_JDBC_PASSWORD=sonar \\\r\n          -e SONARQUBE_JDBC_URL=\"jdbc:mysql://sonar-mysql.service.adop.consul:3306/sonar?useUnicode=true\u0026characterEncoding=utf8\" \\\r\n          adop/sonar:VERSION\r\n\r\nA standard MySQL database can be started with the following.\r\n\r\n      docker run -td -p 3306:3306 -v /data/sonar:/var/lib/mysql  \\\r\n          -e MYSQL_USERNAME=sonar \\\r\n          -e MYSQL_PASSWORD=sonar \\\r\n          -e MYSQL_DATABASE=sonar \\\r\n          -e MYSQL_ROOT_PASSWORD=sonar mysql:5.7\r\n\r\n\u003e [MySQL/Docker/Documentation](https://registry.hub.docker.com/_/mysql/)\r\n\r\n## LDAP Authentication\r\n\r\nBy default, the image will enable LDAP authentication, setting the `ADOP_LDAP_ENABLED` environment variable to false will disable LDAP authentication.\r\n\r\nThe image reads the following LDAP environment variables:\r\n\r\n * ldap.bindDn=${`LDAP_BIND_DN`} - the ldap root user bindn\r\n * ldap.bindPassword=${`LDAP_BIND_PASSWORD`} - LDAP user roo user password\r\n * ldap.user.baseDn=${`LDAP_USER_BASE_DN`} - user basedn\r\n * ldap.user.request=${`LDAP_USER_REQUEST`} - user query\r\n * ldap.user.realNameAttribute=${`LDAP_USER_REAL_NAME_ATTRIBUTE`} - user's real name attribute e.g. displayName\r\n * ldap.user.emailAttribute=${`LDAP_USER_EMAIL_ATTRIBUTE`} - user's email attribute, e.g. mail\r\n * ldap.group.baseDn=${`LDAP_GROUP_BASE_DN`} - group basedn\r\n * ldap.group.request=${`LDAP_GROUP_REQUEST`} - group query\r\n * ldap.group.idAttribute=${`LDAP_GROUP_ID_ATTRIBUTE`} - user group id attribute, e.g. cn\r\n\r\n\u003e [SonarQube/plugin/LDAP/Documentation](http://redirect.sonarsource.com/plugins/ldap.html)\r\n\r\n## SSO Authentication\r\n\r\nBy default, the image will disable SSO authentication, setting the `SSO_ENABLED` environment variable to `True` will enable SSO authentication.\r\nThis images read the following SSO environment variables:\r\n\r\n * `SSO_LOGIN_HEADER` - Name of the header to get the user login. Only alphanumeric, '.' and '@' characters are allowed.\r\n * `SSO_NAME_HEADER` - Name of the header to get the user name.\r\n * `SSO_EMAIL_HEADER` - Name of the header to get the user email (optional).\r\n * `SSO_GROUP_HEADER` - Name of the header to get the list of user groups, separated by comma (optional).\r\n * `SSO_REFRESH_INTERVAL` - Interval used to know when to refresh name, email and groups (optional).\r\n\r\n\u003e [HTTP Header authentication](https://docs.sonarqube.org/display/SONAR/HTTP+headers+authentication), [sonar.properties file](https://github.com/SonarSource/sonarqube/blob/branch-6.7/sonar-application/src/main/assembly/conf/sonar.properties#L150-L173)\r\n\r\n## Other configuration variables\r\n\r\n * `SONARQUBE_WEB_CONTEXT` - sonar web context e.g. /sonar\r\n * `SONARQUBE_SERVER_BASE` - sonar base e.g. http//domain.com/sonar\r\n * `SONARQUBE_JMX_ENABLED` - Enable JMX. Allowed values are true or false. Default : `false`\r\n * `SONARQUBE_JMX_AUTH` - Enable Authentication on JMX Connections when JMX is enabled. Allowed values are true or false. Default : `false`\r\n * `SONARQUBE_JMX_HOST` - Hostname or IP address of the host to which JMX clients connect. Default : `localhost`\r\n * `SONARQUBE_JMX_PORT` - JMX Port. Default : `10433`\r\n * `SONARQUBE_JMX_USER` - Set username when authentication for JMX is enabled. Default: `admin`\r\n * `SONARQUBE_JMX_USER_PASSWORD` - Set password for JMX user. Default: `adminpassword`\r\n\r\n# License\r\nPlease view [licence information](LICENCE.md) for the software contained on this image.\r\n\r\n# Supported Docker versions\r\n\r\nThis image is officially supported on Docker version 1.9.1.\r\nSupport for older versions (down to 1.6) is provided on a best-effort basis.\r\n\r\n# User feedback\r\n\r\n## Documentation\r\nDocumentation for this image is available in the [Sonar documentation page](http://docs.sonarqube.org/display/SONAR/Documentation).\r\nAdditional documentaion can be found under the [`docker-library/docs` GitHub repo](https://github.com/docker-library/docs). Be sure to familiarize yourself with the [repository's `README.md` file](https://github.com/docker-library/docs/blob/master/README.md) before attempting a pull request.\r\n\r\n## Issues\r\nIf you have any problems with or questions about this image, please contact us through a [GitHub issue](https://github.com/Accenture/adop-sonar/issues).\r\n\r\n## Contribute\r\nYou are invited to contribute new features, fixes, or updates, large or small; we are always thrilled to receive pull requests, and do our best to process them as fast as we can.\r\n\r\nBefore you start to code, we recommend discussing your plans through a [GitHub issue](https://github.com/Accenture/adop-sonar/issues), especially for more ambitious contributions. This gives other contributors a chance to point you in the right direction, give you feedback on your design, and help you find out if someone else is working on the same thing.\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faccenture%2Fadop-sonar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faccenture%2Fadop-sonar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faccenture%2Fadop-sonar/lists"}