Docker image for 8.0 / 8.1 community

On the official hub I can find only LTS or latest version (comm/dev/entrp editions). But where can I find previous versions of docker images?

You can find them in the tags tab:
https://hub.docker.com/_/sonarqube/?tab=tags

For example, here is 8.2-developer : https://hub.docker.com/layers/sonarqube/library/sonarqube/8.2-developer/images/sha256-cb8ffb61c6f4d38c608fbaa9acb30a3851ae0eb6f7d35ad2cae3b3bab2ef7575?context=explore

8.0 & 8.1 where beta images, i don’t recommend to use them for production. There is no LTS official image. We started to support docker images rather recently, so i would suggest to stay on latest if you use docker.

Thanks for your reply. I’ve installed the LTS then but it seems the the variables in sonar.properties here are not read properly :frowning: I’ve provided them (jdbc) in the command line as additional parameters and it works fine besides LDAP :frowning:
My command looks as follow:

docker run -d --name sonar -p 9000:9000 -e sonar.jdbc.url=jdbc:postgresql://xxxxxxxxxxxxx.rds.amazonaws.com:5432/postgres
-e sonar.jdbc.username="{aes}xxxxxxxxxxx"
-e sonar.jdbc.password="{aes}xxxxxxxxxxxxx"
-e sonar.secretKeyPath=/opt/sonarqube/conf/.sonar/sonar-secret.txt
-e sonar.security.realm=LDAP
-e sonar.forceAuthentication=false
-e sonar.authenticator.downcase=true
-e ldap.url=ldaps://xxx.com
-e ldap.bindDn=cn=admin-ro,ou=systemids,dc=xxxxx,dc=com
-e ldap.bindPassword=xxxxxxxxxxxxxxxxx
-e ldap.user.baseDn=ou=workers,ou=users,dc=xxxxx,dc=com
-e ldap.user.request="(&(objectClass=person)(uid={login}))"
-e ldap.group.baseDn=ou=groups,dc=xxxxx,dc=com
-e ldap.group.request="(&(objectClass=posixGroup)(memberUid={uid}))"
-e ldap.group.idAttribute=cn
-v /srv/persistent/sonar/sonarqube_conf:/opt/sonarqube/conf
-v /srv/persistent/sonar/sonarqube_extensions:/opt/sonarqube/extensions
-v /srv/persistent/sonar/logs:/opt/sonarqube/logs
-v /srv/persistent/sonar/sonarqube_data:/opt/sonarqube/data
-v /srv/persistent/sonar/sonarqube_bundled-plugins:/opt/sonarqube/lib/bundled-plugins
sonarqube:lts

and it returns

Caused by: java.lang.IllegalStateException: Unable to load component class org.sonar.server.user.SecurityRealmFactory
...
Caused by: org.sonar.api.utils.SonarException: Realm 'LDAP' not found. Please check the property 'sonar.security.realm' in conf/sonar.properties

The error is the same no matter if
sonar.security.realm=LDAP is declared in sonar.properties or in the docker run command

How to configure properly LDAP connection in LTS version ?

Thanks,

ok I’ve figured out. The LDAP properties are properly extracted from the sonar.properties file however on sonarqube 7.9.2 the LDAP plugin is needed :slight_smile:
After installing it - all works fine !