fix: handle 127 error code for podman compatibility#2778
fix: handle 127 error code for podman compatibility#2778mdelapenya merged 7 commits intotestcontainers:mainfrom
Conversation
✅ Deploy Preview for testcontainers-go ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
fe93655 to
9a6847f
Compare
stevenh
left a comment
There was a problem hiding this comment.
Thanks for these improvements, some more suggestions
stevenh
left a comment
There was a problem hiding this comment.
Looking good, we just need to handle the new error on return from the internalCheck function and we should be good
do we also need to write a test in host_port_test.go for exitCode = 127? |
d3f2a75 to
dca8e0f
Compare
Yes please, once added, I think this PR is good to merge, thanks! |
|
Just to double check, if moby/moby#45795 would get fixed in the upstream, this PR would still be valid, correct? |
Technically it should only check 127, as 126 is an access issue which should not happen for That said we would likely want this for compatibility with older versions of docker which have the issue as people won't upgrade instantly even if it is fixed. |
70dc8d7 to
36a4e89
Compare
stevenh
left a comment
There was a problem hiding this comment.
Sorry I think there was a miss understanding about my comment to use require, the intent was only for the new test, not to do it globally, which while desired could cause a lot of conflicts with other PRs that are currently in flight.
a58712d to
d967bfd
Compare
5ff9e57 to
c3cccd4
Compare
|
@vchandela can you run |
c3cccd4 to
d7c1fd7
Compare
Done. Thanks for pointing out. |
…error and switch case instead of if-else-if
…ategyTarget to MockStrategyTarget to avoid export errors; run make lint
d7c1fd7 to
d76ecc1
Compare
stevenh
left a comment
There was a problem hiding this comment.
Looks good to me, thank you for all your effort on the back and forward on this most appreciated.
|
@vchandela can you check into the CI failures to make sure they aren't fall out from this. |
They seem unrelated to this PR. One is for K3s and another is for rabbitmq. |
* main: feat: support databend module (#2779) chore: golangci-lint 1.61.0 (#2787) fix(mssql): bump Docker image version (#2786) fix: handle 127 error code for podman compatibility (#2778) fix: do not override ImageBuildOptions.Labels when building from a Dockerfile (#2775) feat(mongodb): Wait for mongodb module with a replicaset to finish (#2777) fix(postgres): Apply default snapshot name if no name specified (#2783)
* main: chore: use a much smaller image for testing (testcontainers#2795) fix: parallel containers clean race (testcontainers#2790) fix(registry): wait for (testcontainers#2793) fix: container timeout test (testcontainers#2792) docs: document redpanda options (testcontainers#2789) feat: support databend module (testcontainers#2779) chore: golangci-lint 1.61.0 (testcontainers#2787) fix(mssql): bump Docker image version (testcontainers#2786) fix: handle 127 error code for podman compatibility (testcontainers#2778) fix: do not override ImageBuildOptions.Labels when building from a Dockerfile (testcontainers#2775) feat(mongodb): Wait for mongodb module with a replicaset to finish (testcontainers#2777) fix(postgres): Apply default snapshot name if no name specified (testcontainers#2783) fix: resource clean up for tests and examples (testcontainers#2738) ci: add generate for mocks (testcontainers#2774) fix: docker config error handling when config file does not exist (testcontainers#2772)
* main: chore: use a much smaller image for testing (testcontainers#2795) fix: parallel containers clean race (testcontainers#2790) fix(registry): wait for (testcontainers#2793) fix: container timeout test (testcontainers#2792) docs: document redpanda options (testcontainers#2789) feat: support databend module (testcontainers#2779) chore: golangci-lint 1.61.0 (testcontainers#2787) fix(mssql): bump Docker image version (testcontainers#2786) fix: handle 127 error code for podman compatibility (testcontainers#2778) fix: do not override ImageBuildOptions.Labels when building from a Dockerfile (testcontainers#2775) feat(mongodb): Wait for mongodb module with a replicaset to finish (testcontainers#2777) fix(postgres): Apply default snapshot name if no name specified (testcontainers#2783) fix: resource clean up for tests and examples (testcontainers#2738)
* main: (29 commits) fix: template for code generation (#2800) fix: update module path (#2797) fix: container logging deadlocks (#2791) chore: use a much smaller image for testing (#2795) fix: parallel containers clean race (#2790) fix(registry): wait for (#2793) fix: container timeout test (#2792) docs: document redpanda options (#2789) feat: support databend module (#2779) chore: golangci-lint 1.61.0 (#2787) fix(mssql): bump Docker image version (#2786) fix: handle 127 error code for podman compatibility (#2778) fix: do not override ImageBuildOptions.Labels when building from a Dockerfile (#2775) feat(mongodb): Wait for mongodb module with a replicaset to finish (#2777) fix(postgres): Apply default snapshot name if no name specified (#2783) fix: resource clean up for tests and examples (#2738) ci: add generate for mocks (#2774) fix: docker config error handling when config file does not exist (#2772) docs: refine heading badges in README (#2770) feat(wait): for file (#2731) ...
What does this PR do?
Why is it important?
Related issues
How to test this PR
podman exec -ti <containerid> /bin/sh -c "echo test"; echo $?