Gerrit configuration with containers

81 views
Skip to first unread message

Willow Barraco

unread,
Apr 15, 2026, 7:27:29 AMApr 15
to Repo and Gerrit Discussion
Hey,

I'm trying to setup a container of Gerrit, and struggle with the
config file. First I tried to use Docker configs, but Gerrit tries to
write it. Then I've bind mounted the file, but Gerrit use jgit to
perform atomic write, which fails with EBUSY with mount points.

So remains the only way of mounting the whole etc folder, which does not
works great with named volumes.

Is there alternatives I have not considered yet? Is there existing
issues reporting those difficulties?

Thanks,

Willow Barraco

unread,
Apr 15, 2026, 8:35:48 AMApr 15
to Repo and Gerrit Discussion
Alternatively, if ssh key location could be configurable, I could put
them in another directory, in a named volume, and keep just the config
files in etc/. This would make deployment solutions as Dokploy useable
with Gerrit.

Kenyon Ralph

unread,
Apr 15, 2026, 1:55:33 PMApr 15
to Repo and Gerrit Discussion
I would consider, for most deployments, that containers are not worth the hassle. Gerrit is distributed as a single binary file, and the only dependency is a Java runtime environment. Install a JRE with your package management system and run Gerrit via a systemd unit. This has been simple and reliable for me.

Luca Milanesio

unread,
Apr 15, 2026, 2:12:18 PMApr 15
to Repo and Gerrit Discussion, Luca Milanesio, Willow Barraco
Hi Willow,
Have you considered K8s-Gerrit?
It already contains all the support for all the requirements you’ve mentioned, including secrects management.

See [1] for more details.

HTH

Luca.

[1] https://gerrit.googlesource.com/k8s-gerrit/

>
> --
> --
> To unsubscribe, email repo-discuss...@googlegroups.com
> More info at http://groups.google.com/group/repo-discuss?hl=en
>
> --- You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to repo-discuss...@googlegroups.com.
> To view this discussion visit https://groups.google.com/d/msgid/repo-discuss/DHTQ14GQ2FS3.1BCHLWZYP8O1U%40willowbarraco.fr.

Reply all
Reply to author
Forward
0 new messages