nginx-container icon indicating copy to clipboard operation
nginx-container copied to clipboard

[WIP] Make tests work also for rootless containers

Open zmiklank opened this issue 3 years ago • 10 comments

  • 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.

zmiklank avatar Apr 27 '22 12:04 zmiklank

[test-all]

zmiklank avatar Apr 27 '22 12:04 zmiklank

[test-all]

zmiklank avatar May 02 '22 06:05 zmiklank

[test-all]

zmiklank avatar May 31 '22 08:05 zmiklank

[test-all]

phracek avatar Jun 20 '22 08:06 phracek

[test-all]

phracek avatar Sep 08 '22 11:09 phracek

[test-openshift]

phracek avatar Sep 12 '22 14:09 phracek

[test-openshift]

zmiklank avatar Mar 09 '23 13:03 zmiklank

[test-openshift]

zmiklank avatar Mar 09 '23 14:03 zmiklank

[test-openshift]

zmiklank avatar Mar 26 '24 14:03 zmiklank

Pull Request validation

Failed

🔴 Review - Missing review from a member

Success

🟢 CI - All checks have passed

github-actions[bot] avatar Jun 27 '24 11:06 github-actions[bot]