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

Raspberry Pi/ARM Docker image #141

Closed
theh0ff opened this issue Mar 10, 2024 · 11 comments
Closed

Raspberry Pi/ARM Docker image #141

theh0ff opened this issue Mar 10, 2024 · 11 comments
Assignees
Labels
documentation Improvements or additions to documentation enhancement New feature or request
Milestone

Comments

@theh0ff
Copy link

theh0ff commented Mar 10, 2024

Feature Request

Hi, would it be possible to build an ARM docker image for hortusfox-web so that it can run on a Raspberry Pi device?

@theh0ff theh0ff changed the title RaspberryPi/ARM s RaspberryPi/ARM Docker image Mar 10, 2024
@theh0ff theh0ff changed the title RaspberryPi/ARM Docker image Raspberry Pi/ARM Docker image Mar 10, 2024
@danielbrendel danielbrendel self-assigned this Mar 10, 2024
@danielbrendel danielbrendel added documentation Improvements or additions to documentation enhancement New feature or request labels Mar 10, 2024
@carlossgv
Copy link

+1 here, would love to have HortusFox it in my arm64 server.

@danielbrendel
Copy link
Owner

I agree, this is very useful. I did a quick search and it should be easy
with buildx:

https://www.docker.com/blog/multi-arch-build-and-images-the-simple-way/

I think this will be added to the v2.5 milestone.

@theh0ff
Copy link
Author

theh0ff commented Mar 26, 2024

Excellent, many thanks and look forward to the release.

@danielbrendel danielbrendel added this to the v2.5 milestone Mar 26, 2024
@danielbrendel
Copy link
Owner

Buildx command:

docker buildx build . --platform linux/arm/v7,linux/arm64/v8,linux/amd64 --tag ghcr.io/danielbrendel/hortusfox-web:latest --push

More infos: https://docs.docker.com/build/drivers/docker-container/

Todo: Create workflow to build and push multi-platform image.
Hint: Local tests use this command:

docker buildx build . --platform linux/arm/v7,linux/arm64/v8,linux/amd64 --tag ghcr.io/danielbrendel/hortusfox-web:latest --load

However for local testing only one platform can be specified due to current limitations to docker exporter (see docker/buildx#59 (comment))

danielbrendel added a commit that referenced this issue Mar 30, 2024
danielbrendel added a commit that referenced this issue Mar 30, 2024
danielbrendel added a commit that referenced this issue Mar 30, 2024
danielbrendel added a commit that referenced this issue Mar 30, 2024
@danielbrendel
Copy link
Owner

@theh0ff @carlossgv I just published a build tagged as "beta" that also supports ARM64 images. Would be nice if you could test this and post here whether this works for you or not.

@theh0ff
Copy link
Author

theh0ff commented Mar 30, 2024

Will do @danielbrendel - will post the results later today.

@theh0ff
Copy link
Author

theh0ff commented Mar 30, 2024

Screenshot 2024-03-30 104458

@danielbrendel , good news , it works - no issues with the docker pull:
[+] Pulling 33/10
✔ db 8 layers [⣿⣿⣿⣿⣿⣿⣿⣿] 0B/0B Pulled 51.6s
✔ app 23 layers [⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿] 0B/0B Pulled 88.0s

and the docker compose up -d

[+] Running 2/2
✔ Container hortusfox-web-beta-db-1 Running 0.0s
✔ Container hortusfox-web-beta-app-1 Started 0.9s

I was able to log in and it runs - see attached screenshot.

My system info:
uname -a
Linux 6.1.0-rpi8-rpi-v8 #1 SMP PREEMPT Debian 1:6.1.73-1+rpt1 (2024-01-25) aarch64 GNU/Linux

@danielbrendel
Copy link
Owner

That's great! I let this issue open for a while, but if nothing errorneous occurs until the milestone due date, I'll close that issue then.

@carlossgv
Copy link

Working here too!

image

Running on ARM Oracle server:
uname -a
Linux ubuntu-server 6.5.0-1019-oracle #19~22.04.1-Ubuntu SMP Tue Mar 12 23:02:13 UTC 2024 aarch64 aarch64 aarch64 GNU/Linux

@danielbrendel
Copy link
Owner

danielbrendel commented Mar 30, 2024 via email

@danielbrendel
Copy link
Owner

Resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants