Devstack Vs Tutor

But that’s not from scratch, right? Building from scratch, it takes my machine ~8 minutes to get from the ubuntu-20.04 base image to the point where system requirements are installed, Python retirements are installed, and edx-platform is cloned. At that point, it takes up to 10 more minute to build static assets, as you’ve pointed out. When your asset-free build took 30 seconds, I imagine that’s because all the other stuff was successfully loaded from the Docker

That’s why I’ve been working on with all the Paver removal stuff–I’m trying to get the static assets to “stick” in the Docker cache better, such that they’d only ever be rebuilt if you were actually modifying the asset sources. I’m hoping to get that into Redwood, with further improvements shortly after Redwood once Paver is actually out.

That said, removing static assets entirely would also work :joy: It’s bold to remove them now, with XBlocks and the instructor dashboard still using legacy assets, but maybe that tradeoff is worth it at this point?

Here’s an idea: Extract the edx-platform asset build into a tutor-legacy-assets plugin, which uses a Dockerfile patch to insert asset compilation into the openedx Dockerfile. It’d be installed and enabled by default so that XBlocks still render out-of-the-box, but developers could just run tutor plugins disable legacy-assets in order to get that 10 minute build speedup.

2 Likes