-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Add support for submitting a prebuilt image #8802
Conversation
Rename submit_dockerfile to submit_container_image submit_container_image now accepts a docker_config of a more generic WorkerConfig type which could be DockerWorkerConfig or PrebuiltWorkerConfig Add unit tests
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
ruff has already been configured to format notebook files as well.
We might also have to generalize the |
get_by_worker_config now accepts a config of a more generic WorkerConfig type which could be DockerWorkerConfig or PrebuiltWorkerConfig
in services.worker_image.submit_container_image and services.worker_image.get_by_config
Revert to use a different dockerfile for each test
8fe7089
to
16bcf91
Compare
set registry_uid
1c99dd4
to
f9ec9d3
Compare
f9ec9d3
to
749bc1e
Compare
d4bb721
to
f2c4d5c
Compare
be68096
to
b0b658a
Compare
1e283b4
to
b9554e5
Compare
5e3a8f3
to
b2a4ba4
Compare
b2a4ba4
to
f9a35e1
Compare
@yashgorana @shubham3121 May I use this opportunity to correct some inconsistencies in arg names of various API endpoints?
|
We also use |
Yes although, a tag by itself and an image by itself arent really useful, we can extract the image and repo from the tag, but not the other way around. I would call this |
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.
Amazing work @kiendang !! 🎉 💯
Great work generalising the APIs for submitting worker configs.
Will put these in a separate PR. |
@@ -110,7 +110,7 @@ def test_create_pool_request_accept( | |||
assert root_client.credentials != ds_client.credentials | |||
|
|||
# the DO submits the docker config to build an image | |||
submit_result = root_client.api.services.worker_image.submit_container_image( | |||
submit_result = root_client.api.services.worker_image.submit( |
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.
👍🏾
this should be ds_client instead of domain_client
submit_dockerfile
tosubmit_container_image
.submit_container_image
now accepts adocker_config
of a more genericWorkerConfig
type which could beDockerWorkerConfig
orPrebuiltWorkerConfig
Works with (modified) notebook 11. Only need to