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

Error in building docker image #2192

Closed
chuasonglin1995 opened this issue Jan 12, 2025 · 6 comments
Closed

Error in building docker image #2192

chuasonglin1995 opened this issue Jan 12, 2025 · 6 comments

Comments

@chuasonglin1995
Copy link
Contributor

Describe the bug

I cannot seem to build the docker image. This is the command that I run
docker buildx build --platform=linux/amd64 -t {username}/eliza-v0 .

This is the error logs that I get

... (rest)
#0 1840.2 @elizaos/client-lens:build: cache miss, executing 5aaead36e6f8db2b
#0 1840.2 @elizaos/plugin-twitter:build: cache miss, executing bdbd503cc3a94bc7
#0 1840.3 @elizaos/adapter-sqljs#build: command (/app/packages/adapter-sqljs) /app/node_modules/.bin/pnpm run build exited (137)
#0 1840.5 
#0 1840.5  Tasks:    2 successful, 48 total
#0 1840.5 Cached:    0 cached, 48 total
#0 1840.5   Time:    4m35.575s 
#0 1840.5 Failed:    @elizaos/adapter-sqljs#build
#0 1840.5 
#0 1841.3  ERROR  run failed: command  exited (137)
#0 1842.6  ELIFECYCLE  Command failed with exit code 137.
------
error: failed to solve: executor failed running [/bin/sh -c pnpm install     && pnpm build-docker     && pnpm prune --prod]: exit code: 137

To Reproduce

I am using M1 Macbook. I ran this command below
docker buildx build --platform=linux/amd64 -t {username}/eliza-v0 .

Expected behavior

Should be able to build my docker image

@chuasonglin1995 chuasonglin1995 added the bug Something isn't working label Jan 12, 2025
Copy link
Contributor

Hello @chuasonglin1995! Welcome to the ai16z community. Thank you for opening your first issue; we appreciate your contribution. You are now a ai16z contributor!

@chuasonglin1995
Copy link
Contributor Author

Seems like a memory issue that I have?

@AIFlowML
Copy link
Collaborator

Maybe because is the Docker engine on Apple silicon
Is not the Docker image is that arm create a problem and not run.

Try this
Discord message link: https://discord.com/channels/1051457140637827122/1323727516745334785/1325014844075937792

@AIFlowML AIFlowML added Need Feedback and removed bug Something isn't working labels Jan 12, 2025
@chuasonglin1995
Copy link
Contributor Author

hey @AIFlowML thanks for replying. Im not sure why I cannot see the message. Could you copy the relevant msg for me? 🙏
Screenshot 2025-01-12 at 10 43 35 PM

@tcm390
Copy link
Collaborator

tcm390 commented Jan 12, 2025

hey @AIFlowML thanks for replying. Im not sure why I cannot see the message. Could you copy the relevant msg for me? 🙏 Screenshot 2025-01-12 at 10 43 35 PM

Screenshot 2025-01-12 at 1 27 53 PM

@chuasonglin1995
Copy link
Contributor Author

Thanks @tcm390. Works now. I was missing that Virtual Machine - Docker VMM option.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants