File tree 3 files changed +26
-9
lines changed
3 files changed +26
-9
lines changed Original file line number Diff line number Diff line change 5
5
"main" : " index.js" ,
6
6
"scripts" : {
7
7
"start" : " node Browse.js && docker-compose up -d" ,
8
- "mongo" : " docker exec -it mongo mongo" ,
9
- "list-containers" : " docker ps" ,
10
- "remove" : " docker rm -f $(docker ps -a -q)" ,
11
- "docker-stop" : " docker stop $(docker ps -aq)"
8
+ "mongo" : " docker exec -it learn-mongo mongo" ,
9
+ "docker-stop" : " docker stop $(docker ps -aq)" ,
10
+ "remove" : " docker rm -f $(docker ps -a -q)"
12
11
},
13
12
"keywords" : [],
14
13
"author" : " " ,
Original file line number Diff line number Diff line change 2
2
Students should be to:
3
3
1 . Use Docker Compose to start and stop mongoDB environment
4
4
2 . Use Docker, Terminal & MongoExpress to teach basic mongoDB concepts
5
+ 3 . Distinguish between the name of a docker image (mongo) and the container name (learn-mongo)
6
+ 4 . Use NPM Scripts to store docker commands
7
+
8
+
5
9
6
10
# Todo List
7
11
- [ ] MongoDB Exercises
8
- - [ ] Publish Tutorial
12
+ - [ ] Publish Tutorial (this readme file)
9
13
- [ ] Slides
10
- - [ ] Resources
14
+ - [ ] Resources
15
+
16
+ # Package.json is used to demostrate NPM Scripts for use with docker
17
+ Students should be able to:
18
+ * Identify the following line in the package.json file
19
+ ```
20
+ "mongo": "docker exec -it learn-mongo mongo",
21
+ ```
22
+ * Distinguish between the name of the docker image (mongo) and the container name (learn-mongo)
23
+
24
+ # Demonstrate Mongo Terminal Commands
25
+ 1 . Running with docker compose
26
+ - ``` docker exec -it learn-mongo mongo ```
27
+ 2 .
Original file line number Diff line number Diff line change @@ -8,9 +8,10 @@ Students should be to:
8
8
4 . Compare and contrast Docker & Docker Compose
9
9
5 . Use Docker Compose to learn mongoDB and MySQL
10
10
11
- ## Sections
12
- 1 . MongoDB
13
- 2 . MySQL
11
+ ## Lessons
12
+ 1 . Docker Commands
13
+ 2 . MongoDB
14
+ 3 . MySQL
14
15
15
16
16
17
## Projects
You can’t perform that action at this time.
0 commit comments