幫助

0

Odoo docker apple M1

I was thinking in a future to update my mac or not. Now they're using ARM architecture and I was worried about working with docker containers to run and code odoo.

Anyone with mac M1 can say if it's possible or there's any inconvenience?

Thanks a lot

1 評論
頭像
取消
Avatar
Omydoo
-

Hello, why have Odoo locally? Maybe it's better to put it on a server, right? And you would no longer have a Mac version problem

3 答案
1
Best Answer

Tanks Omydoo. But its clear that its runing on a server. But when i have to change something I dont develop on server instance. I download locally and change it here to later upload to server. Now i can do that and test after using docker on my mac if all was correct I upload to customer server. Now i dont know if its possible on M1

頭像
取消
0
Avatar
daffodilistic
Best Answer

You would likely need to build a custom Docker image. In my case, I had to build a custom Docker image for Odoo v10 CE.

You can use a sample Dockerfile I've created here:

https://github.com/daffodilistic/docker-odoo/blob/10.0/10.0/Dockerfile
頭像
取消
0
Avatar
leofisher
Best Answer

Hi,

You can run try to run the command below, seems to work correctly when using the --platform argument as well as download the m1 preview image. 

Source: https://github.com/odoo/docker/issues/349#issuecomment-757472030

docker pull odoo:14 --platform linux/amd64

Same thing for postgress DB image

docker pull postgres:12 --platform linux/amd64
1 評論
頭像
取消
Avatar
leofisher
-

same thing as well for the postgress DB:

`docker pull postgres:12 --platform linux/amd64`