dchaley / deepcell-imaging

Tools & guidance to scale DeepCell imaging on Google Cloud Batch
7 stars 2 forks source link

Automate container build #254

Closed dchaley closed 2 weeks ago

dchaley commented 2 weeks ago

Last time in #206 we abandoned container building b/c we couldn't straightforwardly integrate a GitHub service account with Cloud Build, b/c the project belongs to me (@dchaley) not an organization.

Since then it's become more important to have up-to-date containers in artifact registry and especially, DockerHub for folks who don't have access to container building.

Task: automatically build container on push to main. Push to: GCP artifact registry; Docker hub

dchaley commented 2 weeks ago

First build: womp womp. 😿

#12 26.21 ERROR: THESE PACKAGES DO NOT MATCH THE HASHES FROM THE REQUIREMENTS FILE. If you have updated the package versions, please update the hashes. Otherwise, examine the package contents carefully; someone may have tampered with them.
#12 26.21     unknown package:
#12 26.21         Expected sha256 2507549cb11e34a79f17ec8bb847d80afc9e71f8d8dffbe4c60baceacbeb787f
#12 26.21              Got        bdb08e5ff6de052aed79acf4d6e16c5e09bac12559c6c234511b6048e2d08342
#12 26.21 
#12 ERROR: process "/bin/bash -c pip install --user --upgrade -r requirements.txt" did not complete successfully: exit code: 1
dchaley commented 2 weeks ago

Summary of first build times (2min in build itself, failed)

Image

dchaley commented 2 weeks ago

We have liftoff! The extra 3min is pushing to Docker Hub.

Screenshot 2024-06-27 at 10 03 34 PM

As for Docker Hub it shows the service account updating the container:

Screenshot 2024-06-27 at 10 02 24 PM

🎉