Open carbonin opened 3 years ago
Maybe we can and env to set optional port?
I was able to set up my local instance so that the tests would run against that also. But that also requires bypassing skipper
(and by extension, make
) as make unit-test
always starts the container.
We could also document that, but I'm not sure if that's something you want user's doing?
IMO if we're starting our own PG container we should be running it on a non-standard port so as not to conflict with anything. In prod we can, and should, deploy against the standard port, but I don't think it makes sense to pass on the configuration to the person running the tests.
If that's not something you want to do, I think the best option would be just to call out that postgres can't be running locally for skipper
to run unit tests.
Maybe we should change the port just for the unit-test
Maybe we should change the port just for the unit-test
:+1: Yeah, that's what I was thinking.
It's not a parameter supported by default. We will have to change the configuration file inside the container, it's not impossible - just complicate things
I guess this is to run tests (I assume a running PG instance isn't needed to build the images)? It would be nice if it could run on a non-standard port so I can also run postgres locally for other applications.
Other options could be to configure against an existing postgres instance or at least call out that postgres cannot be running for
skipper make all
to succeed in the README.