mozilla-services / syncserver

Run-Your-Own Firefox Sync Server
Mozilla Public License 2.0
1.87k stars 145 forks source link

arm / arm64 platform support docker raspberry pi #276

Open vlad34 opened 3 years ago

vlad34 commented 3 years ago

Hi,

It is currently not possible to install the docker image on the Raspberry Pi ...

Will it be possible to have an image for the ARM / ARM64 platforms of the raspberry pi please?

Thanks for the project.

guptayash commented 3 years ago

You can build your own image using Dockerfile on raspberry pi.

  1. Delete the existing image which you downloaded from dockerhub using docker rmi $image_name
  2. Clone the repo (https://github.com/mozilla-services/syncserver)
  3. Run docker build . -t syncserver to build your own image.
  4. Run docker images to check if the image is built successfully.
  5. Now use the docker-compose to run the image, you can reference this

That's it.

Note: You might face issue such as Unable to read db file, to resolve you can just create the volume mount folder you had in your docker-compose and inside that create an empty db file. If you are facing error like Unable to write to read-only db, then you might have to give permissions to the user - 1001 (which is used to run the image) to access the folder in which your db exists.

Robin-Sch commented 3 years ago

I do not have enough RAM for this (it crashes). Is there a way someone else can do this for me?