0
2024-04-26 18:52:28 +03:00
2024-04-26 18:52:28 +03:00
2024-02-21 15:27:21 +03:00
2023-11-08 11:23:46 +03:00
2024-04-26 18:52:28 +03:00
2023-11-08 11:01:00 +03:00
2024-04-26 18:52:28 +03:00

mongodb-docker

MongoDB Docker images for generic Linux AMD64 architecture

Goal

Since version 5 MongoDB supports only processors with AVX instructions extensions.
If you try to run on old processor, then you'll get error like below:

/opt/bitnami/scripts/libos.sh: line 346:    58 Illegal instruction     (core dumped) "$@" > /dev/null 2>&1

So, the goal of the project is to provide the ability to run an application on generic amd64 architecture.

Image

You can use it in Docker as:

docker pull harbor.flakybit.net/mongodb/server:latest

Building binaries

Binaries are available here and were built against Debian 12:

apt update
apt install -y build-essential
apt install -y libcurl4-openssl-dev libssl-dev liblzma-dev

apt install -y python3 python3-venv python-dev-is-python3

mkdir src
cd src
apt install -y git
git clone --depth 1 --branch <version> https://github.com/mongodb/mongo.git
cd  mongo

apt install -y wget
wget https://gitea.flakybit.net/fb/mongodb-docker/raw/branch/main/0001-Compile-without-debug-symbols.patch
patch < 0001-Compile-without-debug-symbols.patch

python3 -m venv .venv --prompt mongo
source .venv/bin/activate
python3 -m pip install -r etc/pip/compile-requirements.txt

python3 buildscripts/scons.py install-servers --config=force \
    -j12 \
    --opt=on \
    --release \
    --dbg=off \
    --linker=gold \
    --disable-warnings-as-errors \
    --variables-files=etc/scons/developer_versions.vars \
    --experimental-optimization=-sandybridge

apt install -y tar
cd build/install/bin/
tar -cvzf mongo.tar.gz mongod mongos
  1. MongoDB Platform Support
  2. Mongo 5.0.0 crashes but 4.4.6 works
  3. MongoDB v5.0 requires CPU AVX instructions
  4. libos.sh: line 344 error when installing ReplicaSet
  5. mongodb can't be installed by helm install
  6. Building Mongodb without avx
  7. Building MongoDB
  8. Bitnami MongoDB
Description
MongoDB Docker images for generic Linux AMD64 architecture
Readme 202 KiB
Languages
Shell 97.7%
Dockerfile 1.4%
Smarty 0.9%