-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Context Directory to tar #13531
Add Context Directory to tar #13531
Conversation
@Luap99 i think that this: podman/pkg/bindings/images/build.go Lines 565 to 567 in b1d37a7
could also be this (seems like we use the compat function for the libpod endpoint) we are checking whether the containerfile is in the context dir: podman/pkg/api/handlers/compat/images_build.go Lines 174 to 183 in ecd2746
|
8a83e67
to
039699e
Compare
@containers/podman-maintainers PTAL. I have tested this on two remote machine and made sure the server does not already have the context directory, and this works properly. |
Please change your commit message/PR description to reflect the current change. |
seems like I am including too much now in the tar, I will need to add a line back into just include context dir and containerfile not the root directories. |
05b829e
to
33f4b41
Compare
podman build fails on remote build when using a relative context directory. This is because the context dir was not being added to the tar, so when remote the compat build function would not be able to stat the contextDir. resolves containers#13293 Signed-off-by: cdoern <[email protected]>
@containers/podman-maintainers PTAL |
LGTM with two nits, you can fix them if you need to repush, but they're not a big deal |
@mheon I do not think I need to re-push. Should I just leave those as is? |
Sure, unless someone else adds comments before merge |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: cdoern, rhatdan The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Hi, Thanks for this pull request ! ;) Would it be possible to ask for a backport in branch 4.0 when it will be opened again ? Cheers, |
podman build fails on remote build when using a relative context directory.
This is because the context dir was not being added to the tar, so when remote
the compat build function would not be able to stat the contextDir.
resolves #13293
Signed-off-by: cdoern [email protected]