paperless icon indicating copy to clipboard operation
paperless copied to clipboard

Does the Docker image support Raspberry Pi (ARM)?

Open crouthamela opened this issue 7 years ago • 10 comments

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

crouthamela avatar Apr 08 '18 05:04 crouthamela

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)

addadi avatar Apr 09 '18 08:04 addadi

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...?

danielquinn avatar Apr 12 '18 19:04 danielquinn

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.

crouthamela avatar Apr 12 '18 19:04 crouthamela

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.

danielquinn avatar Apr 12 '18 20:04 danielquinn

@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.

stgarf avatar Mar 03 '19 21:03 stgarf

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

crouthamela avatar Mar 06 '19 00:03 crouthamela

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

fipstree avatar Jun 28 '19 06:06 fipstree

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.

diveflo avatar Sep 09 '19 23:09 diveflo

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+.

maroessler avatar May 30 '20 12:05 maroessler

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.

diveflo avatar Jun 05 '20 11:06 diveflo