From 6f9c69b13d4e2066eca371ffe49300ecf5fb2e10 Mon Sep 17 00:00:00 2001 From: Rogerio Fonseca Goncalves Date: Sat, 30 May 2020 15:52:10 -0300 Subject: [PATCH 1/3] Adding unzip dependency --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 278ee54..5972731 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,7 +8,7 @@ ENV PATH $JMETER_HOME/bin:$PATH # INSTALL PRE-REQ RUN apt-get update && \ apt-get -y install \ - wget + wget unzip # INSTALL JMETER BASE RUN mkdir /jmeter From a1cad1a4e9ad0e1d37d6822e3cc2b042f327850c Mon Sep 17 00:00:00 2001 From: Rogerio Fonseca Goncalves Date: Sat, 30 May 2020 18:02:07 -0300 Subject: [PATCH 2/3] build only specific version --- Makefile | 4 ++++ README.md | 16 ++++++++++++++++ 2 files changed, 20 insertions(+) diff --git a/Makefile b/Makefile index 85e302a..4531842 100644 --- a/Makefile +++ b/Makefile @@ -6,3 +6,7 @@ build_all: docker build --build-arg JMETER_VERSION=$$version --tag pedrocesarti/jmeter-docker:$$version . ; \ docker push pedrocesarti/jmeter-docker:$$version ; \ done < VERSIONS + +# make build_specific_version version=5.0 +build_specific_version: + @docker build --build-arg JMETER_VERSION=$$version --tag pedrocesarti/jmeter-docker:$$version . diff --git a/README.md b/README.md index e19df2d..2340f0f 100644 --- a/README.md +++ b/README.md @@ -32,6 +32,22 @@ docker run -p 60000:60000 -v : -d pedroces docker run -p 1099:1099 -p 50000:50000 -d pedrocesarti/jmeter-docker:latest server ``` +### Building versions + +Build latest version: +```sh +make +``` + +Build all versions: +```sh +make build_all +``` + +Building only a specific version +```sh +make build_specific_version version=5.0 +``` ## Running Master and Server (Docker Compose) You can also create a whole stack with master and servers to run a distributed JMeter tests locally or in a Docker Swarm Cluster. Check out this [docker-compose.yml](https://github.com/pedrocesar-ti/distributed-jmeter-docker/blob/master/local/docker-compose.yml) to see one example of this infra running locally. From 005520c06c2890d6c7940395c0e3ef473fbdd2d6 Mon Sep 17 00:00:00 2001 From: Rogerio Fonseca Date: Sat, 30 May 2020 18:24:43 -0300 Subject: [PATCH 3/3] remove unzip --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 5972731..75f7cbb 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,7 +8,7 @@ ENV PATH $JMETER_HOME/bin:$PATH # INSTALL PRE-REQ RUN apt-get update && \ apt-get -y install \ - wget unzip + wget # INSTALL JMETER BASE RUN mkdir /jmeter