Hi guys! Currently using sonarqube community edition as docker image, and want to upgrade to dev edition. Could you assist me please how hard can it be in docker, to update edition. Also there is link between serverID and license, so from that i have a question how can i replace(is it even possible) server id of my sonarqube?
This is our current position on providing official docker images for our commercial editions:
No plan, but on our radar. You might find some community supported docker images for the commercial edition if you look around.
A Server ID is automatically generated, and only changes under certain circumstances (like changing the JDBC URL your SonarQube Instance uses to connect to the database). Why are you interested in replacing it?
We are running SonarQube 7.1 Developer edition in a docker container. Database is in a separate image. We have already restarted and updated the image many times. Or plugins. Server ID has not changed, JDBC connection string was always the same (we use postgres also in docker).
We used the image of 7.1 from docker hub, switched edition to develop (this has installed license plugin) and it is working since then. For the version 7.5 we are going to create our own image. We have just started to create docker file. All I can offer you right now is this comment. I cannot guarantee that is will work in any way. I hope that when we find a working solution for dev edition of 7.5 then we will open the source on github.
@vdev987, I have taken the original community edition Dockerfile and updated it to install developer edition. If you need to extend the image – that’s just another RUN command at most. If you are trying to set the value in the running container then you are not root but sonarqube user. Update RUN command to update the value at the build time.
Thanks, @degree. I still get that error (as root) when I add it to my Dockerfile:
Step 8/24 : RUN sysctl -w vm.max_map_count=262144
---> Running in e74af7754491
sysctl: setting key "vm.max_map_count": Read-only file system
ERROR: Service 'sonaree' failed to build: The command '/bin/sh -c sysctl -w vm.max_map_count=262144' returned a non-zero code: 255
But we’re FROMing oraclelinux:7.5. I’ll try taking from “the original community edition Dockerfile” like you have.
Are you using the same Dockerfile? To the moment I cannot provide more info. I probably need to rebase the changes to the latest develop and publish them on github fork. Then I will be able to share complete package properly. Exactly the thing that works on our production server except configuration of the server itself. This partially can come extra.
Bingo! Not sure which change was the magic, but i’ve brought it up on my test AWS node (still not able to run on Mac laptop)
Now I’m having trouble analyzing PRs. I did not find in docs the right way to specify Authentication token for github; is it possible that private repos are blocked from analysis?
I managed to run the image on my macbook and with quite a number of plugins though without license analysis does not work.
We are using gitlab plugin. For example integration requires a token of a user that has access to the private project. Plugin uses it to call gitlab api to comment or update status of commits.