Skip to content

Management version does not have Python or rabbitmqadmin installed #207

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
greggilbert opened this issue Nov 15, 2017 · 2 comments
Closed

Comments

@greggilbert
Copy link

greggilbert commented Nov 15, 2017

The current 3.6-management branch is missing rabbitmqadmin and Python.

Using this docker-compose:

version: '3'
services:
  queue:
    image: rabbitmq:3.6-management
    ports:
      - "5672:5672"
      - "15672:15672"

Here's my terminal:

$ docker-compose up -d
Pulling queue (rabbitmq:3.6-management)...
3.6-management: Pulling from library/rabbitmq
bc95e04b23c0: Pull complete
(...other stuff)
Digest: sha256:3840069fcc704db533cd83ec7fad30daabdd2fda321df4fb788b81b6ed2323b2
Status: Downloaded newer image for rabbitmq:3.6-management
Creating test_queue_1 ...
Creating test_queue_1 ... done

$ docker-compose exec queue /bin/bash
root@f2e677eafa1c:/# rabbitmq
root@f2e677eafa1c:/# which rabbitmqadmin
root@f2e677eafa1c:/# which python
root@f2e677eafa1c:/# echo $?
1

Given that rabbitmqadmin is a Python script, I can't see how this would work.

Did something change, or am I doing something wrong?

@yosifkit
Copy link
Member

We haven't had python in the rabbitmq image (and I didn't know we needed it).

As far as I understand it, the rabbitmqadmin script should exist once you enable the management plugin (which is what the image does). It is available via /cli/ as the docs describe, but only exists in the image after rabbitmq is started:

$ docker run -d --name rabbit rabbitmq:management
$ docker exec -it rabbit bash
root@8e9ac1e5bcc6:/# find / -name '*rabbitmqadmin*'
/var/lib/rabbitmq/mnesia/rabbit@8e9ac1e5bcc6-plugins-expand/rabbitmq_management-3.6.14/priv/www/cli/rabbitmqadmin

Too bad the extracted location isn't useful for adding to the path. 😞 But I do think getting it into the path of the management image would make the image a little more useful.

@tianon
Copy link
Member

tianon commented Nov 15, 2017

We're also at least partially suffering from rabbitmq/rabbitmq-management#426 (when visiting http://host-or-ip-of-rabbit:15672/cli the "download" link is wrong -- one has to visit http://host-or-ip-of-rabbit:15672/cli/ instead to get the appropriate link).

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

No branches or pull requests

3 participants