Closed loganmarchione closed 2 years ago
@loganmarchione I'd love to do this.
My previous attempt resulted in this comment: https://github.com/ryansch/docker-unifi-rpi/issues/54#issuecomment-658853558
I haven't had free time to devote to this yet.
I still need to come up with a consistent approach for mongo on arm.
Ah ya, I see that MongoDB offers AMD64 and ARM64 builds, but not 32-bit ARMv7. That might be an issue, especially considering this is targeted at mostly RPi users. You would need to change the MongoDB install for AMD64 and ARM64, but not ARMv7, which would not be ideal.
I've done some research on building some 3.x version of mongo for arm32v7 for use here. I need to finish that.
any updates here?
Nothing to report yet.
I have 3 pis here now configured as such:
I'm hoping to come up with a solution that works for all of them. I'm likely going to need to maintain an old version of mongodb just for this purpose.
With the release of 64 bit Raspbian out of beta (https://www.raspberrypi.com/news/raspberry-pi-os-64-bit/), does remove the need to have ubuntu server installed?
I'm assuming the arm64 container will also run on all pi's that run Raspbian 64bit?
@kfken Honestly it doesn't matter what linux distro you pick, as long as you can get docker up and running on it. I just prefer ubuntu server these days.
At long last, I'm pushing images now that are based on mongo 3.6!
Linking the new issue #95 here, just in case anyone still following this issue wants to see it.
Ubiquiti has supported MongoDB 3.6 since 5.13.10 (see any of their release posts for this).
I saw this post on r/Ubiquiti and noticed the Docker image is running MongoDB 3.2.11, which is EoL as-of September 2018. I don't see you explicitly installing MongoDB, so I'm assuming the
unifi_sysvinit_all.deb
package is calling mongodb-server as a dependency, which is currently 3.2.11 on Debian 9.I don't see MongoDB in Debian 10's repo (not sure why), so simply upgrading your base image to Debian 10 won't fix this.
According to this, you would probably need to add a few lines to the Dockerfile to add the MongoDB keys, add the repo, then install MongoDB 3.6, before installing the
unifi_sysvinit_all.deb
file. However, I haven't tested this. Also, I'm running on AMD64, so ARM32 and ARM64 would both need to be taken into consideration.Another option is to run Mongo in a separate container (as shown here), but that would require updated compose files, complicated mounting of directories to use the new container, and would probably break user configs.