简体   繁体   中英

configuration JMeter wtth Jenkins by Docker container

I did functional tests in JMeter (backend application). I have in Jmeter 42 functional tests and I launch this in one docker container Now I configuration JMeter with Jenkins by docker container - My dockerfile is following:

[https://pastebin.com/Aq9A9eqh][1]

To automatically run these tests regullary, I created docker - container and when I run build execution on Jenkins, I had a following error:

https://pastebin.com/365kLWXB

  1. What is wrong?
  2. How is the best way to improve this?
  3. What can I improve further?

I know that I must add a java jdk, but I don't know how to add to my dockerfile?

https://pastebin.com/Aq9A9eqh

When I added:

FROM openjdk:8u162-jre-slim-stretch
ARG GITHUB_OAUTH_TOKEN

it didn't run.

With regards to your current setup your Docker image doesn't have Java installed therefore you cannot launch JMeter.

You can fix it by replacing these line:

RUN apt-get install -y git

with this one:

RUN apt-get install -y git default-jre

With regards to "improve further" be aware that according to JMeter Best Practices you should always be using the latest version of JMeter so consider replacing JMeter version 3.3 with somethine more recent, as of now it's JMeter 5.0, you can always check JMeter Downloads page for current release details.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM