GithubHelp home page GithubHelp logo

Comments (10)

jacobalberty avatar jacobalberty commented on June 19, 2024

The image is built on amd64, at this time docker hub does not support arm so it would be unable to run on raspberry pi.

You might be able to build it on raspberry by changing the FROM line to match an arm image pi but I don't have a working raspberry pi to test building on at the moment.

from unifi-docker.

sergeifilippov avatar sergeifilippov commented on June 19, 2024

Makes sense. But is there anything recommend I can look into to see if I can fix it up and get running on arm?

I'm more than happy to build the image myself on arm, just need to get past this error. 😄

from unifi-docker.

jcberthon avatar jcberthon commented on June 19, 2024

Hi @jacobalberty

Docker hub supports ARM images (see for instance this group: https://hub.docker.com/u/armhf/) and recently Docker got better support for multi-arch images (see https://developer.ibm.com/linuxonpower/2017/07/27/create-multi-architecture-docker-image/). It is still some extra effort in building such an image, but then the same image can be used for different architecture (AFAIU there is one image for amd64, one for arm and another one with just the manifest and the pointers to the other images.).

from unifi-docker.

jacobalberty avatar jacobalberty commented on June 19, 2024

@jcberthon docker hub only supports pre built arm images, I lack an arm system to build them on. At the very least i'd have to get docker running under an arm emulator to build those images.

from unifi-docker.

jacobalberty avatar jacobalberty commented on June 19, 2024

alternatively https://resin.io/blog/building-arm-containers-on-any-x86-machine-even-dockerhub/ something like that might work to build on the hub...

from unifi-docker.

jacobalberty avatar jacobalberty commented on June 19, 2024

@sergeifilippov try the beta branch and change FROM debian:jessie-slim to FROM arm32v7/debian:jessie-slim then use docker build
the beta branch currently builds to 5.5.20 but you can specify a different version by adding --build-arg PKGURL=https://dl.ubnt.com/unifi/5.4.19/unifi_sysvinit_all.deb to your build command for example to get version 5.4.19

from unifi-docker.

jacobalberty avatar jacobalberty commented on June 19, 2024

@sergeifilippov oh you would also need to comment out the ENTRYPOINT ["/usr/bin/dumb-init", "--"] line as that is not going to be a compatible binary

from unifi-docker.

jacobalberty avatar jacobalberty commented on June 19, 2024

Alternatively try building the new arm32v7-beta branch it might work

from unifi-docker.

jacobalberty avatar jacobalberty commented on June 19, 2024

@sergeifilippov and just to overload you with options you could try jacobalberty/unifi:arm32v7-beta on the docker hub, its running unifi 5.5.20, if I can get a decent build going with the cross compile I may start tagging out regular releases from it. I have no way to test it at the moment though, I'll see if I can get qemu going to test it in in a few hours.

from unifi-docker.

sergeifilippov avatar sergeifilippov commented on June 19, 2024

Thanks everyone! I was able to run it on my RPI3 using ryansch/unifi-rpi:5.4.1.9

from unifi-docker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.