Open alxmrs opened 1 year ago
Since we git clone weather tools in the docker image, we should also find a way to prevent test data being checked in.
https://github.com/google/weather-tools/blob/main/Dockerfile#L29
I think this could make our image more lightweight!
Here's an idea! Let's replace hosting our own test data by using examples from the Xarray tutorial: https://docs.xarray.dev/en/stable/generated/xarray.tutorial.open_dataset.html
I just noticed something. When trying to build a docker image with a clean-ish branch (no non-checked in files), I got this log trace from Google Cloud Build:
I did an experiment: I deleted all the test data folders and re-rand the command to build our docker image:
This is quite a huge improvement! In general, I wonder if there's a way where we can not have checked-in test data.