-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Odoo: Build for arm64 too #15362
Odoo: Build for arm64 too #15362
Conversation
Diff for 65a00a6:diff --git a/_bashbrew-arches b/_bashbrew-arches
index 21d5bd8..e85a97f 100644
--- a/_bashbrew-arches
+++ b/_bashbrew-arches
@@ -1 +1,2 @@
amd64
+arm64v8
diff --git a/_bashbrew-cat b/_bashbrew-cat
index 3137fa7..08420bc 100644
--- a/_bashbrew-cat
+++ b/_bashbrew-cat
@@ -3,10 +3,13 @@ GitRepo: https://github.com/odoo/docker
GitCommit: 61148a86eed7fb5452dc7705b479988e1f49f9a6
Tags: 14.0, 14
+Architectures: amd64, arm64v8
Directory: 14.0
Tags: 15.0, 15
+Architectures: amd64, arm64v8
Directory: 15.0
Tags: 16.0, 16, latest
+Architectures: amd64, arm64v8
Directory: 16.0 Relevant Maintainers:
|
I don't want to break your enthusiasm @samip5 but running an amd64 packet on arm64 will not work: |
Yeah, just noticed that and I also noticed that odoo/docker#410 (comment) which means @d-fence might not want to use the version that's available for arm64 :( There's also an PR for fixing that at least for Odoo 16: |
Without the Odoo Dockerfiles being updated to support building on multiple architectures, this PR will not work. As for odoo/docker#464, that is only part of a fix since it would then fail to build on A simple way to test architectures that you do not have access to is to use Docker Desktop (and it sets up qemu): |
The support of ARM for Odoo is now available if you want to test: https://hub.docker.com/search?q=odoo&image_filter=official |
@ludovic-gasc Any idea how are the images built for arm64 ? I don't think the current Dockerfile is multiarch |
The current $ crane manifest odoo | jq '.manifests[].platform | select(.os != "unknown")'
{
"architecture": "amd64",
"os": "linux"
}
{
"architecture": "arm64",
"os": "linux",
"variant": "v8"
}
{
"architecture": "ppc64le",
"os": "linux"
} |
Yes, but I don't see how this line will fit for both |
It's the way the Docker's build system uses targetarch ARG, and builds it according to that, so you'll not see arch specific instructions in most cases. |
TIL. Interesting. |
I believe this should be just a matter of including them here.