Skip to content

[v4.4.1 rhel] Support podman --remote when Containerfile is not in context directory#19416

Closed
Romain-Geissler-1A wants to merge 1 commit intocontainers:v4.4.1-rhelfrom
Romain-Geissler-1A:v4.4.1-rhel
Closed

[v4.4.1 rhel] Support podman --remote when Containerfile is not in context directory#19416
Romain-Geissler-1A wants to merge 1 commit intocontainers:v4.4.1-rhelfrom
Romain-Geissler-1A:v4.4.1-rhel

Conversation

@Romain-Geissler-1A
Copy link
Copy Markdown
Contributor

Hi,

This is simply a cherry-pick of #18577 fixing #18239 on RHEL (we use RHEL 9.2, which is using podman 4.4.1). I have just opened the Red Hat case https://access.redhat.com/support/cases/#/case/03574665 to ask officially on Red Hat side for this backport, I have no RH Bugzilla ticket since I can't create them myself.

Note: I didn't cherry-pick the changes in pkg/util/utils.go is this function doesn't exist in podman 4.4. I guess with podman 4.4 the handling of .dockerignore might still be a bit fishy when it's a symlink outside of the build tree and we use the remote podman, but it's not something we suffer from, so I have left this part of the diff away.

I checked that this works fine inside containers, using commands similar to the one I wrote in the Red Hat case.

Cheers,
Romain

@openshift-ci
Copy link
Copy Markdown
Contributor

openshift-ci bot commented Jul 28, 2023

Adding the "do-not-merge/release-note-label-needed" label because no release-note block was detected, please follow our release note process to remove it.

Details

Instructions 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/test-infra repository.

@openshift-ci openshift-ci bot added the do-not-merge/release-note-label-needed Enforce release-note requirement, even if just None label Jul 28, 2023
@openshift-merge-robot openshift-merge-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Jul 28, 2023
@Romain-Geissler-1A Romain-Geissler-1A changed the title V4.4.1 rhel [v4.4.1 rhel] Support podman --remote when Containerfile is not in context directory Jul 28, 2023
@Romain-Geissler-1A Romain-Geissler-1A changed the base branch from v4.1.1-rhel to v4.4.1-rhel July 28, 2023 18:03
@mheon
Copy link
Copy Markdown
Member

mheon commented Jul 28, 2023

If this is specific to Podman on Windows - given we're using FCOS on the Windows VMs, and FCOS should be getting 4.6 very soon - is this required?

Fixes: containers#18239

[NO NEW TESTS NEEDED]

@test "podman build -f test" in test/system/070-build.bats

Will test this.  This was passing when run on a local system since
the remote end was using the clients path to read the Containerfile
The issue is it would not work in a podman machine since the
Containerfile would/should be a different path.

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Signed-off-by: Romain Geissler <romain.geissler@amadeus.com>
@openshift-ci
Copy link
Copy Markdown
Contributor

openshift-ci bot commented Jul 28, 2023

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: Romain-Geissler-1A
Once this PR has been reviewed and has the lgtm label, please assign umohnani8 for approval. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-merge-robot openshift-merge-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Jul 28, 2023
@github-actions github-actions bot added the kind/api-change Change to remote API; merits scrutiny label Jul 28, 2023
@Romain-Geissler-1A
Copy link
Copy Markdown
Contributor Author

If this is specific to Podman on Windows - given we're using FCOS on the Windows VMs, and FCOS should be getting 4.6 very soon - is this required?

No we are using fully patched RHEL 9.2, and in some scenarios podman is used in --remote mode.

@TomSweeneyRedHat
Copy link
Copy Markdown
Member

@mheon
Copy link
Copy Markdown
Member

mheon commented Aug 17, 2023

Merged via #19632, closing

@mheon mheon closed this Aug 17, 2023
@github-actions github-actions bot added the locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments. label Nov 16, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 16, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

do-not-merge/release-note-label-needed Enforce release-note requirement, even if just None kind/api-change Change to remote API; merits scrutiny locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants