This project aims to have a Docker image of JMeter (currently version 4.0, but this is customizable when building).
git checkout https://github.com/iorga-group/jmeter-docker.git
cd jmeter-dockerEventually, you can build the docker image this way:
docker-compose buildIn order to build & run without GUI a .jmx JMeter test you can do the following:
./build-and-run.sh ./path/to/my.jmx 01It will generate the folder run01 containing the rersults (log.csv), the log (jmeter.log) and the report folder (report).
Alternatively, you can run the previously built Docker image this way:
docker run -it --rm -u `id -u` -v "`pwd`:/workdir" iorga-group/jmeter bashYou will be able to use JMeter in the opened terminal