-
Notifications
You must be signed in to change notification settings - Fork 39
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
add manual publications of ports #49
Conversation
8251f2f
to
7533156
Compare
Thanks this looks pretty good -- can you add a test (and relevant config in the tox.ini), and a note on how to use it in the README (which becomes the sphinx docs)? Then I'll merge. Thanks for doing this! |
3397d79
to
6a931d4
Compare
The CI is returning success, but the processes are all crashing for what looks like healthchecking code. Do you think my change caused this and I should fix it? |
Yeah, looks like If you'd like to take a stab at a fix, I'd appreciate that; otherwise I can probably find some time in the next couple of days. My recommendation is to make all the healthcheck configs required as a group (either all must be present or all absent), and the port listing is optional in either case. |
aa4efb1
to
12b6478
Compare
I'm going to just get the tests working with a healthcheck for now and the other issue can be fixed in a follow up PR. |
I'm currently getting this error running tests locally:
|
I've created branch https://github.com/tox-dev/tox-docker/commits/ports with a few minor follow-up tweaks. I'll merge this once CI passes. Thanks for your help here! |
I'm going to try to do one more thing before cutting a new release, to make it so that you don't have to specify a full healthcheck to use the |
I really needed to solve #35. Thus this PR applies the feedback from #36 to add a configurable ports section to the image config. When it is not provided or the empty string is provided, it falls back to publishing all ports, so the change entirely backwards compatible. Ports are expected to be space separated and are formatted
$HOSTPORT:$CONTAINERPORT/$PROTOCOL
.A working example using MySQL 5.7: