-
I'm trying to add a plugin to RabbitMQ.
After executing .WithArgs("rabbitmq-plugins"....., , container restarts, Aspire detects it and mark container as Exit in desktop. However, if I comment ..WithArgs("rabbitmq-plugins" line and execute the command directly in docker terminal, it works. How can I automate with Aspire the plugin install? The plugin that I try to install is delayed message exchange Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
You changed the entry point to run We don't have first class support for this yet in the app model. As an alternative, you BindMount a shell script and execute it as the entrypoint and whatever commands you need to as well as the rabbitmq entrypoint. Alternatively, you can build a custom docker container: |
Beta Was this translation helpful? Give feedback.
You changed the entry point to run
rabbitmq-plugins
instead of running rabbitmq, that's why it quits. What you did directly in docker was interactively run a command in the context of the container. This would be a development scenario only.We don't have first class support for this yet in the app model. As an alternative, you BindMount a shell script and execute it as the entrypoint and whatever commands you need to as well as the rabbitmq entrypoint.
Alternatively, you can build a custom docker container:
https://stackoverflow.com/a/52819989/45091