Add a gitlab-cells-mailroom image
What this does
Adds a gitlab-cells-mailroom image for the cells-aware mailroom service.
The service lives in the GitLab repository under cells-mailroom/. It polls the same IMAP mailboxes as the existing mailroom, but instead of posting to Workhorse it asks the Topology Service which cell owns each email and forwards the raw message to that cell's internal mail_room endpoint. Like the existing mailroom, it only makes outbound connections — no listener, no ingress.
Why a separate image
gitlab-mailroom installs the mail_room gem and runs /usr/bin/mail_room -c mail_room.yml. This service has its own Gemfile and its own entry point (bundle exec ruby run.rb), so that image can't run it.
The new image is built FROM gitlab-ruby and unpacks three directories from the GitLab source: the service itself plus the two path gems its Gemfile points at (gems/gitlab-email_handler, vendor/gems/gitlab-topology-service-client). The repository layout is preserved because the Gemfile resolves those with paths relative to cells-mailroom/.
Source is downloaded with download_gitlab, the same way the rails images do it, and the image tracks the GitLab ref rather than a gem version.
Scope
Debian only. No UBI/FIPS variant, following the other images that ship none (gitlab-logger, gitlab-rust, gitlab-python, gitlab-exiftool, and others). The service is currently only planned for GitLab.com. Happy to add UBI if you'd rather not merge a Debian-only image — just say so.
It is wired as optional: true in final_images.yml so UBI pipelines, where the job does not exist, are unaffected.
Testing
- CI config lints clean against this branch; the merged config generates both
gitlab-cells-mailroomandcontainer_scanning: [gitlab-cells-mailroom]. - Checked that both path gemspecs use
Dir[...]rather thangit ls-files, so the.git-less treedownload_gitlabproduces still resolves them. - Bundler is pinned to the version in the service's
Gemfile.lock, the same way the service's own CI job in the GitLab repository does it.
I was not able to run a local docker build (no Docker available in my environment), so the image build itself is unverified — it needs a pipeline run. Please treat the build as unproven until CI is green.
Related
- Deployment issue: gitlab-org/gitlab#604170
- Infrastructure discussion: gitlab-com/gl-infra/platform/runway/team#1014