Skip to content

Add support for read-only config file mounts #369

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jun 23, 2020

Conversation

st3v
Copy link
Contributor

@st3v st3v commented Sep 16, 2019

This is a pretty common use-case given that as of Kubernetes v1.9.4 configMaps are mounted as read-only. See #368 for more details.

Consider this PR as a suggestion for one potential fix. There are probably other ways to address this. I'm not too set on how we address it as long as we do so in the docker image. 😊

Fixes #368

This is a pretty common use-case given that as of Kubernetes v1.9.4
configMaps are mounted as read-only.

Fixes docker-library#368
@st3v

This comment has been minimized.

@yosifkit

This comment has been minimized.

Copy link
Member

@yosifkit yosifkit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It still seems odd to me for users to provide a read-only config file and then expect environment variables to change the config, but LGTM.

@yosifkit yosifkit requested a review from tianon June 18, 2020 23:31
tianon
tianon previously requested changes Jun 18, 2020
Copy link
Member

@tianon tianon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree it's odd that folks are providing a config file and also providing the environment variables that request we write changes to the config file, but it does appear to be a common enough misunderstanding that this seems like a reasonable workaround.

I'm fully on board with deprecating most of this script for RabbitMQ 3.9+.

@yosifkit yosifkit dismissed tianon’s stale review June 23, 2020 18:08

Changes done. 🎉

@yosifkit yosifkit merged commit a5cccf2 into docker-library:master Jun 23, 2020
docker-library-bot added a commit to docker-library-bot/official-images that referenced this pull request Jun 23, 2020
Changes:

- docker-library/rabbitmq@9effc7f: Update to 3.8.5, Erlang/OTP 23.0.2, OpenSSL 1.1.1g
- docker-library/rabbitmq@a5cccf2: Merge pull request docker-library/rabbitmq#369 from st3v/master
- docker-library/rabbitmq@34ed62c: touch config file to verify it is read-only
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

docker-entrypoint.sh fails if config file is mounted as read-only
5 participants