Tecnativa / doodba

Base image for making the creation of customized Odoo environments a piece of cake
Apache License 2.0
423 stars 302 forks source link

Publish docker images for arm64 #567

Closed xavivars closed 11 months ago

xavivars commented 11 months ago

Is your feature request related to a problem?

I'm trying to build doodba (after having used doodba-copier-tempalte), and I can't make it work on my server due to lack of doodba-onbuild support for arm64 architecture.

Describe the solution you'd like Either via buildx or natively, also build docker image using arm64

Describe alternatives you've considered Building the base image myself, every time there's an update. But it would be great to have this automated

pedrobaeza commented 11 months ago

Sorry, that is not on our plans. Even I have doubts that can be done due to the availability of all the needed components, but if you want to contribute with such improvement, it's always welcome.

ap-wtioit commented 11 months ago

For additional info why arm support is currently not planned, see #342

xavivars commented 11 months ago

I understand how that is not a priority, and appreciate the prompt answer!

I actually managed to do that, and it wasn't that hard.

I basically changed python3.8 with python3.9 (there is an issue between gevent and Cython's version on arm), replaced the URLs for wkhtmltopdf and geoipupdate to pull the arm64 version instead of the amd64, and that's it, working like a charm :)

So maybe, heading to Odoo 17.0, when python version gets updated, I can give it a try to create a multi-arch image (for 16, it was just easier to do the changes manually and keep it as a "pseudo-fork"). But if anyone is interested on the diff, I'm happy to share it.

bosd commented 8 months ago

@xavivars I'm very interested in your work on ARM support. Recently I've seens some performance comparison on postgresql amd vs arm. ARM had around 15% better performance. While more cloud providers are making an arm offering, it has become quite interesting option.