有兴趣的可以加qq群:492421411。李老师和大家一起学习如何用Devops来开发维护BlockChain的大型架构
1.locust docker快速部署
太久没使用docker了有些手生。我参照了这篇文章部署了下
https://wheniwork.engineering/load-testing-with-locust-io-docker-swarm-d78a2602997a
https://yeasy.gitbooks.io/docker_practice/image/build.html
总算弄好了:有几个槛我备注一下
首先,是容器的映射 -v 来映射你需要映射的文件
还有一个是容器间的网络需要共享原有的物理网络 --net="host"
sudo
docker run -it --net="host" --rm -v
/home/bing/Softwares/locusts/scripts:/scripts -v
/home/bing/Softwares/locusts/run.py:/run.py -p 8089:8089
swernst/locusts
sudo docker run -it --rm --net="host" -v
/home/bing/Softwares/locusts/scripts:/scripts -v
/home/bing/Softwares/locusts/run.py:/run.py swernst/locusts
--master-host=127.0.0.1

网友评论