Open rvalyi opened 4 years ago
I do not see any big issue to this huge fetch. The aim is to have a local mirror as fresh as possible to speed up build. What is your issue on your side?
Keep in mind that you have only one version of the image build on your CI, so the space it's not a big deal (3.8Go)
Here I have rather (and before this merge)
quay.io/akretion/odoo-builder latest 47eb0474ac26 3 months ago 4.94GB
Well this alone is not a very big deal. It's just that if you multiply the number of folks who may push this image somewhere by the amount of useless Go (probably only 50% could be used just by filtering recent serie branches), well we transfer some dozens of Go on the network and store them on disks with their own carbon footprint somewhere... Not a very big deal but not really green a model either... Side note: here during the pandemics our local Internet provider/gatonet closed, I'm on 4G for months, I cannot use it locally, but that's just a detail.
Now as I said I have more issues with the fact that odoo-builder is not serie specific as I explained here https://github.com/akretion/odoo-builder/issues/2 Because everytime you push/deploy, you should re-write all the files of all clones from the .git, this is quite a large number of disk operations. This is fast enough, specially on SSD disks, but not really a green model either. Think what happens on Gitlab when you are in a Sprint, mulltiply by the number of people doing it... Think there is no existing public better way to deploy Odoo on Docker so if people start adoopting this... Well let's say when we can do much better with just a few lines of code, I feel more confortable, that's it. Nothing urgent.
BTW, I think we may also shrink a few branches from our Odoo repo, I can trash a few heavy ones related to address shit counter-measures for instance.
Here are all the fetched branches:
This relates to https://github.com/akretion/odoo-builder/issues/2 I suggest to filter only series branches and only recent series, may be 8.0+ or even 10.0+ may be.