Skip to content

Commit 0193731

Browse files
committed
Add a default rabbitmq.conf file to the image
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
1 parent e99ec44 commit 0193731

File tree

4 files changed

+1067
-0
lines changed

4 files changed

+1067
-0
lines changed

Dockerfile-alpine.template

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,8 @@ VOLUME $RABBITMQ_DATA_DIR
270270
# https://docs.docker.com/samples/library/ubuntu/#locales
271271
ENV LANG=C.UTF-8 LANGUAGE=C.UTF-8 LC_ALL=C.UTF-8
272272

273+
COPY rabbitmq.conf /etc/rabbitmq/rabbitmq.conf
274+
273275
COPY docker-entrypoint.sh /usr/local/bin/
274276
ENTRYPOINT ["docker-entrypoint.sh"]
275277

Dockerfile-ubuntu.template

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -288,6 +288,8 @@ VOLUME $RABBITMQ_DATA_DIR
288288
# https://docs.docker.com/samples/library/ubuntu/#locales
289289
ENV LANG=C.UTF-8 LANGUAGE=C.UTF-8 LC_ALL=C.UTF-8
290290

291+
COPY rabbitmq.conf /etc/rabbitmq/rabbitmq.conf
292+
291293
COPY docker-entrypoint.sh /usr/local/bin/
292294
ENTRYPOINT ["docker-entrypoint.sh"]
293295

apply-templates.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ for version; do
4141
gawk -f "$jqt" "Dockerfile-$variant.template"
4242
} > "$version/$variant/Dockerfile"
4343

44+
conf='rabbitmq.conf'
45+
cp -a "$conf" "$version/$variant/rabbitmq.conf"
46+
4447
entrypoint='docker-entrypoint.sh'
4548
rcVersion="${version%-rc}"
4649
if [ "$rcVersion" = '3.8' ]; then

0 commit comments

Comments
 (0)