Skip to content
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

Extra Argument http-host can't be overridden #50

Open
jorgecastro05 opened this issue Oct 25, 2024 · 0 comments
Open

Extra Argument http-host can't be overridden #50

jorgecastro05 opened this issue Oct 25, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@jorgecastro05
Copy link

Describe the bug
Executing the image always auto assign an IP Address of the local network or the internal docker network, and can't be overridden using the AMQ_EXTRA_ARGS option.

For example:
podman run -it --rm -p 5672:5672 -p 8161:8161 -e AMQ_USER=admin -e AMQ_PASSWORD=password --name artemis quay.io/artemiscloud/activemq-artemis-broker:artemis.2.37.0

Gives the output (at end)

ole(s): "admin" role principal classes: "org.apache.activemq.artemis.spi.core.security.jaas.RolePrincipal"
2024-10-25 22:52:42,001 INFO  [io.hawt.web.auth.LoginRedirectFilter] Hawtio loginRedirectFilter is using 1800 sec. HttpSession timeout
2024-10-25 22:52:42,012 INFO  [org.apache.activemq.artemis] AMQ241001: HTTP Server started at http://192.168.10.106:8161
2024-10-25 22:52:42,012 INFO  [org.apache.activemq.artemis] AMQ241002: Artemis Jolokia REST API available at http://192.168.10.106:8161/console/jolokia
2024-10-25 22:52:42,012 INFO  [org.apache.activemq.artemis] AMQ241004: Artemis Console available at http://192.168.10.106:8161/console

To Reproduce
Steps to reproduce the behavior:

podman run -it --rm -p 5672:5672 -p 8161:8161 -e AMQ_USER=admin -e AMQ_PASSWORD=password -e AMQ_EXTRA_ARGS='--http-host=0.0.0.0' --name artemis quay.io/artemiscloud/activemq-artemis-broker:artemis.2.37.0

The output of the command is:

Creating Broker with args --user XXXXX --password XXXXX --role admin --name broker --allow-anonymous --http-host 192.168.10.106 --host 192.168.10.106   --force --http-host=0.0.0.0
option '--http-host' (<httpHost>) should be specified only once

Usage: artemis help [<args>...]
use 'help <command>' for more information
      [<args>...]

Platform (please complete the following information):

  • OS: Fedora
  • Version 40
  • CEKit version Not Used
  • Container build tool: podman

Expected behavior
the AMQ_EXTRA_ARGS option with the param http-host should be overriden for example to assign a IP Address like 127.0.0.1 or localhost.

@jorgecastro05 jorgecastro05 added the bug Something isn't working label Oct 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants