Issue #101: also pass the port/protocol as a parameter

Under certain conditions, the Ansible tasks responsible for detecting the exposed ports of the OPAC/Staff interface/OpenSSH server in the Docker container will not work as expected.

The problem arises in the rare case where the exposed Docker ports contain either the numbers 8080 or 8081:

$ docker port koha-unimarc
22/tcp -> 0.0.0.0:38078
8080/tcp -> 0.0.0.0:38079
8081/tcp -> 0.0.0.0:38080

greping for 8080 won't work as expected, as it will return not one but two lines of output.

The solution is to pass the port/protocol as a parameter of the docker port command, like so:

$ docker port koha-unimarc 8080/tcp
0.0.0.0:38079

Merge request reports

Loading