dockerfile文件-jmeter

2019-08-04  本文已影响0人  左子穆

FROM openjdk:8-jdk
ENV JMETER_VERSION=5.1.1
ENV JMETER_HOME=/usr/local/apache-jmeter-{JMETER_VERSION} ENV PATH={JMETER_HOME}/bin:${PATH}

ENV http_proxy ""
ENV https_proxy ""

RUN apt-get -y update &&
apt-get -y install wget

RUN wget http://mirrors.tuna.tsinghua.edu.cn/apache/jmeter/binaries/apache-jmeter-{JMETER_VERSION}.tgz && \ tar -xzf apache-jmeter-{JMETER_VERSION}.tgz -C /usr/local/

RUN rm -rf apache-jmeter-{JMETER_VERSION}.tgz \{JMETER_HOME}/bin/examples
{JMETER_HOME}/bin/templates \{JMETER_HOME}/bin/.cmd
{JMETER_HOME}/bin/*.bat \{JMETER_HOME}/docs
${JMETER_HOME}/printable_docs &&
apt-get -y remove wget &&
apt-get -y --purge autoremove &&
apt-get -y clean &&
rm -rf /var/lib/apt/lists/
/tmp/* /var/tmp/*

CMD ["jmeter-sever" ,"-D server.rmi.ssl.disable=true -LDEBUG -Djava.rmi.server.hostname=192.168.1.18 -Dserver.rmi.localport=1099 -Dserver_port=1099" ]

上一篇下一篇

猜你喜欢

热点阅读