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

Feature request: Support for linux/arm64 #18

Open
kitsuyui opened this issue Sep 14, 2024 · 2 comments
Open

Feature request: Support for linux/arm64 #18

kitsuyui opened this issue Sep 14, 2024 · 2 comments

Comments

@kitsuyui
Copy link

I have been using your bot for a long time and have been running it on Docker. It's always helpful. Thank you.
The environment I'm running is Docker on an M1 Mac. However, I encountered an error when I tried to migrate to another platform.

Environment Information

uname  # => Linux
uname -m  # => aarch64
uname -v  # => #8-Ubuntu SMP Sat Apr 20 02:43:14 UTC 2024
docker run DISCORD_BOT_TOKEN=<your bot token> docker.io/fumieval/discord-vc-notification:0.4.2
docker logs -f (target container id)

Error content

exec /app/discord-vc-notification: exec format error

This seems to be because the Docker image is built for x86_64 and does not work on aarch64.

It would be helpful if you could support linux/arm64 as well as linux/amd64.

@kitsuyui
Copy link
Author

I have already forked to https://github.com/kitsuyui/discord-vc-notification and will try to create a Pull Request if I have the time.

@kitsuyui
Copy link
Author

Sorry, I didn't notice until I posted this Issue.
It was enough to have qemu-user-static installed.
If qemu-user-static is installed, Docker can run an image of linux/amd64 on a host of linux/aarm64.
In other words, the problem is simply that the image being executed is not optimized for the host.
It's not a big problem.

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

No branches or pull requests

1 participant