2021-07-07 10:46:39 +00:00
|
|
|
# rtmp-stress
|
|
|
|
|
|
|
|
> clone from https://github.com/rzrobert/st-load-master
|
|
|
|
|
|
|
|
## Build
|
|
|
|
|
|
|
|
```shell
|
2021-07-13 02:55:59 +00:00
|
|
|
docker build -t stress -t hub.kumoly.io/tools/stress .
|
|
|
|
docker push hub.kumoly.io/tools/stress
|
2021-07-07 10:46:39 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
## Use
|
|
|
|
|
|
|
|
```shell
|
2021-07-07 11:00:44 +00:00
|
|
|
# Pull image if didn't build
|
2021-07-13 02:55:59 +00:00
|
|
|
docker pull hub.kumoly.io/tools/stress
|
2021-07-07 11:00:44 +00:00
|
|
|
|
2021-07-07 10:46:39 +00:00
|
|
|
# start
|
2021-07-13 02:55:59 +00:00
|
|
|
docker run -d --name stress hub.kumoly.io/tools/stress sb_rtmp_load_fast -c 50 -r rtmp://kumoly.io/mosu/live
|
2021-07-07 11:06:52 +00:00
|
|
|
|
2021-07-07 10:46:39 +00:00
|
|
|
|
|
|
|
# see the logs
|
|
|
|
docker logs -f stress
|
|
|
|
|
|
|
|
# stop
|
|
|
|
docker rm -f stress
|
|
|
|
```
|