Hi.
I am trying to use google container registry to store an image of software needed for my analysis. I will use the image to configure the application environment using the option “Container image”.
I had followed the tutorial, publish a docker container image to google container registry. However, with the GCR transition to google artifact registry, I cannot find instructions to use GCR anymore.
When I try to use the artifact registry, the image has certain format as [us-location]-docker.pkg.dev/[project_id]/[imageid:tag]. It would not be accepted by the Terra environment configuration option for “container image”.
I would appreciate some instructions to use artifact registry, or to create GCR, so I can publish the image to GCR. Would Terra accept image from Docker.hub? Or should I just used the startup script to install the software whenever I start the VM?
Thanks.
In addition to my previous question, I would like to know:
It was said, one can either using a custom docker in the interactive notebook, or in a workflow.
To use it in the interactive notebook, the docker has to be extended from the base image. (ref: https://support.terra.bio/hc/en-us/articles/360037143432-Docker-tutorial-Custom-cloud-environments-for-Jupyter-Notebooks).
To use it in a workflow, does the custom docker has to follow certain requirements (has to be extended from the base image) or not? Shall I keep it light weighted? (the terra base image is quite large…)
Hi @truckload,
We unfortunately do not have specific documentation addressing the GCR/GAR transition.
If you are comfortable building Docker images, one option could be trying to pull from Docker hub as WDL can use [almost] any Docker image.
Also, many new AnVIL users do some interactive development using Cloud Enviroments. One of the reasons for doing this is to make sure people would have access to files and software they need.
Javier
@Javier-CP I was wondering if there was any update on Terra being able to find images in the Artifact Registry. Is there a place we can put container images in google that terra will look for them? I have some on DockerHub but it takes very long to pull from there (>15) and I’ll be using AnVIL for workshop modules. I imagine having the images on a google system would be faster. Thanks!
Hi @camancuso,
If your Docker Hub image is public, you can try Google’s official mirror: Pull cached Docker Hub images | Artifact Registry documentation | Google Cloud
Pull times might be faster this way.
Thanks @Javier-CP! I will try to learn about this in the next week or so and see how it works.