You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you view this file, the <strong>docker build</strong> command within the script is for a specific version of JMeter and implements the <strong>Dockerfile</strong> in the same folder.
120
-
119
+
If you view this file, the <strong>docker build</strong> command within the script is for a specific version of JMeter and implements the <strong>Dockerfile</strong> in the same folder.
120
+
121
121
If you view the Dockerfile, notice the `JMETER_VERSION` specified is the same as the one in the build.sh script. The FROM keyword specifies the Alpine operating system, which is very small (less of an attack surface). Also, no JMeter plug-ins are used.
122
-
122
+
123
123
At the bottom of the Dockerfile is the <strong>entrypoint.sh</strong> file. If you view it, that's where JVM memory settings are specified for <strong>jmeter</strong> before it is invoked. PROTIP: Such settings need to be adjusted for tests of more complexity.
124
124
125
125
The last line in the response should be:
126
-
127
-
<tt>Successfully tagged justb4/jmeter:5.4</tt>
126
+
127
+
<tt>Successfully tagged justb4/jmeter:5.5</tt>
128
128
129
129
1. Run the test script:
130
130
@@ -133,7 +133,7 @@ Contribution by @wilsonmar
133
133
```
134
134
135
135
If you view the script, note it invokes the <strong>run.sh</strong> script file stored at the repo's root. View that file to see that it specifies docker image commands.
136
-
136
+
137
137
File and folder names specified in the test.sh script is reflected in the last line in the response for its run:
138
138
139
139
<pre>
@@ -151,24 +151,24 @@ Contribution by @wilsonmar
151
151
THREADS=10 \
152
152
TEST=trivial \
153
153
make
154
-
```
154
+
```
155
155
156
156
1. Switch to your machine's Folder program and navigate to the folder containing files which replaces files cloned in from GitHub:
157
-
157
+
158
158
```
159
159
cd tests/trivial
160
160
```
161
-
161
+
162
162
The files are:
163
-
163
+
164
164
* jmeter.log
165
165
* reports folder (see below)
166
166
* test-plan.jmx containing the JMeter test plan.
167
167
* test-plan.jtl containing statistics from the run displayed by the index.html file.
168
-
169
-
168
+
169
+
170
170
1. Navigate into the <strong>report</strong> folder and open the <strong>index.html</strong> file to pop up a browser window displaying the run report. On a Mac Terminal:
171
-
171
+
172
172
```
173
173
cd report
174
174
open index.html
@@ -181,13 +181,13 @@ Contribution by @wilsonmar
181
181
182
182
## Specifics
183
183
184
-
The Docker image built from the
184
+
The Docker image built from the
185
185
[Dockerfile](Dockerfile) inherits from the [Alpine Linux](https://www.alpinelinux.org) distribution:
186
186
187
-
> "Alpine Linux is built around musl libc and busybox. This makes it smaller
188
-
> and more resource efficient than traditional GNU/Linux distributions.
189
-
> A container requires no more than 8 MB and a minimal installation to disk
190
-
> requires around 130 MB of storage.
187
+
> "Alpine Linux is built around musl libc and busybox. This makes it smaller
188
+
> and more resource efficient than traditional GNU/Linux distributions.
189
+
> A container requires no more than 8 MB and a minimal installation to disk
190
+
> requires around 130 MB of storage.
191
191
> Not only do you get a fully-fledged Linux environment but a large selection of packages from the repository."
192
192
193
193
See https://hub.docker.com/_/alpine/ for Alpine Docker images.
0 commit comments