learningequality / kolibri-installer-android

Android wrapper for Kolibri.
MIT License
26 stars 22 forks source link

Dev Cache/Build Overhaul #50

Closed DXCanas closed 4 years ago

DXCanas commented 4 years ago

Rethinking how we cache things.

Have run into a few issues with cache being too aggressive, where dependency changes and pyeverywhere/python-for-android changes wouldn't propagate during build time in the pipeline.

Reworking the order of that. Changes for our vendored versions of those are now checked fore before installation so that cache invalidates on update.

android distro caches now happen inside of volumes and are mounted between builds, so those aren't invalidated unless we need different SDK/NDKs. Easy to delete, too: docker volume rm <name of volume>

And I de-prioritized source code reuse, as the source is actually really small. Meaning we can now deploy this image and have it run cache-less if we want, just as docker intended.

kollivier commented 4 years ago

@DXCanas This looks awesome, thanks! Will give it a spin tomorrow and review! :)