Skip to content

[batch] All public images must be under DOCKER_PREFIX/hailgenetics - #12230

Merged
danking merged 2 commits into
hail-is:mainfrom
daniel-goldstein:public-images-again
Oct 4, 2022
Merged

[batch] All public images must be under DOCKER_PREFIX/hailgenetics#12230
danking merged 2 commits into
hail-is:mainfrom
daniel-goldstein:public-images-again

Conversation

@daniel-goldstein

@daniel-goldstein daniel-goldstein commented Sep 27, 2022

Copy link
Copy Markdown
Contributor

We should treat python-dill like other images in the hailgenetics DockerHub repo and not hard-code our own registry into the docs. I also removed the batch-worker image from the publicly available images, not sure why that was in there but it seems wrong.

@daniel-goldstein
daniel-goldstein marked this pull request as ready for review September 27, 2022 15:30
jigold
jigold previously requested changes Sep 28, 2022
f'{docker_prefix}/{name}'
for name in ('hailgenetics/hail', 'hailgenetics/genetics', 'python-dill', 'batch-worker')
]
return [f'{docker_prefix}/hailgenetics/{name}' for name in ('hail', 'genetics', 'python-dill')]

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

We might need to special case the authentication / docker pull for the batch-worker image to make sure the JVM containers can use it.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

We already do

elif self.image_ref_str == BATCH_WORKER_IMAGE and isinstance(self.credentials, JVMUserCredentials):
pass

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Sorry one last thing. Do we need to add backwards compatibility for python-dill?

@daniel-goldstein daniel-goldstein Sep 28, 2022

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This depends on whether or not you think what was there is a bug. I think it's a bug that we exposed gcr.io/hail-vdc to users. Currently, specifying j.image('hailgenetics/python-dill:3.7') doesn't work, but specifying j.image('gcr.io/hail-vdc/python-dill:3.7') does. It is the only instance where a user can explicitly access an image in gcr.io/hail-vdc. It seems really hacky to add in a compatibility layer that specifically rewrites gcr.io/hail-vdc/python-dill to {DOCKER_PREFIX}/hailgenetics/python-dill, especially considering that we're moving off of gcr.io/hail-vdc entirely.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I feel like an announcement of a breaking bug fix is more appropriate, but if you think this is too much breakage then the other option is to do the rewrite.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Let me double check with KC and the rest of our users to see how many people were actually using this.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I imagine many were building their own images on top, in which case that is unaffected by this change

jigold
jigold previously requested changes Sep 28, 2022
f'{docker_prefix}/{name}'
for name in ('hailgenetics/hail', 'hailgenetics/genetics', 'python-dill', 'batch-worker')
]
return [f'{docker_prefix}/hailgenetics/{name}' for name in ('hail', 'genetics', 'python-dill')]

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Sorry one last thing. Do we need to add backwards compatibility for python-dill?

@daniel-goldstein
daniel-goldstein dismissed jigold’s stale review September 30, 2022 15:26

are we ok doing this now? Looks like there's no complaints in the zulip thread

@jigold jigold added prio:high CI tests and merges this PR first WIP labels Sep 30, 2022
@daniel-goldstein

daniel-goldstein commented Oct 3, 2022

Copy link
Copy Markdown
Contributor Author

Not quite sure why this was re-marked WIP. Anyway, switching to AR meant users lost access to gcr.io/hail-vdc/python-dill anyway so this PR is no longer the source of a breaking change and now a fix so that users can use hailgenetics/python-dill.

@jigold

jigold commented Oct 3, 2022

Copy link
Copy Markdown
Contributor

I added the WIP because I thought from Zulip that it wasn't necessary to make the change for the artifact registry conversion and Dan thought it might be rude to do so, hence why I thought we might need to discuss it more. You can take the WIP tag off, but remind me to add this breaking change to the announcement to users about the changes for this week.

@danking
danking merged commit 0eccd67 into hail-is:main Oct 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

prio:high CI tests and merges this PR first

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants