themattman / mongodb-raspberrypi-binaries

Unofficial MongoDB Community Edition Binaries for Raspberry Pi
Other
108 stars 10 forks source link

Unofficial MongoDB Community Edition Binaries for Raspberry Pi

Overview

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.

Motivation

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.

Docker Support?

The binaries from this repo are packaged in a Docker container here.

Pi Support

Notes

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.

Releases

Installing on Raspberry Pi

# 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.11-rpi-unofficial/mongodb.ce.pi4.r7.0.11.tar.gz
$ tar xzvf mongodb.ce.pi4.r7.0.11.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!

Bugs / Requests

File an issue on Github. Please include: