一、Stress工具原始网页:
https://people.seas.harvard.edu/~apw/stress/
二、Docker镜像的构建过程(dockerfile):
progrium/stress镜像的 Dockerfile内容 :
FROM ubuntu:trusty
MAINTAINER Jeff Lindsay <progrium@gmail.com>
RUN apt-get update && apt-get install -y stress
ENTRYPOINT ["/usr/bin/stress", "--verbose"]
CMD []
该镜像的Dockerfile文件说明Ubuntu 1404系统中自带stress小工具,该镜像较大,282MB。
另一个stress镜像polinux/stress,它使用alpine作为基础镜像,从源码进行编译,整个镜像大小7.5MB,Dockerfile文件如下: