master
Evan, Chen 2021-07-13 10:55:59 +08:00
parent 487360e088
commit 07c7f6b631
2 changed files with 9 additions and 6 deletions

5
Makefile Normal file
View File

@ -0,0 +1,5 @@
build:
docker build -t stress -t hub.kumoly.io/tools/stress .
push:
docker push hub.kumoly.io/tools/stress:latest

View File

@ -5,20 +5,18 @@
## Build
```shell
docker build -t rtmp-stress -t tools.evan-soft.com/rtmp-stress .
docker push tools.evan-soft.com/rtmp-stress
docker build -t stress -t hub.kumoly.io/tools/stress .
docker push hub.kumoly.io/tools/stress
```
## Use
```shell
# Pull image if didn't build
docker pull tools.evan-soft.com/rtmp-stress
docker pull hub.kumoly.io/tools/stress
# start
docker run -d --name stress rtmp-stress sb_rtmp_load_fast -c 50 -r rtmp://kumoly.io/mosu/live
# or
docker run -d --name stress tools.evan-soft.com/rtmp-stress sb_rtmp_load_fast -c 50 -r rtmp://192.168.51.219/live/live
docker run -d --name stress hub.kumoly.io/tools/stress sb_rtmp_load_fast -c 50 -r rtmp://kumoly.io/mosu/live
# see the logs