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

build: fixing references in Dockerfile (PROJQUAY-8087) #2154

Closed
wants to merge 1 commit into from

Conversation

bcaton85
Copy link

@bcaton85 bcaton85 commented Oct 14, 2024

Variables within the heredoc need to be escaped in order to be assigned correctly.

Signed-off-by: bcaton [email protected]

@bcaton85 bcaton85 requested a review from a team as a code owner October 14, 2024 18:35
@bcaton85 bcaton85 requested review from RTann and removed request for a team October 14, 2024 18:35
@bcaton85 bcaton85 changed the title Fixing references in Dockerfile (PROJQUAY-8087) build: fixing references in Dockerfile (PROJQUAY-8087) Oct 14, 2024
@bcaton85 bcaton85 requested a review from crozzy October 14, 2024 18:40
Copy link
Member

@hdonnay hdonnay left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This changes the Dockerfile to execute a bash command (with broken escaping I think) instead of a script. That is, it executes sh -c 'bash <<. ...' instead of sh -c '...'. In the latter, the heredoc is Dockerfile syntax whereas in the former it's shell syntax.

I think any changes should only be made if there's a problem running this via buildkit, which is the only upstream-supported container builder.

@bcaton85 bcaton85 closed this Oct 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants