shorebird icon indicating copy to clipboard operation
shorebird copied to clipboard

feat: Would like a way to pre-cache flutter within a docker container

Open eseidel opened this issue 4 months ago • 3 comments

Shorebird used to have shorebird versions use which would download/install a flutter version and customers used this to pre-cache Shorebird artifacts within a docker container. https://github.com/sncf-connect-tech/shorebird-docker/blob/main/Dockerfile-shorebird-android

We've removed shorebird versions use, so they'd like an equivalent way to do this pre-caching.

e.g. maybe shorebird versions precache X.Y.Z since we still have the "versions" subcommand? This could even call flutter precache as well, although my understanding is flutter precache doesn't actually install everything it needs, just most things (e.g. it won't do the gradle downloads for you).

eseidel avatar Aug 27 '25 16:08 eseidel

As a temporary workaround, it should be possible to use: shorebird release android --flutter-version=X.Y.Z to precache, just expect the command to fail, so it will be hard to tell if the "precaching" parts succeeded.

eseidel avatar Aug 27 '25 16:08 eseidel

Made an attempt: https://github.com/shorebirdtech/shorebird/pull/3295

eseidel avatar Aug 27 '25 16:08 eseidel

Couldn’t users use a mounted volume to cache all shorebird related artifacts (including flutter installations)?

felangel avatar Aug 27 '25 18:08 felangel