-
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
podman-remote build should handle -f option properly #10550
Conversation
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: 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 |
@edsantiago PTAL |
Almost working (in buildah-bud tests) but still some problems; I'm looking into them, will report back once I understand them. |
Here's one problem: multiple $ mkdir aaa
$ printf "FROM scratch\nCOPY Containerfile1 /\n" >aaa/Containerfile1
$ printf "COPY Containerfile2 /\n" >aaa/Containerfile2
$ bin/podman-remote build -t foo -f aaa/Containerfile1 -f aaa/Containerfile2 aaa
STEP 1: FROM scratch
STEP 2: COPY Containerfile1 /
!!! missing STEP 3: COPY Containerfile2 / (works fine with bin/podman)
STEP 3: COMMIT foo
--> 7a15f1ab70b
Successfully tagged localhost/foo:latest
7a15f1ab70b3e68b8f6f25fa86a1f268636d25befe1ea026849aca613d19d4b5 This may be related to (and fixable in) your PR, or it might need a separate issue. Please LMK if I should file one. |
Here's another one: $ mkdir aaa
$ echo "FROM scratch" | bin/podman-remote build -t foo -f - aaa
Error: error building: no stages to build
(works fine with non-remote podman). |
The other two problems are not related to this PR. One is the |
Oh... and my nits are not meant as complaints. This PR allows me to enable forty-eight tests in |
Interesting. This new revision works much better with podman-remote + buildah-bud.bats, but fails in APIv2 and compose tests with what looks like a real error - one that is not caught by buildah-bud tests! |
098debe
to
3f487d9
Compare
buildah-bud-under-podman also failing with same error as CI:
|
podman-remote build has to handle multiple different locations for the Containerfile. Currently this works in local mode but not when using podman-remote. Fixes: containers#9871 Signed-off-by: Daniel J Walsh <[email protected]>
LGTM. A lot more tests are passing. |
/lgtm |
podman-remote build has to handle multiple different locations
for the Containerfile. Currently this works in local mode but not
when using podman-remote.
Fixes: #9871
Signed-off-by: Daniel J Walsh [email protected]