Apache Jmeter and Docker

Okay, this time we will create a Docker-Jmeter test environment. We create some simple (but tiny) Docker images/containers which can be reused for future test runs. Here we follow the DRY rule. Next, we want to achieve.

Preconditions

  • docker installed and running

Preparation

Dockerfile JAVA

Dockerfile Jmeter

JMX file

Create or copy existing JMX file on folder “/tutorial/jmx” with name “simple.jmx”.

Create Jmeter container

Note: The container was created but not running!

Test execution

🙂