enable postgres example tests#68
Conversation
|
IMO it's much better if our default compose files expose the underlying Otherwise it's very difficult to diagnose / debug what exactly is going on. On Thu, Mar 3, 2016 at 10:33 AM, Mark Stemm notifications@github.com
Michael Demmer |
|
@demmer but you're making a huge assumption that those ports are available on the machines that others are going to try out these examples/demos. The situation I ran into was on Travis where port 5432 was used but its pretty easy to also see the situatoin where anyone trying this out for themselves has other services already occupying those ports. The debug situation is really for us the developers of said examples and not so much for the person who downloads this and wants to run some juttles is it ? |
|
So what I meant by documenting how to reach the underlying db is to run and then check which ports got assigned like so: So its easy enough for us developers to see which port to connect to the postgres (or other) database. |
|
The reason I wanted to expose the ports of backends was twofold:
|
|
@dmehra the comment above your shows that when you say
|
|
Seems like the |
|
I'd lean more towards letting docker pick the free port -- while it's true that shifting by 10000 blunts the likelihood of hitting a conflict, it doesn't really prevent it, nor will people know the ports without running |
|
I'll create a separate PR that makes all of the ports picked by docker and document in the README in a little Development and Debugging section how to see which ports are open when wanting to poke at those running containers. |
per discussion on #68 we want the ports to get auto assigned by docker which would remove any port collision issues also added a documentation section on `Development & Debugging` which lets others how to figure out what port got assigned per container.
per discussion on #68 we want the ports to get auto assigned by docker which would remove any port collision issues also added a documentation section on `Development & Debugging` which lets others how to figure out what port got assigned per container.
per discussion on #68 we want the ports to get auto assigned by docker which would remove any port collision issues also added a documentation section on `Development & Debugging` which lets others how to figure out what port got assigned per container.
4cb5e4e to
828faaa
Compare
fixes #67 with this docker will pick a random host port and allows us to verify the postgres-diskstats juttles
828faaa to
638965f
Compare
|
lgtm. |
fixes #67
with this docker will pick a random host port and allows us to verify
the postgres-diskstats juttles