This guide provides step-by-step instructions on how to set up JMeter on Dokku with all the necessary configurations.
-
Create the JMeter app on Dokku:
dokku apps:create jmeter
-
Set the JMeter version and timezone:
dokku config:set jmeter JMETER_VERSION=5.6.3 TZ="Europe/Moscow"
-
Create directories for JMeter storage:
mkdir -p /var/lib/dokku/data/storage/jmeter/tests
-
Mount the storage directory to the Dokku app:
dokku storage:mount jmeter /var/lib/dokku/data/storage/jmeter/tests:/tests
-
Configure user, ramp-up, and duration settings:
dokku config:set jmeter USERS=100 RAMPUP=1200 DURATION=1800
For a specific setup, configure the following:
dokku config:set jmeter URL_HOST="testing" SCHEME="https" URL_CORE="coretest.testing.io" URL_AUTH="authtest.testing.io" URL_PRESENCE="presencetest.testing.io"
Download and copy the test.sh script from the repository to /var/lib/dokku/data/storage/jmeter/tests. This script is essential for initializing test variables and other directory configurations.
Finally, push your configurations to Dokku. You can follow a workflow example for deployment.
By following these steps, you will have JMeter set up on Dokku with custom configurations tailored to your testing environment.