Amazed by the fact that official bitnami/mongodb
images are not available for arm64, this repository was created and
provides build files for custom bitnami/mongodb
compatible images. These can be used for example with the official
bitnami mongodb helm charts. While the build process is
based on the official bitnami/mongodb and
mongo Dockerfiles and binaries, it is a private project and not supported
neither by bitnami nor by mongodb. The resulting images are meant to be only used for local development on arm64-based
hardware and should not be used on production.
This repository contains build files for following mongodb versions:
The images built from this repository are published to Docker Hub.
dlavrenuek/bitnami-mongodb-arm:8.0.4
dlavrenuek/bitnami-mongodb-arm:7.0.15
dlavrenuek/bitnami-mongodb-arm:6.0.13
To build a docker image, first go to the image directory you want to use in the terminal, f.e:
cd 6.0/debian-12
Then run following docker build command to build and tag an image. The following example will produce an image with the
bitnami-mongodb:6.0.13-local
tag:
docker build -t bitnami-mongodb:6.0.13-local .
You can now use the image bitnami-mongodb:6.0.13-local
locally.
Example usage with mongodb 6.0 docker-compose.yaml. The dockerfile is configured to build the image from source locally.
cd 6.0/debian-12
docker compose up
The provided image can be used with the official bitnami helm charts. You can use the example values.yaml as following:
cd 6.0/debian-12
helm install mongo -f values.yaml oci://registry-1.docker.io/bitnamicharts/mongodb
If you want to use the image build from source you will need to upload the image to your registry first. For minikube you can use:
minikube image load bitnami-mongodb:6.0.13-local
This will make the image available as docker.io/library/bitnami-mongodb:6.0.13-local
.