Skip to Content
Menu
This question has been flagged
1 Reply
4310 Views

Hi all. 


I'm having a heck of a time trying to build a local docker image for Odoo 16 on an Oracle Ampere server, which is an ARM64 architecture and was wondering if anyone has had luck doing something similar. I'm using the Dockerfile at the end of this post from the Odoo repo but hitting some snags. 


The first one is the npm command on line 56 is throwing a memory error below. I tried increasing the memory with "RUN node --max-old-space-size=4096 index.js", but received the same error.


STEP 7/23: RUN npm install -g rtlcss
+ npm install -g rtlcss
#
# Fatal process OOM in insufficient memory to create an Isolate


So, I commented that line out and I can create the image. However, when I start it I get the following error because it can't run entrypoint.sh. After changing permissions to allow execution on the file on the server and in the Dockerfile (RUN chmod +x /entrypoint.sh) I'm getting the same error.


runc: runc create failed: unable to start container process: exec: "/entrypoint.sh": permission denied: OCI permission denied


If anyone could lend me a hand either by sharing their Dockerfile or steering me the right way I'd really appreciate it.


Liu


Dockerfile: https://github.com/odoo/docker/blob/36d6e05b76d56ce637c2f39fd4745c6d2fa3809f/16.0/Dockerfile

Avatar
Discard
Author Best Answer

I was able to build the image by breaking it up into smaller images then joining them.  If anyone needs help or would find it useful to see what I did, let me know and I'll expand on it.


Avatar
Discard
Author

Odoo now has arm64 docker containers available, so this is no longer necessary. Thanks to the odoo team for doing this!

Related Posts Replies Views Activity
0
Oct 21
3299
2
Sep 23
7059
1
Sep 22
2608
0
Feb 22
3209
1
Jun 25
10667