Skip to content

Fix RabbitMQ runtime credentials#397

Open
deepanshutiwari27 wants to merge 2 commits into
chaoss:mainfrom
deepanshutiwari27:codex/fix-issue-278
Open

Fix RabbitMQ runtime credentials#397
deepanshutiwari27 wants to merge 2 commits into
chaoss:mainfrom
deepanshutiwari27:codex/fix-issue-278

Conversation

@deepanshutiwari27

Copy link
Copy Markdown

Change rabbit mq variables from build time to runtime by changing it from args to environment variables
Fix issue #278

@MoralCode MoralCode left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for taking on this issue! Unfortunately this is a little more complex than changing build args to environment cars because of this config file.

Happy to chat solutions if you get stuck!

Comment thread docker/rabbitmq/Dockerfile Outdated
Comment on lines +27 to +24
RUN exec python3 update_config.py
RUN chmod +x /collectoss-rabbitmq-entrypoint.sh

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This won't work. This script runs at build time and is the same as the entry point script. Its going to bake a config file into the container containing a hash of the default password (because a different password isnt provided at build time)

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we Keep the runtime wrapper, but remove RUN chmod +x and invoke it with /bin/sh. This makes config generation visibly runtime-only and keeps the image portable.

@deepanshutiwari27 deepanshutiwari27 force-pushed the codex/fix-issue-278 branch 4 times, most recently from fccef95 to bc4ed97 Compare June 19, 2026 03:20
Signed-off-by: Deepanshu Tiwari <tiwarideepanshu235@gmail.com>
Signed-off-by: Deepanshu Tiwari <tiwarideepanshu235@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants