Skip to content
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

docker build fails on apple m1 pro #5780

Open
1 of 5 tasks
givetimetolife opened this issue Oct 31, 2022 · 2 comments
Open
1 of 5 tasks

docker build fails on apple m1 pro #5780

givetimetolife opened this issue Oct 31, 2022 · 2 comments
Assignees
Labels
self-hosted Issues about self-hosted Chatwoot installations

Comments

@givetimetolife
Copy link
Contributor

givetimetolife commented Oct 31, 2022

Describe the bug

docker buildx build --platform=linux/amd64 -f docker/Dockerfile . fails on apple silicon m1 pro (darwin arm64)

To Reproduce

Steps to reproduce the behavior:

  1. git clone https://github.com/chatwoot/chatwoot.git
  2. docker buildx build --platform=linux/amd64 -f docker/Dockerfile . -t xxx

Expected behavior

build FINISHED

Screenshots

n/a

Browser logs

n/a

Server logs

log.txt

Environment
Development environment/ Apple Silicon M1 Pro

Describe whether you are using Chatwoot Cloud (app.chatwoot.com) or a self-hosted installation of Chatwoot. If you are using a self-hosted installation of Chatwoot, describe the type of deployment (Docker/Linux VM installation/Heroku/Kubernetes/Other).

Docker

Desktop (please complete the following information) (If applicable)

  • OS: MacOS
  • Browser: n/a
  • Version: macOS Monterey 12.2.1

Smartphone (please complete the following information) (If applicable)

Docker (If applicable)

Please share the output of the following.

WeChatda0a17d4d13ebbbdd9c6544da6789168

WeChat7e99dc5a97fef3210d25e64f9d8c7f42

Cloud Provider (If applicable)

  • AWS
  • GCP
  • Azure
  • DigitalOcean
  • Others

Additional context

I want to build chatwoot image, push to my docker repository, and deploy to k8s via helm.

Using this command docker build -f docker/Dockerfile . -t xxx builds successfully, but when deploying to k8s I get an error: standard_init_linux.go:178: exec user process caused "exec format error".

Referring to this link https://stackoverflow.com/questions/42494853/standard-init-linux-go178-exec-user-process-caused-exec-format-error I got the solution: --platform=linux /amd64 . But I'm having current issues building the image

@vishnu-narayanan vishnu-narayanan self-assigned this Nov 1, 2022
@vishnu-narayanan vishnu-narayanan added the self-hosted Issues about self-hosted Chatwoot installations label Nov 1, 2022
@vishnu-narayanan
Copy link
Member

Are you deploying on a k8s cluster having arm64 nodes?

@givetimetolife
Copy link
Contributor Author

givetimetolife commented Nov 2, 2022

Are you deploying on a k8s cluster having arm64 nodes?
No. k8s supports linux/amd64

To fix this, I successfully built and deployed to k8s using a mac with an Intel chip,

To summarize the problem: Unable to build an image of chatwood platform=linux/amd64 on mac m1 pro machine,
If you think it's okay, we can close this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
self-hosted Issues about self-hosted Chatwoot installations
Projects
Status: In Progress
Development

No branches or pull requests

2 participants