Put 'wait' and 'keys' HTML comments before the command they apply to. Add colored logs.

This commit is contained in:
AJ Bowen
2017-10-29 15:01:24 -07:00
parent 60a75647d2
commit 0f3660dc95
3 changed files with 69 additions and 22 deletions

View File

@@ -135,6 +135,17 @@ Without further ado, let's start our application.
cd ~/orchestration-workshop/dockercoins
```
<!--
```wait
units of work done
```
```keys
^C
```
-->
- Use Compose to build and run all containers:
```bash
docker-compose up
@@ -160,17 +171,6 @@ and displays aggregated logs.
- Stop the application by hitting `^C`
<!--
```wait
units of work done
```
```keys
^C
```
-->
]
- `^C` stops all containers by sending them the `TERM` signal
@@ -215,17 +215,22 @@ class: extra-details
docker-compose logs
```
<!--
```wait
units of work done
```
```keys
^C
```
-->
- Stream container logs, starting at the last 10 lines for each container:
```bash
docker-compose logs --tail 10 --follow
```
<!--
```keys
^C
```
-->
]
Tip: use `^S` and `^Q` to pause/resume log output.
@@ -319,22 +324,29 @@ class: extra-details
- run `top` to see CPU and memory usage (you should see idle cycles)
<!--
```wait
Tasks
```
```keys ^C```
```bash
top
```
```keys ^C```
-->
- run `vmstat 1` to see I/O usage (si/so/bi/bo)
<br/>(the 4 numbers should be almost zero, except `bo` for logging)
<!--
```wait
memory
```
```keys ^C```
```bash
vmstat 1
```
```keys ^C```
-->
]