nginx-container
nginx-container copied to clipboard
[WIP] Make tests work also for rootless containers
- add -P to docker run when running container tests
Publish all exposed ports to random ports on the host interface. Add function for getting actual mapped port, and do not use hardcoded 8080. Return 8080, only when port is not published (works in rootfull configuration in one subnet).
-
return "localhost" as an IP, if container itself does not have any IP assigned (when running in rootless state)
-
known issues -> rootfull configuration seem to run only for localhost:published_port combination
-
also needs support from container-common-scripts (WIP)
NOT INTENDED FOR MERGING YET.
[test-all]
[test-all]
[test-all]
[test-all]
[test-all]
[test-openshift]
[test-openshift]
[test-openshift]
[test-openshift]
Pull Request validation
Failed
🔴 Review - Missing review from a member
Success
🟢 CI - All checks have passed