You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be nice to be able to extend the configuration file generation when extending from this docker image. It would be nice to be able to add custom logic at the end of the configuration file generation.
Something along the line of (shamelessly stolen from postgresql docker container) this in docker-entrypoint.sh:
if [ "$1" = 'rabbitmq-server' ] && [ "$shouldWriteConfig" ]; then
# ....current logic....
echo
for f in /docker-entrypoint-initdb.d/*; do
case "$f" in
*.sh)
echo "$0: sourcing $f"
. "$f"
;;
*) echo "$0: ignoring $f" ;;
esac
echo
done
fi
The text was updated successfully, but these errors were encountered:
I'd also say this is similar to #202 and similar issues. Especially this #202 (comment):
Especially with 3.7's simpler config format, we'd rather move to doing less config via the entrypoint. Since it will be simpler for a user to supply their own config file and then the entrypoint can sed their file to update/add a limited set of specific values rather than being responsible for every option possible in a rabbit config.
Since the introduction of the 3.7 image, you can supply /etc/rabbitmq/rabbitmq.conf and the entrypoint will only add/sed supplied envs while leaving other lines in the file untouched (#197 (comment)).
It would be nice to be able to extend the configuration file generation when extending from this docker image. It would be nice to be able to add custom logic at the end of the configuration file generation.
Something along the line of (shamelessly stolen from postgresql docker container) this in
docker-entrypoint.sh
:The text was updated successfully, but these errors were encountered: