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: set permission bits when we tar dockerfile into docker context #3594

Merged
merged 1 commit into from
Jul 20, 2020

Conversation

maiamcc
Copy link
Contributor

@maiamcc maiamcc commented Jul 17, 2020

a user had an issue copying . (in their container) into a volume: they got permission errors b/c we tar in the dockerfile with no permission bits. this PR sets permissions arbitrarily to 0644.

we tar in the dockerfile b/c docker requires that the dockerfile exist somewhere in the archive. the idea solution here would be to replicate Docker's behavior of putting the Dockerfile somewhere random in the context such that it's in the archive (as is needed for building the image) but doesn't get copied into the container if the user runs COPY . ....

@maiamcc maiamcc requested review from jazzdan and nicks July 17, 2020 21:35
@maiamcc maiamcc merged commit b237c2e into master Jul 20, 2020
@maiamcc maiamcc deleted the maiamcc/df-tar branch July 20, 2020 15:55
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.

None yet

2 participants