Skip to content

Dockerfile: fix vendor validation#253

Merged
thaJeztah merged 1 commit intodocker:masterfrom
crazy-max:fix-dockerfile
Jan 30, 2023
Merged

Dockerfile: fix vendor validation#253
thaJeztah merged 1 commit intodocker:masterfrom
crazy-max:fix-dockerfile

Conversation

@crazy-max
Copy link
Copy Markdown
Member

follow-up #252 (comment)

Signed-off-by: CrazyMax [email protected]

@crazy-max crazy-max requested a review from thaJeztah January 22, 2023 20:48
@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Jan 22, 2023

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Comment thread Dockerfile
FROM vendored AS vendor-validate
RUN --mount=type=bind,target=.,rw <<EOT
RUN --mount=target=/context \
--mount=target=.,type=tmpfs <<EOT
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Wondering if we should change all the .'s with an absolute paths (I think it's /src in this case?). Currently I have to read "up" in the Dockerfile to understand what . refers to.

Do we know why a tmpfs is needed for this? Is this an issue with overlayfs not supporting some attributes, or what's the cause?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Or is there no content at all (as there's no COPY) and that was the issue?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Or is there no content at all (as there's no COPY) and that was the issue?

Yes that was the issue

@crazy-max crazy-max requested a review from thaJeztah January 29, 2023 22:24
Copy link
Copy Markdown
Member

@thaJeztah thaJeztah left a comment

Choose a reason for hiding this comment

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

LGTM

@thaJeztah thaJeztah merged commit 20454ad into docker:master Jan 30, 2023
@crazy-max crazy-max deleted the fix-dockerfile branch January 30, 2023 11:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants