docker icon indicating copy to clipboard operation
docker copied to clipboard

[ADD] arm64v8 images

Open derfl0 opened this issue 2 years ago • 3 comments

Add specific arm64v8 images to allow native Odoo execution on arm architecture (e.g. M1)

derfl0 avatar Apr 10 '22 08:04 derfl0

Hi, any updates about merging PR and providing official arm64 docker images?

semihalf-mazur-hubert avatar Jun 03 '22 08:06 semihalf-mazur-hubert

Go ahead please and merge

FaisalJulaidan avatar Jul 30 '22 13:07 FaisalJulaidan

RUN WKH_VERSION=$([ "$(uname -m)" = 'aarch64' ] && echo "arm64" || echo "amd64") \
    && curl -o wkhtmltox.deb -sSL https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6-1/wkhtmltox_0.12.6-1.buster_${WKH_VERSION}.deb \
    && apt-get install -y --no-install-recommends ./wkhtmltox.deb \
    && rm -rf /var/lib/apt/lists/* wkhtmltox.deb

leimantas avatar Aug 11 '22 06:08 leimantas

This is increasingly a very important addition for Odoo developers on macOS.

I'm currently having to write my own scripts to modify the official Dockerfile so that I can build my images natively.

AaronBeaudoin avatar Nov 01 '22 19:11 AaronBeaudoin

I already made the same problems , Please merge it

jeffryjdelarosa avatar Dec 04 '22 04:12 jeffryjdelarosa

For anyone stumbling across this issue. I am now using GitHub actions (branch: build_action) to build the images automatically: https://hub.docker.com/r/fbieringer/odoo

Feel free to use. I try to keep everything up to date.

derfl0 avatar Dec 04 '22 11:12 derfl0

@derfl0 Thanks so much 😍, do you have the Debbug settings with VScode, please I cloud pay it for it.

jeffryjdelarosa avatar Dec 04 '22 14:12 jeffryjdelarosa

@derfl0 Thanks so much 😍, do you have the Debbug settings with VScode, please I cloud pay it for it.

https://github.com/derfl0/odoo_vscode_template

If you need more help with Odoo development, feel free to contact me via [email protected]

derfl0 avatar Dec 06 '22 18:12 derfl0

I'm sorry to say that it will not work. The only supported wkhtmltopdf version is 0.12.5-1.

d-fence avatar Feb 16 '23 12:02 d-fence

We use 0.12.6 for 2 years now. Everything works. No problems. Odoo 13,14,16. Arm based debian.

leimantas avatar Feb 16 '23 12:02 leimantas

@d-fence @leimantas i can also confirm that I never had problems developing on my M1 using 12.6. Lately I was working on a lot of reports and never had any trouble. Of course this does not mean that it is perfectly fine but I would also argue that as long as there is no known issue one could assume that 12.6 in fact works as intended.

I am also pretty fine, if the arm images I compile ( https://hub.docker.com/r/fbieringer/odoo ) are defined as "unofficial" but maybe you could reference them somewhere on the official page so one could stumble across them.

It would also be really great, if you could externalise ODOO_RELEASE and ODOO_SHA from the Dockerimage so that it can be used for both images without requiring changes in the actual Dockerfile every time the source code is updated.

derfl0 avatar Feb 16 '23 12:02 derfl0

@derfl0 you can build multiarch odoo images https://hub.docker.com/r/wbms/odoo-16.0/tags

leimantas avatar Feb 16 '23 13:02 leimantas

@derfl0 you can build multiarch odoo images https://hub.docker.com/r/wbms/odoo-16.0/tags

That is true but I see no need to compile for amd64 since there is an official image for that and I would not try to mislead anyone into using an unofficial image just because they are lazy ;)

derfl0 avatar Feb 16 '23 13:02 derfl0

Hi,

I made an attempt to support ARM for Odoo with another approach with this pull request: #466

I'm interested in your feedback.

ludovic-gasc avatar Sep 22 '23 17:09 ludovic-gasc

Hi all,

You can now test the ARM support of Odoo with the official container image: https://hub.docker.com/search?q=odoo&image_filter=official

Kind regards

ludovic-gasc avatar Nov 08 '23 17:11 ludovic-gasc