OpenVAA / voting-advice-application

An open-source platform for creating Voting Advice Applications (VAAs)
https://openvaa.org/en
GNU General Public License v3.0
10 stars 0 forks source link

Building the app with Docker creates a lot of volumes #340

Open johannalaitila opened 7 months ago

johannalaitila commented 7 months ago

There are a lot Docker volumes being created when building the app. Investigate why this is and if it could be reduced. Also, a lot if images are being created, so same issue there.

johannalaitila commented 7 months ago

@TrixterTheTux if I remember correctly, were you thinking that potentially node modules are being copied to a new volume every time the app is built?

johannalaitila commented 7 months ago

Note for self - might be related to this:

image

https://github.com/docker/compose/issues/1487

we use docker compose up currently

TrixterTheTux commented 7 months ago

I suspect the cause is https://github.com/OpenVAA/voting-advice-application/blob/a34418fb3df26741d0b35b83f0d4a12bcd34e07f/backend/vaa-strapi/docker-compose.dev.yml#L34 with similar behavior inside the frontend compose, so what happens is that we create an unnamed volume each time the environment gets setup (due to my previous changes of --force-recreate, which happens to increase the frequency of this becoming an issue).