-
Notifications
You must be signed in to change notification settings - Fork 467
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
Kubeflow dockerignore #249
Conversation
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.
Alright - what a PR! Its amazing how you were able to fix the mess of the LocalService that I created. Will definitely improve it in the future. Just have two small change request, but otherwise feel free to merge after fixing!
gzip=False, | ||
extra_files=extra_files, | ||
) | ||
|
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.
i would add an else with a log that you did not specify a dockerignore
and a .dockerignore
does not exist at root, so we are building all the context with all the files
@@ -97,6 +176,9 @@ def build_docker_image( | |||
image_name: The name to use for the created docker image. | |||
dockerfile_path: Optional path to a dockerfile. If no value is given, | |||
a temporary dockerfile will be created. | |||
dockerignore_path: Optional path to a dockerignore file. If no value is | |||
given, the .dockerignore in the root of the build context will be | |||
used if it exists. |
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.
Add: If that doesn't exist, then we create the context with all files.
Pre-requisites
Please ensure you have done the following:
Types of changes
Describe changes