serratus icon indicating copy to clipboard operation
serratus copied to clipboard

Migrating from Dockerhub to ECR

Open ababaian opened this issue 5 years ago • 6 comments

Currently each instance is pulling an image from the serratusbio dockerhub repository. We can likely download this faster by pulling directly from ECR.

This can be accomplished by:

  • [ ] Modify the build_containers.sh script to push to ECR if the environmental variable ECR_ACCOUNT is set in the same way that DOCKERHUB_USER works. Related, if the ECR repository does not exist, it should be created on that account: serratus-dl, serratus-align etc...

  • [ ] For each instance, the user_data is defined in terraform launches the appropriate image/container. These will need to be changed to ECR, which may require a ECR read permission policy be added to the worker IAM

  • [ ] Finally, within the user_data for each instance, ECR should be tried first, and if it is unavailable, dockerhub will be a fallback. This ensures if there's a permission/config error on the instance, at least something gets booted up and the instance doesn't stall out without a container which is the worst possible case.

ababaian avatar Jun 17 '20 01:06 ababaian

Hi @ababaian, nice to meet :) I wanted to ask how can I help with this issue? :)

kobi86 avatar Jul 29 '21 10:07 kobi86

Hey @kobi86, sounds great!

Right now Serratus is still is quite challenging to get up and running (related is #22). The first step is to boot-up a Serratus cluster on another AWS account.

I have a tutorial written up on this, and it would be great to get feedback on this and make sure that there is enough information there to get it up and running. Once you can boot up a small cluster (say 1 node), we can go through the above steps to migrate the docker images to ECR.

Pop into the Slack if you'd like, we can chat about it.

ababaian avatar Jul 29 '21 13:07 ababaian

Hey @ababaian . Is this issue still open? If yes, I am interested to pick this up. Also, please let me know on how can we connect on Slack or GMeet.

avinashsingh77 avatar Feb 24 '23 07:02 avinashsingh77

Hi @avinashsingh77 , this is actually non-critical these days. Most relevant issues for starting out are probably here: https://github.com/serratus-bio/serratus.io/issues

Shoot me an email artem AT rRNA dot ca and I can get you an invite to the slack :) Welcome!

ababaian avatar Feb 25 '23 17:02 ababaian

Hey @ababaian , I have sent you an email from my gmail id for the slack invite. Thanks!!

avinashsingh77 avatar Mar 14 '23 04:03 avinashsingh77

You should have gotten an invite a week ago or so, check spam

ababaian avatar Mar 14 '23 14:03 ababaian