docker-alpine-mongo
docker-alpine-mongo copied to clipboard
Add mongodb-tools
It would be nice to have mongodump and mongorestore.
I don't think this is possible, there is no mongodb-tools package in alpine (AFAK)
in my case, my api image was based of golang,
git clone https://github.com/mongodb/mongo-tools
and ran go install
was easy for me since i was gona use it from the api side
Inside this image, you could just add mongo tools:
docker exec -ti mongo sh
then in the shell:
apk add --no-cache mongodb-tools
please add these https://docs.mongodb.com/manual/reference/program/ as mentioned by others.