Skip to content

Commit

Permalink
Fix docker agent set up (#912)
Browse files Browse the repository at this point in the history
* Add system dependant library to docker agent

* Update docker README.md
  • Loading branch information
imbyungjun authored Oct 7, 2022
1 parent 45bde89 commit e9ef0d8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions docker/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ nGrinder is a platform for stress tests that enables you to execute script creat
nGrinder consists of two major components.

* __controller__ : a web application that enables the performance tester to create a test script and configure a test run. You can get the controller docker images [ngrinder/controller](https://registry.hub.docker.com/u/ngrinder/controller/).
* __controller__ : a web application that enables the performance tester to create a test script and configure a test run. You can get the controller docker images [ngrinder/controller](https://registry.hub.docker.com/r/ngrinder/controller).

* __agent__ : a virtual user generator that creates loads. You can get the agent docker images [ngrinder/agent](https://registry.hub.docker.com/u/ngrinder/agent/).
* __agent__ : a virtual user generator that creates loads. You can get the agent docker images [ngrinder/agent](https://registry.hub.docker.com/r/ngrinder/agent).

Version
---------
Expand All @@ -27,13 +27,13 @@ Install docker 1.5.0 or above on your host.
Pull the ngrinder/controller image.

```
$ docker pull ngrinder-controller:3.4
$ docker pull ngrinder/controller:3.5.6
```

Start controller.

```
docker run -d -v ~/ngrinder-controller:/opt/ngrinder-controller -p 80:80 -p 16001:16001 -p 12000-12009:12000-12009 ngrinder-controller:3.4
docker run -d -v ~/ngrinder-controller:/opt/ngrinder-controller -p 80:80 -p 16001:16001 -p 12000-12009:12000-12009 ngrinder/controller:3.5.6
```

The controller creates a data folder under /opt/ngrinder-controller to maintain test history and configuration data. In order to keep the data persistently, you should map the folder /opt/ngrinder-controller on the container to a folder on your host .
Expand All @@ -54,11 +54,11 @@ Install docker 1.5.0 or above on your another host. You should run your agent on
Pull the ngrinder/agent image.

```
$ docker pull ngrinder/agent:3.4
$ docker pull ngrinder/agent:3.5.6
```

Start agent.

```
docker run -v ~/ngrinder-agent:/opt/ngrinder-agent -d ngrinder/agent:3.4 controller_ip:controller_web_port
docker run -v ~/ngrinder-agent:/opt/ngrinder-agent -d ngrinder/agent:3.5.6 controller_ip:controller_web_port
```
2 changes: 1 addition & 1 deletion docker/agent/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM jeanblanchard/java:serverjre-8
MAINTAINER JunHo Yoon "[email protected]"

RUN apk update; apk add curl bash
RUN apk update; apk add curl bash udev


# Set up environment variables
Expand Down

0 comments on commit e9ef0d8

Please sign in to comment.