This repository has been archived by the owner on Aug 30, 2021. It is now read-only.
Move the VOLUME declaration to the end of the Dockerfile #126
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.
One a VOLUME has been declared, changes to that location are subsequently dropped during the building of the Dockerfile. With the changes in rabbitmq/rabbitmq-common#369 applied, this meant that the enabling of plugins no longer worked correctly. We now make the VOLUME declaration the last line of the Dockerfile, assuming that we would not want to throw out any changes.
Additionally, we use gosu to execute plugin enablement, so that the 'enabled_plugins' file is owned by the rabbitmq user when the broker goes to update it.