testcontainers / testcontainers-ruby

Testcontainers for Ruby
MIT License
120 stars 16 forks source link

Fix DockerContainer#add_exposed_ports. #7

Closed guilleiguaran closed 1 year ago

guilleiguaran commented 1 year ago

Avoid overriding the PortBinding settings set by add_fixed_exposed_port when the same port is exposed with add_exposed_ports in a later stage.

This allows to the modules to call to a default add_exposed_ports on start without overriding the previous port bindings set by the user on purpose.