atlanticwave-sdx / sdx-controller

Central Controller for AtlanticWave SDX.
https://www.atlanticwave-sdx.net
MIT License
1 stars 3 forks source link

Tox-docker 5.0.0 has deprecated `ports` #291

Closed sajith closed 1 month ago

sajith commented 1 month ago

With the release of tox-docker 5.0.0, tox has stopped working for us because: "This directive (ports) was removed in tox-docker version 5.0. Use expose instead. The ability to map a container port to a specific host port was completely removed."

I have asked a question about forming MONGO_CONNSTRING in tox-docker's issue tracker. The suggestion I received was to use a wrapper script. I prefer breaking down MONGODB_CONNSTRING to component parts and using MONGO_PORT variable set by tox-docker to figure out the exposed port. That feels cleaner, and consistent with our usage of MQ_HOST and MQ_PORT.