[SERVER-75540] Point HOME directory to /data/db for the official containers Created: 31/Mar/23  Updated: 29/Oct/23  Resolved: 11/Apr/23

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 7.1.0-rc0

Type: Bug Priority: Major - P3
Reporter: Sebastian Laskawiec Assignee: Alex Neben
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
Assigned Teams:
Server Development Platform
Backwards Compatibility: Fully Compatible
Operating System: ALL
Participants:

 Description   

Problem Statement

When running the official Community Server image on Kubernetes without root permissions and with Security Context preventing writing files to the root filesystem (so that files can be written only to volumes), the mongosh complains about not being able to write to root /.

Solution proposal

The Docker Community came up with a simple fix that might be found here: https://github.com/docker-library/mongo/blob/2a7ebf4d0dd1499409dc209443c86846f0c96510/6.0/Dockerfile#L107-L109

I highly recommend to do the same for our images.


Generated at Thu Feb 08 06:30:27 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.