Custom Azure build agent docker image with: OpenJDK 8 and maven 3.6.3, python3.5 and pip3
10K+
This image based on https://docs.microsoft.com/en-us/azure/devops/pipelines/agents/docker?view=azure-devops is extended with installation of jdk and maven 3.6.3 so that jmeter tests can be run from maven plugin.
Capabilities: - maven steps - kubectl steps
You need to attach your private agent to your devops organization agent pool to use it
Create a new agent pool e..g private
Build this image locally docker build -t gabrielstar/jmeter:2.2 .
Run it , provide PAT when running docker run -e AZP_URL=https://dev.azure.com/gstarczewski -e AZP_TOKEN= -e AZP_POOL=private -e AZP_AGENT_NAME=docker_gab gabrielstar/jmeter:latest OR
In pipeline specify jobs:
Note: pre-built image is available in here: https://hub.docker.com/repository/docker/gabrielstar/jmeter so you can start the agent using this image too, which is the recommended approach:
docker run -e AZP_URL=https://dev.azure.com/gstarczewski -e AZP_TOKEN= -e AZP_POOL=private -e AZP_AGENT_NAME=docker_gab gabrielstar/jmeter:1.0
If you want agent to have access to kubernetes cluster you need to copy credentials over to agent
from kubernetes master: docker cp ..kube\ happy_booth:/root/ or use scp to copy over netowrk hosts
Useful:
docker exec -it container_name /bin/bash docker stop $(docker ps -a -q) docker rm $(docker ps -a -q)
Content type
Image
Digest
Size
271.1 MB
Last updated
over 6 years ago
docker pull gabrielstar/jmeter