Public | Automated Build

Last pushed: 9 months ago
Short Description
Fork of hhcordero/docker-jmeter-server running jmeter 3.1
Full Description

JMeter in Server Mode

Forked since I needed jmeter 3.1 slaves.

Supported Tags

Docker image for JMeter in server mode running Minimal Alpine Linux or Ubuntu. Make sure to open port 1099. You also need the public ip (see environment variable 'IP' below).

Usage

On cli, execute the following:

$   docker run \
        --detach \
        --publish 1099:1099 \
        --env "IP=$PUBLIC_IP" \
        --name jmeter-server \
        hirro/docker-jmeter-server

Helper script

Dockerized JMeter - A Distributed Load Testing Workflow

This is a shell script that make use of Docker Machine to provision VM. Currently supported clouds are:

  • Amazon
  • DigitalOcean

Ansible scripts

ansible-playbook -i ./hosts.ini playbook.yml

playbook.yml

- hosts: jmeter-slaves
  become: yes
  become_method: sudo
  tasks:
    - name: Information
      debug:
        msg: "Using IP {{ public_ip }}"

    - name: Create conf directory
      file: path=/opt/jmeter-server state=directory  

    - name: Copy users.csv to hosts
      copy: src=users.csv dest=/opt/jmeter-server/users.csv mode="u+r"

    - name: Start jmeter container
      docker_container:
        name: "jmeter-server"
        image: "hirro/docker-jmeter-server"
        restart_policy: unless-stopped    
        memory: 2G
        ports:
          - "1099:1099"
        volumes:
          - /opt/jmeter-server/users.csv:/usr/local/apache-jmeter-3.1/users.csv
        env:
          IP: "{{ public_ip }}"

hosts.ini

[jmeter-slaves]
host1 public_ip=192.168.1.21
host2 public_ip=192.168.1.22
host3 public_ip=192.168.1.23
Docker Pull Command
Owner
hirro
Source Repository