Open cameron-a-johnson opened 1 month ago
I just finished an experiment in this vein. This is definitely doable, but it does add a non-trival wait time to start up a container since some of our models are huge and take seconds to load in digets the checksum. Granted, I am using the python hashlib
functionality to start, maybe a subprocess to use sha*sum
is more appropriate/faster.
Even with things being threaded, this takes ~8 seconds to run.
Here's an idea, or maybe this exists somewhere and I'm unaware:
We could add a loud warning somewhere for when the models in our
model_files/
directory do not match hashes with those that we have inansible/roles/provision-files/vars/main.yml