mongosh — The Mongo Command-Line Client
https://github.com/alpine-docker/multi-arch-docker-images/blob/master/mongosh/Dockerfile
Docker images are built together:
https://app.circleci.com/pipelines/github/alpine-docker/multi-arch-docker-images
Image list:
https://github.com/alpine-docker/multi-arch-docker-images/tree/master#image-details
https://hub.docker.com/repository/docker/alpine/mongosh/tags
alias mongosh="docker run -ti --rm alpine/mongosh mongosh"
mongosh mongodb://192.168.0.5:9999/ships
-
MongoDB Shell ** mongosh - New mongo shell tool
-
Binary Import / Export ** mongodump - Creates a binary export of the contents of a mongod database. ** mongorestore - Restores data from a mongodump database dump into a mongod or mongos ** bsondump - Converts BSON dump files into JSON.
-
Data Import / Export ** mongoimport - Imports content from an Extended JSON, CSV, or TSV export file. ** mongoexport - Produces a JSON or CSV export of data stored in a mongod instance.
-
Diagnostic Tools ** mongostat - Provides a quick overview of the status of a currently running mongod or mongos instance. ** mongotop - Provides an overview of the time a mongod instance spends reading and writing data. GridFS Tools ** mongofiles - Supports manipulating files stored in your MongoDB instance in GridFS objects.
Mostly it is used during CI/CD (continuous integration and continuous delivery) or as part of an automated build/deployment
- Enable CI cronjob on this repo to run build regularly on master branch (Weekly)
- Build and push the images with latest version
- Run the latest image locally and get the application version
- Tag the image with the version, from previous step
- push the image with version via tool called crane