amazon ec2 - Sonar qualityprofile page does not display correctly using docker when data volume is mounted from disk. -
i'm setting sonarqube server , wanted use official dockerised version, when mount data folders volumes preserve state between restarts qualityprofiles page fails display profiles.
the profiles stored though, can see them in 'compare profiles' dropdown, , preserved on restart.
i've tried on safari , chrome, , behaviour consistent.
there no errors in logs, , there are, far can see, no permission issues, since data being written. without mounting data volumes works fine, state not persisted on restart, deal-breaker..
anyone else problem has managed solve it?
this docker-compose config
sonarqube: image: sonarqube:5.1 links: - db:postgres ports: - "9000:9000" - "9092:9092" - "5432:5432" environment: - sonarqube_jdbc_url=jdbc:postgresql://postgres:5432/sonar - sonarqube_jdbc_password=sonar - sonarqube_jdbc_username=sonar volumes: - /data/sonar:/opt/sonarqube/data privileged: true db: image: postgres environment: - postgres_password=sonar - postgres_user=sonar volumes: - /data/postgres:/var/lib/postgresql/data privileged: true and docker versions [ec2-user@xxxxxxxxx sonar]$ docker version client version: 1.6.2 client api version: 1.18 go version (client): go1.3.3 git commit (client): 7c8fca2/1.6.2 os/arch (client): linux/amd64 server version: 1.6.2 server api version: 1.18 go version (server): go1.3.3 git commit (server): 7c8fca2/1.6.2 os/arch (server): linux/amd64
the problem sonarqube image doesn't use volume $sonarqube_home/extensions folder. first time use docker-compose up, sonar initialise database , install 3 plugins: java, git , svn.
the second time run docker-compose up, database installed, $sonarqube_home/extensions/plugins folder empty. java, git , svn no more installed , sonarqube disables rules.
this docker-compose.yml file works expected.
sonarqube: image: sonarqube:5.1.1 links: - db ports: - "9000:9000" environment: - sonarqube_jdbc_url=jdbc:postgresql://db:5432/sonar volumes: - /data/sonar/data:/opt/sonarqube/data - /data/sonar/extensions:/opt/sonarqube/extensions db: image: postgres environment: - postgres_user=sonar - postgres_password=sonar ports: - "5432:5432" volumes: - /data/postgres:/var/lib/postgresql/data it still works after using docker-compose rm , able add other plugins.
a volume instruction should used in dockerfile build image. submit them.
Comments
Post a Comment