Skip to content
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

stage_executor,heredoc: honor interpreter in heredoc #5255

Merged
merged 2 commits into from Jan 23, 2024

Conversation

flouthoc
Copy link
Collaborator

@flouthoc flouthoc commented Jan 8, 2024

If there are any shebang in heredoc file then buildah must honor that. Consider a case of

FROM python:3.11-slim-bullseye
RUN <<EOF
#!/usr/bin/env python
print('hello world')
EOF

Closes: #5251

What type of PR is this?

/kind api-change
/kind bug
/kind cleanup
/kind deprecation
/kind design
/kind documentation
/kind failing-test
/kind feature
/kind flake
/kind other

What this PR does / why we need it:

How to verify it

New Integration test

Which issue(s) this PR fixes:

Special notes for your reviewer:

Does this PR introduce a user-facing change?

stage_executor,heredoc: honor interpreter/shebang in heredoc

Copy link
Contributor

openshift-ci bot commented Jan 8, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: flouthoc

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@flouthoc
Copy link
Collaborator Author

flouthoc commented Jan 8, 2024

@nalind @rhatdan @containers/buildah-maintainers PTAL

@rhatdan
Copy link
Member

rhatdan commented Jan 11, 2024

LGTM

If there are any shebang in heredoc file then buildah must honor that.
Consider a case of

```Dockerfile
FROM python:3.11-slim-bullseye
RUN <<EOF
print('hello world')
EOF
```

Closes: containers#5251

Signed-off-by: flouthoc <flouthoc.git@gmail.com>
@flouthoc
Copy link
Collaborator Author

Rebased.

@flouthoc
Copy link
Collaborator Author

@nalind @containers/build-maintainers PTAL

@rhatdan
Copy link
Member

rhatdan commented Jan 17, 2024

@TomSweeneyRedHat
Copy link
Member

LGTM
the branch needs to be udated and I've just kicked that off.

@flouthoc
Copy link
Collaborator Author

@TomSweeneyRedHat I think rebased worked but it added additional commit, you can remove it with button (squash and merge)

@rhatdan
Copy link
Member

rhatdan commented Jan 23, 2024

/lgtm

@openshift-ci openshift-ci bot added the lgtm label Jan 23, 2024
@openshift-merge-bot openshift-merge-bot bot merged commit ec27cc1 into containers:main Jan 23, 2024
34 checks passed
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 23, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Shebangs don’t work in heredoc RUN instructions
3 participants