Add "loopback_users" configuration snippet to the 3.9 image (#501)
This allows the default user to connect from outside the running container, which has been the case for the 3.8 series, but is not currently the case with the 3.9 rc Co-authored-by: Joe Ferguson <yosifkit@gmail.com>
This commit is contained in:
parent
9331f6a8c3
commit
499c201913
|
|
@ -1,3 +1,4 @@
|
|||
/*/**/*.conf linguist-generated
|
||||
/*/**/Dockerfile linguist-generated
|
||||
/*/**/docker-entrypoint.sh linguist-generated
|
||||
/Dockerfile*.template linguist-language=Dockerfile
|
||||
|
|
|
|||
|
|
@ -0,0 +1,8 @@
|
|||
## DEFAULT SETTINGS ARE NOT MEANT TO BE TAKEN STRAIGHT INTO PRODUCTION
|
||||
## see https://www.rabbitmq.com/configure.html for further information
|
||||
## on configuring RabbitMQ
|
||||
|
||||
## allow access to the guest user from anywhere on the network
|
||||
## https://www.rabbitmq.com/access-control.html#loopback-users
|
||||
## https://www.rabbitmq.com/production-checklist.html#users
|
||||
loopback_users.guest = false
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
## DEFAULT SETTINGS ARE NOT MEANT TO BE TAKEN STRAIGHT INTO PRODUCTION
|
||||
## see https://www.rabbitmq.com/configure.html for further information
|
||||
## on configuring RabbitMQ
|
||||
|
||||
## allow access to the guest user from anywhere on the network
|
||||
## https://www.rabbitmq.com/access-control.html#loopback-users
|
||||
## https://www.rabbitmq.com/production-checklist.html#users
|
||||
loopback_users.guest = false
|
||||
|
|
@ -254,6 +254,7 @@ VOLUME $RABBITMQ_DATA_DIR
|
|||
# https://docs.docker.com/samples/library/ubuntu/#locales
|
||||
ENV LANG=C.UTF-8 LANGUAGE=C.UTF-8 LC_ALL=C.UTF-8
|
||||
|
||||
COPY --chown=rabbitmq:rabbitmq 10-default-guest-user.conf /etc/rabbitmq/conf.d/
|
||||
COPY docker-entrypoint.sh /usr/local/bin/
|
||||
ENTRYPOINT ["docker-entrypoint.sh"]
|
||||
|
||||
|
|
|
|||
|
|
@ -0,0 +1,8 @@
|
|||
## DEFAULT SETTINGS ARE NOT MEANT TO BE TAKEN STRAIGHT INTO PRODUCTION
|
||||
## see https://www.rabbitmq.com/configure.html for further information
|
||||
## on configuring RabbitMQ
|
||||
|
||||
## allow access to the guest user from anywhere on the network
|
||||
## https://www.rabbitmq.com/access-control.html#loopback-users
|
||||
## https://www.rabbitmq.com/production-checklist.html#users
|
||||
loopback_users.guest = false
|
||||
|
|
@ -272,6 +272,7 @@ VOLUME $RABBITMQ_DATA_DIR
|
|||
# https://docs.docker.com/samples/library/ubuntu/#locales
|
||||
ENV LANG=C.UTF-8 LANGUAGE=C.UTF-8 LC_ALL=C.UTF-8
|
||||
|
||||
COPY --chown=rabbitmq:rabbitmq 10-default-guest-user.conf /etc/rabbitmq/conf.d/
|
||||
COPY docker-entrypoint.sh /usr/local/bin/
|
||||
ENTRYPOINT ["docker-entrypoint.sh"]
|
||||
|
||||
|
|
|
|||
|
|
@ -270,6 +270,9 @@ VOLUME $RABBITMQ_DATA_DIR
|
|||
# https://docs.docker.com/samples/library/ubuntu/#locales
|
||||
ENV LANG=C.UTF-8 LANGUAGE=C.UTF-8 LC_ALL=C.UTF-8
|
||||
|
||||
{{ if ([ "3.8", "3.8-rc" ] | index(env.version)) then "" else ( -}}
|
||||
COPY --chown=rabbitmq:rabbitmq 10-default-guest-user.conf /etc/rabbitmq/conf.d/
|
||||
{{ ) end -}}
|
||||
COPY docker-entrypoint.sh /usr/local/bin/
|
||||
ENTRYPOINT ["docker-entrypoint.sh"]
|
||||
|
||||
|
|
|
|||
|
|
@ -288,6 +288,9 @@ VOLUME $RABBITMQ_DATA_DIR
|
|||
# https://docs.docker.com/samples/library/ubuntu/#locales
|
||||
ENV LANG=C.UTF-8 LANGUAGE=C.UTF-8 LC_ALL=C.UTF-8
|
||||
|
||||
{{ if ([ "3.8", "3.8-rc" ] | index(env.version)) then "" else ( -}}
|
||||
COPY --chown=rabbitmq:rabbitmq 10-default-guest-user.conf /etc/rabbitmq/conf.d/
|
||||
{{ ) end -}}
|
||||
COPY docker-entrypoint.sh /usr/local/bin/
|
||||
ENTRYPOINT ["docker-entrypoint.sh"]
|
||||
|
||||
|
|
|
|||
|
|
@ -48,6 +48,10 @@ for version; do
|
|||
fi
|
||||
cp -a "$entrypoint" "$version/$variant/docker-entrypoint.sh"
|
||||
|
||||
if [ "$rcVersion" != '3.8' ]; then
|
||||
cp 10-default-guest-user.conf "$version/$variant/"
|
||||
fi
|
||||
|
||||
if [ "$variant" = 'alpine' ]; then
|
||||
sed -i -e 's/gosu/su-exec/g' "$version/$variant/docker-entrypoint.sh"
|
||||
fi
|
||||
|
|
|
|||
Loading…
Reference in New Issue