Skip to content
This repository was archived by the owner on Aug 21, 2021. It is now read-only.
This repository was archived by the owner on Aug 21, 2021. It is now read-only.

Sonarqube in Docker #30

@JoshMentzer

Description

@JoshMentzer

Is it possible to configure the sonar-crowd plugin via the environment from a docker-compose file? Ie.:

sonarqube:
image: sonarqube
expose:
- '9000'
environment:
- sonar.jdbc.url=jdbc:postgresql://sonardb:5432/sonar
- crowd.url=${CROWD_URL}
- crowd.application=${CROWD_APPNAME}
- crowd.password=${CROWD_PASSWORD}
- sonar.security.realm=Crowd
- sonar.security.localUsers=admin,sonar

In this case whether hardcoded or using an environment variable to keep this info out of our repo sonarqube service can't start with error:

sonarqube_1 | 2019.09.23 21:02:07 INFO web[][org.sonar.INFO] Security realm: Crowd
sonarqube_1 | 2019.09.23 21:02:07 ERROR web[][o.s.s.p.Platform] Background initialization failed. Stopping SonarQube
sonarqube_1 | org.sonar.api.utils.SonarException: Security realm fails to start: crowd.password is not set

Wondering if this is just not a capability, or if something crazy is happening,
thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions