forked from testcontainers/testcontainers-hs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[testcontainers#50] Make it possible to expose container port on spec…
…ific host IP The main motivation for this change is the fact that by default Docker will map both ipv4 and ipv6 addresses and in some cases Docker will map them to different host ports causing 'testcontainer-hs' testsuite to fail while waiting for container to be available at specific port. So this commit introduces an ability to explicitly host IP and port via 'setExpose' using the same syntax as 'docker run --publish/expose' option (see https://docs.docker.com/reference/cli/docker/container/run/#publish). A few more cursed instances are added. Mostly for the sake of backward compatibility with old 'setExpose' interface:)
- Loading branch information
Showing
2 changed files
with
69 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters