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

Defensively include Dockerfile #2270

Merged
merged 1 commit into from
Apr 25, 2022

Conversation

niloc132
Copy link
Member

This is a problem as I make the "build this wheel in docker" more customizable, as it is possible to provide "includes" and "excludes" rules for the wheel that accidentally exclude the Dockerfile itself, thus making the project unbuildable. This commit ensures that the dockerfile itself will always be included when the image is prepared.

Partial #2221

@@ -249,9 +249,13 @@ class Docker {
sync.into dockerWorkspaceContents

if (cfg.dockerfileFile) {
sync.from cfg.dockerfileFile
sync.from(cfg.dockerfileFile) { CopySpec dockerfileCopy ->
dockerfileCopy.include('Dockerfile')
Copy link
Member

Choose a reason for hiding this comment

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

Should we take the provided file name instead of assuming Dockerfile?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, that's a good idea, I'll correct that.

@niloc132 niloc132 force-pushed the dockerfiles-always-included branch from aff1c09 to 7aec7c1 Compare April 25, 2022 16:32
@devinrsmith devinrsmith self-requested a review April 25, 2022 16:49
@niloc132 niloc132 merged commit 5ac0831 into deephaven:main Apr 25, 2022
@github-actions github-actions bot locked and limited conversation to collaborators Apr 25, 2022
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.

2 participants