lenra-io / lenra_cli

The Lenra's command line interface
MIT License
16 stars 1 forks source link

[Bug]: Regulary re-download the app build image #316

Open Nesqwik opened 1 year ago

Nesqwik commented 1 year ago

What happened?

Sorry in advance, I will not have very precise informations about this one.. I reagulary have to redownload some images when i use the lenra dev command. These images should already exists since it's not the fist time i compile an app using the javascript-template but for an unknown reason, it often redownload some images (during build time or to start the environment).

It's a bit annoying since I don't always have a good internet, I sometime have to use 4G and downloading 1Go on a daily basis just to start my app using the devtools is really annoying...

What browsers are you seeing the problem on?

Other (specify above)

Version

lenra_cli 1.0.0-beta.32

Relevant log output

Capture d’écran 2023-09-12 à 15 28 43

taorepoara commented 1 year ago

The problem comes from Buildkit that by default do not handle a strong cache on from Docker images.

We could handle local cache for the target image but it's not so simple.

We also can pull all the from images for the Dofigen generators, but not for the Dockerfile one.

taorepoara commented 4 months ago

This could be resolved with this solution: https://github.com/lenra-io/dofigen/issues/181