From dc76f6d74e4c7d11f40951077efcd5fa00b8ed03 Mon Sep 17 00:00:00 2001 From: blue Date: Sat, 23 Jan 2021 15:47:28 +0530 Subject: [PATCH] updated README --- README.md | 25 +++++++++++++++++++++---- 1 file changed, 21 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index e073c80..eaf22d2 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,12 @@ -# [MongoDB Sample Databases](https://docs.atlas.mongodb.com/sample-data/available-sample-datasets/) +# [MongoDB Sample Dataset](https://docs.atlas.mongodb.com/sample-data/available-sample-datasets/) -> this is a duplicate [repo](https://github.com/mcampo2/mongodb-sample-databases) -> the original repo had BSON dump. I removed it and I added a script.sh to import them automatically +> this is a duplicate [repo](https://github.com/mcampo2/mongodb-sample-databases). + +> the original repo had BSON dump. I removed it and I added a script.sh to import the JSON docs to respective db Atlas provides sample data you can load into your Atlas clusters. You can use this data to quickly get started experimenting with data in MongoDB and using tools such as the Atlas Perform CRUD Operations in Atlas and MongoDB Charts. -MongoDB does not provide any sample databases on their website, however, they do provide sample databases for their cloud service Atlas. These databases have been dumped from a MongoDB Atlas cluster using the MongoDB Compass GUI. There are 7 databases, with each database collection (table) stored in a seperate JSON file. These files will accelerate learning of MongoDB's features by allowing new developers to quickly experiment with prepopulated datasets. +MongoDB does not provide any sample databases on their website, However, they do provide sample databases for their cloud service Atlas. These databases have been dumped from a MongoDB Atlas cluster using the MongoDB Compass GUI. There are 7 databases, with each database collection (table) stored in a seperate JSON file. These files will accelerate learning of MongoDB's features by allowing new developers to quickly experiment with prepopulated datasets. ## Sample Datasets @@ -20,3 +21,19 @@ MongoDB does not provide any sample databases on their website, however, they do | [Sample Training Dataset](https://docs.atlas.mongodb.com/sample-data/sample-training/) | Contains MongoDB training services dataset. | companies, grades, inspection, posts, routes, stories, trips, tweets, zips | | [Sample Weather Dataset](https://docs.atlas.mongodb.com/sample-data/sample-weather/) | Contains detailed weather reports. | data | +## Running in docker + +```bash +docker pull mvertes/alpine-mongo + +docker run -d --name mongo -p 2717:27017 -v ~/mongodb:data/db mvertes/alpine-mongo + +# args +# hostname +# port +./script localhost 2717 + +# start mongo shell +docker exec -ti mongo mongo +``` +