Skip to content
This repository has been archived by the owner on Feb 19, 2021. It is now read-only.

Does the Docker image support Raspberry Pi (ARM)? #337

Open
crouthamela opened this issue Apr 8, 2018 · 10 comments
Open

Does the Docker image support Raspberry Pi (ARM)? #337

crouthamela opened this issue Apr 8, 2018 · 10 comments

Comments

@crouthamela
Copy link

I'm looking to add this to my RPi server. Will the Docker image work on this? Are there any processes that may fail?

@addadi
Copy link
Contributor

addadi commented Apr 9, 2018

The docker image is based on alpine 3.7 which is x86_64. I guess that if you want to support RPi you would need to use arm image (first line in the dockerfile)

@danielquinn
Copy link
Collaborator

Hmm. That's a good point. It'd be nice to be able to have different images for different architectures. @addadi, is that easy to do in Dockerland? Would you normally do it as a separate repo, or different directory, or...?

@crouthamela
Copy link
Author

It shouldn't be too hard to add an official dockerfile. For example netdata does this. You just pull the respective tag and it uses the appropriate dockerfile.

@danielquinn
Copy link
Collaborator

Ah, interesting. They just suffix the file with the architecture: Dockerfile.armv7hf for example. @crouthamela if you wanna send me a pull request with this sort of thing working for your Pi, I'll merge it and add it to the official Hub page.

@stgarf
Copy link
Contributor

stgarf commented Mar 3, 2019

@crouthamela Did you ever ending up building an image for your RPi? If you built a working container, submit a PR with your Dockerfile here and it can probably be wired up with Travis-CI and DockerHub.

@crouthamela
Copy link
Author

No, sorry. I ended up upgrading to a NUC.

@fipstree
Copy link

Are there any news on this topic? Does a docker file exist for raspberry pi?

@diveflo
Copy link
Contributor

diveflo commented Sep 9, 2019

Have you tried it?
I have it running on my raspberrypi 4 and a RockPi4 - for the latter, my only issue was getting docker and docker-compose compiled for arm64v8. On the raspberrypi 4 running raspian buster it just worked out of the box.

@maroessler
Copy link

Are there any plans to add an official paperless docker image for arm32v7? I have made my own Dockerfile which basically just changes the first line to use the arm32v7 version of alpine (see my fork). I used this image successfully on my Pi 3B+.

@diveflo
Copy link
Contributor

diveflo commented Jun 5, 2020

We could use buildx to create multi-platform images. The build seems to work fine locally via
docker buildx build -t xyz/paperless:latest --platform linux/amd64,linux/arm64,linux/arm/v7 .
Unfortunately this doesn't yet work with automated docker hub builds, but I wanted to play around with GitHub actions anyhow. I'll give it a try and post an update here.

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

No branches or pull requests

7 participants