A few weeks ago I published a post with an introduction to Gerrit. The configuration I explain there is not very scalable, so now I want to explain how to connect it to an external MySQL database so the data is more secure. As in my previous post, I’m going to do everything inside a docker image so it is easy to reuse and share.
Lets start with the Dockerfile from my previous post:
1 2 3 4 5 6 7 FROM gerritforge/gerrit-centos7:2.11.4 # Expose gerrit ports EXPOSE 29418 8080 # Start Gerrit CMD /var/gerrit/bin/gerrit.sh start && tail -f /var/gerrit/logs/error_log