Last Updated: January 20, 2020
·
620
· bripkens

Start databases, CI systems and more in seconds

Did you ever needed to just start MongoDB for local development purposes? Or how about running Jenkins locally to test a new configuration option? If you are like me then you probably don't want to spin up expensive virtual machines and neither do you want to install all this stuff natively. Let me show you how to start MongoDB in seconds:

Install Docker and dock.

To install Docker on OS X simply use the boot2docker installer. Installating dock is super easy with Homebrew.

brew tap bripkens/dock
brew install dock

Run dock mongodb

$ dock mongodb
Starting mongodb (using /Users/ben/.dock-formulas/formulas/mongodb)
e2b9988d9ef9865fa919429979b73ccafa31d30fa41cebf62cc974cf95168168
MongoDB started. Listening to 27017.

Done!

How about sonarqube for static code analysis? Run dock sonar!

dock makes it super easy to start services in Docker containers and thus saves you precious time. Give it a try and let me know what you think!