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

Support Docker for Mac #195

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open

Support Docker for Mac #195

wants to merge 6 commits into from

Conversation

carlossg
Copy link
Contributor

@carlossg carlossg commented May 5, 2020

Use localhost instead of container ip and redirected ports
For ActiveMQ

Use localhost instead of container ip and redirected ports
For ActiveMQ
} else {
return "tcp://"+ip+":61616";
}
return String.format("tcp://%s:%d", ipBound(61616), port(61616));
Copy link
Contributor

Choose a reason for hiding this comment

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

I leave have to try this locally...I had issues when I started using podman on Fedora...hence why I had protection if ip was null.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This will use localhost and port forwarding.
For anybody using mac you can't directly access the container ip, you need to use the forwarded ports

@carlossg
Copy link
Contributor Author

I've changed it so it continues to work as is, but with a system property docker.portforward=true it will work on mac

It makes the tests pass
but is not the way it should work
Use the same port forward before and after restart
This reverts commit cb967fd.
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