Must-share information (formatted with Markdown):
- which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
- what are you trying to achieve
- what have you tried so far to achieve this
SonarQube 8.3 D.E. docker image, using bind-mounts (need persistent storage in AWS)
I’m looking at the file run.sh and it’s not clear how to invoke this. My current startup is using:
docker run -d -it --name sonarqube --restart=unless-stopped --stop-timeout 3600 \
--ulimit nofile=65536 --ulimit nproc=65536 \
-v $SONARQUBE_HOME/data:/opt/sonarqube/data \
-v $SONARQUBE_HOME/extensions:/opt/sonarqube/extensions \
-v $SONARQUBE_HOME/logs:/opt/sonarqube/logs \
-v $SONARQUBE_HOME/temp:/opt/sonarqube/temp \
-e SONAR_JDBC_USERNAME=sonar \
-e SONAR_JDBC_PASSWORD=sonar \
-e SONAR_JDBC_URL=jdbc:postgresql://$DB_URL \
-e SONAR_SECURITY_REALM=LDAP \
-e SONAR_AUTHENTICATOR_DOWNCASE=true \
-e LDAP_URL=ldaps://$LDAP_URL:3269 \
-e LDAP_REALM=dc=corporate,dc=local \
-e LDAP_BINDDN='cn=ldapanon,ou=Service Accounts,ou=Universal,dc=corporate,dc=local' \
-e LDAP_BINDPASSWORD='Anonymous@' \
-e LDAP_USER_BASEDN=dc=corporate,dc=local \
-e LDAP_USER_REALNAMEATTRIBUTE=cn \
-e LDAP_USER_REQUEST='(&(objectClass=user)(objectCategory=Person)(samAccountName={login}))' \
-p 9000:9000 $IMG_NAME \
-Dsonar.web.javaAdditionalOpts='-Djavax.net.ssl.trustStore=/usr/local/openjdk-11/lib/security/our-ca.jks -Djavax.net.ssl.trustStorePassword=changeit'
I am getting permissions error when first bringing up, so I need to run as root initially to set permissions.