-
Notifications
You must be signed in to change notification settings - Fork 54
feat: refactor dockerfile and expose additional helm chart variables #1068
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
Conversation
14e47d7 to
6c0e362
Compare
6c0e362 to
a186e65
Compare
|
We will take a look! /cc @pteranodan |
| COPY api/ api/ | ||
| COPY client/ client/ | ||
| COPY cmd/ cmd/ | ||
| COPY components/ components/ | ||
| COPY docs/ docs/ | ||
| COPY pkg/ pkg/ | ||
| COPY version/ version/ | ||
| COPY Makefile Makefile |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thoughts on simplifying this to a single COPY . . command and managing exclusions in a .dockerignore file?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The only thing that worries me with adding them to .dockerignore is that we are abstracting some build details from the Dockerfile and that can make troubleshooting a bit harder. It is much easier when everything is in the single file, even if this makes it a bit bigger
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fair point. The main reason I suggested the COPY . . command together with a .dockerignore file, is that this pattern is recommended by Docker. It avoids having to update the Dockerfile when new directories are added, it prevents sensitive or unnecessary files from ever being sent to the Docker daemon (keeping the build context small and is a crucial security best practice), and makes exclusions explicit.
/cc @gyuho
|
@MaxFedotov Thanks for the contribution. We have many others that look to support GPUd in container mode. Please let us know how it goes, or feel free to email us at gyuhol@nvidia.com! |
fixes #1067