2021-07-07 10:46:39 +00:00
|
|
|
# rtmp-stress
|
|
|
|
|
|
|
|
> clone from https://github.com/rzrobert/st-load-master
|
|
|
|
|
|
|
|
## Build
|
|
|
|
|
|
|
|
```shell
|
2021-07-07 11:00:44 +00:00
|
|
|
docker build -t rtmp-stress -t tools.evan-soft.com/rtmp-stress .
|
|
|
|
docker push tools.evan-soft.com/rtmp-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
|
|
|
|
docker pull tools.evan-soft.com/rtmp-stress
|
|
|
|
|
2021-07-07 10:46:39 +00:00
|
|
|
# start
|
|
|
|
docker run -d --name stress rtmp-stress sb_rtmp_load_fast -c 50 -r rtmp://kumoly.io/mosu/live
|
|
|
|
|
|
|
|
# see the logs
|
|
|
|
docker logs -f stress
|
|
|
|
|
|
|
|
# stop
|
|
|
|
docker rm -f stress
|
|
|
|
```
|