Fix operator image build failure when using Podman as container runtime#1976
Fix operator image build failure when using Podman as container runtime#1976fjglira wants to merge 1 commit into
Conversation
…perator image While running test locally if you are using purely podman you will get error messages while trying to run the test, adding this podman specific steps will allow any user to run the e2e test or build and push using the script while using podman. The error is because podman uses a VM and seems to be that the chained containers causes errors Signed-off-by: Francisco Herrera <fjglira@gmail.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1976 +/- ##
==========================================
- Coverage 80.14% 80.06% -0.08%
==========================================
Files 51 51
Lines 2614 2614
==========================================
- Hits 2095 2093 -2
- Misses 395 396 +1
- Partials 124 125 +1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
| mkdir -p "${tmp_ctx}/out/linux_${TARGET_ARCH}" | ||
| cp "${repo_root}/out/linux_${TARGET_ARCH}/sail-operator" "${tmp_ctx}/out/linux_${TARGET_ARCH}/sail-operator" | ||
|
|
||
| docker build \ |
There was a problem hiding this comment.
Should this be podman build or does it not matter?
There was a problem hiding this comment.
Ohh, the podman configuration that I have already mount docker in the podman socket and allow to execute docker command but it's running at the end podman. Let me check if the behaviour keeps the same (I don't think there is going to be any change)
|
/retest |
|
@fjglira: The following test failed, say
DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
Fix operator image build failure when using Podman as the container runtime. When running inside a Podman VM build container,
docker build .fails to transfer the build context to Docker Desktop; the workaround uses a minimal temp directory containing only the Dockerfile and the compiled binary, bypassing the context transfer issue.The existing Docker path (used in CI) is completely unchanged.