A collection of MongoDB scripts for automating common tasks in a Docker-centric way.
Important
Maintained by Panubo — Cloud Native & SRE Consultants in Sydney. Work with us →
Documentation for each subcommand:
Using Docker links to mongodb container:
docker run --rm -i -t --link myserver:mongodb docker.io/panubo/mongodb-toolbox:0.0.7-1This will display the usage information.
docker run --rm -i -t --link myserver:mongodb docker.io/panubo/mongodb-toolbox:0.0.7-1 <subcommand>To run the subcommand.
Use --link <mongodb container name>:mongodb to automatically specify the required variables.
Or alternatively specify the variables:
| Name | Description |
|---|---|
DATABASE_HOST |
IP / hostname of MongoDB server. |
DATABASE_PORT |
TCP Port of MongoDB service. |
DATABASE_USER |
Administrative user |
DATABASE_PASS |
Password of administrative user. |
Some subcommands require additional environment parameters or positional arguments. See the documentation for the subcommand for more information.
The Makefile initiates a test designed to be run in a CI/CD. It starts up a Docker-in-Docker container and runs the tests within a temporary container which is set up and torn down upon every invocation to ensure a clean environment.
make testIf you are developing locally and wish to run the tests outside the Docker-in-Docker container in order to gain a better visibility into the process, you can run the following command from the repository root:
./test/runner.shWorks, however some features are incomplete.
Important
This project is maintained by Panubo, a technology consultancy based in Sydney, Australia. We build reliable, scalable systems and help teams master the cloud-native ecosystem.
We are available for hire to help with:
- SRE & Operations: Improving system reliability and incident response.
- Platform Engineering: Building internal developer platforms that scale.
- Kubernetes: Cluster design, security auditing, and migrations.
- DevOps: Streamlining CI/CD pipelines and developer experience.
- See our other services
Need a hand with your infrastructure? Let’s have a chat or email us at team@panubo.com.