美文网首页
用dockerfile创建jmeter的docker镜像

用dockerfile创建jmeter的docker镜像

作者: BestFei | 来源:发表于2019-11-08 17:57 被阅读0次
    FROM java:8
    MAINTAINER best.fei <yong.fei@best.com>
    ENV http_proxy ""
    ENV https_proxy ""
    
    RUN mkdir /jmeterdocker
    RUN mkdir -p /jmeterdocker/test
    RUN mkdir -p /jmeterdocker/test/input/jmx
    RUN mkdir -p /jmeterdocker/test/input/testdata
    RUN mkdir -p /jmeterdocker/test/report/html
    RUN mkdir -p /jmeterdocker/test/report/jtl
    RUN mkdir -p /jmeterdocker/test/report/outputdata
    RUN chmod -R 777 /jmeterdocker
    
    RUN cd /jmeterdocker
    
    ENV JMETER_VERSION=5.1.1
    ENV JMETER_HOME=/jmeterdocker/apache-jmeter-${JMETER_VERSION}
    ENV JMETER_PATH=${JMETER_HOME}/bin:${PATH}
    
    RUN wget https://archive.apache.org/dist/jmeter/binaries/apache-jmeter-${JMETER_VERSION}.tgz
    RUN tar -zxvf apache-jmeter-${JMETER_VERSION}.tgz
    RUN rm apache-jmeter-${JMETER_VERSION}.tgz
    

    相关文章

      网友评论

          本文标题:用dockerfile创建jmeter的docker镜像

          本文链接:https://www.haomeiwen.com/subject/wddwbctx.html