mirror of
https://github.com/jpetazzo/container.training.git
synced 2026-07-28 01:01:12 +00:00
Put 'wait' and 'keys' HTML comments before the command they apply to. Add colored logs.
This commit is contained in:
@@ -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```
|
||||
-->
|
||||
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user