Hi,
I'm Ilayda Dastan, a RabbitMQ user who is eager to contribute to the RabbitMQ community. I've recently joined the community and am excited about the opportunity to make a contribution. I'd also love to join your Slack group.
I noticed a bug in the interface and I want to contribute by making an improvement but I've encountered an issue while trying to run rabbitmq-server in a Docker environment. I would greatly appreciate your assistance in resolving this. I will try to explain as much as possible, you can contact me if you have any questions about my issue. Thank you very much in advance!
----
I've been attempting to run RabbitMQ server locally, but I wanted to do it within a Docker environment using a Dockerfile to create an image and a container. I took the DockerFile I use from here (github) and edited it a little, the DockerFile I use is attached. I used the following commands:
docker buildx build -f Dockerfile --platform linux/amd64 -t rabbitmq-server-contribute .
docker run -it -d --name rabbit-contribution -v /Users/ilaydadastan/Documents/developments/rabbitmq-contribution/rabbitmq-docker:/home/contributor -p 3000:3000 -p 15672:15672 rabbitmq-server-contribute
I cloned the RabbitMQ server repository to my local machine and opened a terminal within a Docker container selected from IntelliJ's services. I run the application in the docker container I created. Then, I run the bazel-sync command in the project main directory in the docker container, it works.
Then when I run this command below I get the error;
bazel run broker RABBITMQ_ENABLED_PLUGINS=rabbitmq_management
I encountered a build failure with the following error:
/bin/bash: line 16: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
** (ArgumentError) could not call Module.put_attribute/3 because the module Hex.MixProject is already compiled
(elixir 1.15.7) lib/module.ex:2310: Module.assert_not_readonly!/2
(elixir 1.15.7) lib/module.ex:2007: Module.__put_attribute__/5
mix.exs:172: (module)
(stdlib 5.2) lists.erl:1599: :lists.foldl_1/3
Target //:broker failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 83.166s, Critical Path: 15.71s
INFO: 5 processes: 5 internal.
FAILED: Build did NOT complete successfully
ERROR: Build failed. Not running target
I'm using Mac with an Apple M2 chip. When I try it on an Ubuntu computer, I can run it without any problems, but it does not run on a Mac either. I suspect there may be a problem related to Elixir or possibly due to the Mac processor but I haven't been able to resolve it for run the rabbitmq-server.
Any assistance you could provide would be greatly appreciated. Thanks in advance.
Best Regards,
Ilayda