These are a best-effort attempt to create binaries of the MongoDB Community Edition Server for the Raspberry Pi ecosystem. MongoDB Inc does not officially support these binaries.
Time-Series Collections are a relatively new MongoDB feature that provide a meaningful improvement for common embedded workloads, like sensor aggregation on a Raspberry Pi. Prior to this repo, users were required to build from source.
The binaries from this repo are packaged in a Docker container here.
- Raspberry Pi 5: New!! Smoke-tested on real hardware. Beginning with r7.0.3 and r6.0.12.
- Raspberry Pi 4: Tested. I have this running on real hardware with an uptime greater than one year.
- Raspberry Pi 3: Untested, unlikely to work. May release a build in the future for this platform.
MongoDB officially requires ARMv8.2-A+ microarchitecture support as of MongoDB 5.0+. The Raspberry Pi 4 runs on ARMv8.0-A. These binaries are a best-effort at preserving functionality below minimum hardware specs.
However, the Raspberry Pi 5 does meet the minimum hardware requirements with its newer CPU.
These binaries are subject to the MongoDB Server-Side Public License.
-
r7.0.14 [September 17, 2024]
-
r7.0.11 [June 03, 2024]
-
r7.0.9 [April 30, 2024]
-
r7.0.8 [April 22, 2024]
-
r7.0.8 [April 11, 2024]
-
r7.0.7 [April 03, 2024]
-
r7.0.7 [April 01, 2024]
-
r7.0.6 [March 21, 2024]
-
r6.0.13 [January 29, 2024]
-
r7.0.5 [January 06, 2024]
-
r6.0.12 [January 03, 2024]
-
r7.0.4 [December 10, 2023]
-
r7.0.3 [November 11, 2023]
-
r7.0.2 [October 27, 2023]
-
r6.0.11 [October 25, 2023]
-
r6.0.10 [September 21, 2023]
-
r7.0.1 [September 18, 2023]
-
r7.0.0 [September 18, 2023]
-
r6.0.8 [August 24, 2023]
-
r6.0.7 [July 10, 2023]
-
r6.0.5 [April 10, 2023]
-
r6.2.0 [January 12, 2023]
-
r6.1.0-rc4 [October 3, 2022]
-
Ensure Raspberry Pi meets minimum HW requirements. I have only installed on a 4GB/8GB Raspberry Pi 4 & 8GB Raspberry Pi 5. Unknown how Pi's with lower specs will fare.
-
Ensure a 64-bit Raspberry Pi OS has been installed on the Pi.
- Raspbian is 32-bit by default for maximum compatibility.
# Using wget assumes network connection. Can also copy with USB.
$ mkdir ~/mdb-binaries && cd ~/mdb-binaries
$ wget https://github.com/themattman/mongodb-raspberrypi-binaries/releases/download/r7.0.14-rpi-unofficial/mongodb.ce.pi4.r7.0.14.tar.gz
$ tar xzvf mongodb.ce.pi4.r7.0.14.tar.gz # Decompress tarball
# Prepare MongoDB data & log directories
$ mkdir -p /data/db/test_db
$ touch /data/db/test_db/mongod.log
$ sudo chown -R ${USER}:${USER} /data
# Run & Configure MongoDB Standalone Local Server
$ ./mongod --dbpath /data/db/test_db --fork --logpath /data/db/test_db/mongod.log --port 28080
$ ./mongo --port 28080 # run queries!
File an issue on Github. Please include:
-
hardware details
-
steps you've tried
-
error output
-
general feedback