Add /plugins symlink for backwards compatibility

For context, see
https://github.com/docker-library/rabbitmq/pull/297#pullrequestreview-192451466
This commit is contained in:
Gerhard Lazu 2019-01-15 10:12:09 +00:00
parent 5461405b15
commit c9da62615b
No known key found for this signature in database
GPG Key ID: A28DE70C9444D7A6
1 changed files with 2 additions and 2 deletions

View File

@ -212,8 +212,8 @@ RUN groupadd --system rabbitmq && \
chown -fR rabbitmq:rabbitmq $RABBITMQ_INSTALL_DIR $RABBITMQ_CONF_DIR $RABBITMQ_LOG_DIR $RABBITMQ_DATA_DIR && \ chown -fR rabbitmq:rabbitmq $RABBITMQ_INSTALL_DIR $RABBITMQ_CONF_DIR $RABBITMQ_LOG_DIR $RABBITMQ_DATA_DIR && \
ln -sf $RABBITMQ_DATA_DIR/.erlang.cookie /root/.erlang.cookie ln -sf $RABBITMQ_DATA_DIR/.erlang.cookie /root/.erlang.cookie
# TODO @tianon why is this necessary? # Added for backwards compatibility - users can simply COPY custom plugins to /plugins
# RUN ln -sf "/usr/lib/rabbitmq/lib/rabbitmq_server-$RABBITMQ_VERSION/plugins" /plugins RUN ln -sf /opt/rabbitmq/plugins /plugins
# Hint that the config, log & data (a.k.a. home dir) dirs should be separate volumes # Hint that the config, log & data (a.k.a. home dir) dirs should be separate volumes
VOLUME $RABBITMQ_CONF_DIR VOLUME $RABBITMQ_CONF_DIR