Changed rabbitmq user/group to be non-system #40
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I'm doing development using Vagrant, and I have
/workspace
mounted from my local machine (OSX). Regardless of local ownership, this directory shows up owned byvagrant:vagrant
inside of the VM. Commands likechown
don't change this, so if I share this directory into therabbitmq
container for persistence, it shows up owned by UID 1000. The result is thatrabbitmq
can't createmnesia
or any data within that directory.The cause is that the user and group are created as system objects, with UID/GID 999. If we remove the
-r
parameter, they'll be created as UID 1000, which maps to thevagrant
user within the VM and allows for the content creation.The use of system users is good in theory but may not be absolutely necessary. In this case I've identified a situation where that parameter breaks the container's usability, so I'm providing a pull request that removes the
-r
parameters.