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

linux/arm64 version for docker #23

Closed
chrisism opened this issue Jul 26, 2024 · 10 comments
Closed

linux/arm64 version for docker #23

chrisism opened this issue Jul 26, 2024 · 10 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@chrisism
Copy link

Is it possible to also create a linux/arm64 version for docker?

@crocodilestick
Copy link
Owner

Hey, CWA should already be arm64 compatible, test it out and let us know!

@crocodilestick crocodilestick added the question Further information is requested label Jul 27, 2024
@chrisism
Copy link
Author

Perhaps it needs an arm64 tag for the CW container. I am getting these messages after starting the docker compose.

[+] Running 2/1 ✔ Container calibre-web-automated Created 1.0s ! calibre-web-automated The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested 0.0s Attaching to calibre-web-automated calibre-web-automated | exec /init: exec format error calibre-web-automated exited with code 0

@chrisism
Copy link
Author

Adding platform attribute to compose yml:

[+] Running 0/1 ⠇ calibre-web-automated Pulling 1.7s image with reference docker.io/crocodilestick/calibre-web-automated:latest was found but does not match the specified platform: wanted linux/arm64, actual: linux/amd64

@crocodilestick
Copy link
Owner

Ah shame, that should hopefully be fixed by an update coming soon that changes how we currently build the images. I'll add the the README when we can officially support arm64 👍

@jmarmstrong1207 jmarmstrong1207 added enhancement New feature or request and removed question Further information is requested labels Jul 27, 2024
@crocodilestick crocodilestick added the help wanted Extra attention is needed label Aug 7, 2024
@driftywinds
Copy link

Hi, is there any update for the arm64 docker image situation?

@driftywinds
Copy link

driftywinds commented Aug 30, 2024

For anyone who's interested - I built an arm64 image of CWA here - https://hub.docker.com/repository/docker/driftywinds/cwa/tags (also available on GitHub Docker Registry here)

Please try it out and let me know if it works. I just learnt how to build from a docker file though haha, but I'll try to keep the image updated with every new release

@crocodilestick
Copy link
Owner

For anyone who's interested - I built an arm64 image of CWA here - https://hub.docker.com/repository/docker/driftywinds/cwa/tags

Please try it out and let me know if it works. I just learnt how to build from a docker file though haha, but I'll try to keep the image updated with every new release

Hey @driftywinds that's amazing! So far the main barriers have been:

  • the Calibre binaries that CWA relies on are supposed to be only x86 compatible
  • I don't have any arm64 devices with which to build an arm based image

If you've managed to make a fully working arm image hats off to you and would you mind if I added links to the official repo?

@driftywinds
Copy link

driftywinds commented Aug 31, 2024

For anyone who's interested - I built an arm64 image of CWA here - https://hub.docker.com/repository/docker/driftywinds/cwa/tags
Please try it out and let me know if it works. I just learnt how to build from a docker file though haha, but I'll try to keep the image updated with every new release

Hey @driftywinds that's amazing! So far the main barriers have been:

  • the Calibre binaries that CWA relies on are supposed to be only x86 compatible
  • I don't have any arm64 devices with which to build an arm based image

If you've managed to make a fully working arm image hats off to you and would you mind if I added links to the official repo?

Yes go ahead for sure, you can add my links to the official repo!

Just keep in mind tho, I'm a total amateur at this and if something goes wrong I wouldn't know how to fix it. From what I understand every new update I gotta clone the git and build the image from the Dockerfile, but I wouldn't be able to fix anything if something doesn't work.

I'm pretty sure you can somehow use GitHub Actions to build the arm64 images for you. Here is something maybe helpful I found in that regard https://medium.com/swlh/using-github-actions-to-build-arm-based-docker-images-413a8d498ee

Hope it helps!

@carlossgv
Copy link

carlossgv commented Aug 31, 2024

To add to the conversation, I managed to get the server running in my arm Oracle server using @driftywinds image.

image image

However, if you think that solution is not the proper one. There is this project HortusFox and they made it working properly. Here is the link on that issue and in there there's the link the owner used to implement it.

danielbrendel/hortusfox-web#141

@crocodilestick
Copy link
Owner

To add to the conversation, I managed to get the server running in my arm Oracle server using @driftywinds image.

image image
However, if you think that solution is not the proper one. There is this project HortusFox and they made it working properly. Here is the link on that issue and in there there's the link the owner used to implement it.

danielbrendel/hortusfox-web#141

Using docker buildx seems like a perfect solution! I'll try it out for the next version!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

5 participants