mongodb-js/vscode

Feature Request: Allow to spin up new container and automatically add it to connections and connect to it

spotlesscoder opened this issue · 2 comments

Feature Request

When a docker installation is detected on the system, allow to directly spin up a new mongoDB in docker and connect to it.

Detailed Description

When that option is chosen automatically create a new container with the mongodb:latest docker image, a fixed username (e.g. "dev") and a random 16 chars password
When the port 27017 is already in use, ask the user which port the container should bind.
Then add the connection to the connections list, connect immediately and open the connection's tree item first hierarchy so I can start adding a database on the server

Context

I want to be able to set up a DB for testing quickly

Anemy commented

Sounds like this could be a nice feature for folks with docker. If possible please add it this to our feedback forum which we use for managing feature requests (it has tracking and upvoting): https://feedback.mongodb.com/forums/929236-mongodb-for-vs-code