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
Copy file name to clipboardExpand all lines: content/en/docs/measuring/usage-scenario.md
+6-4Lines changed: 6 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -66,7 +66,7 @@ services:
66
66
ports:
67
67
- 3306:3306
68
68
setup-commands:
69
-
- sleep 20
69
+
- command: sleep 20
70
70
volumes:
71
71
- /LOCAL/PATH:/PATH/IN/CONTAINER
72
72
networks:
@@ -110,6 +110,11 @@ services:
110
110
* `service_started`: Similar to the list syntax -> this will enforce a starting order and just wait until the container state is "running".
111
111
- `setup-commands:`**[list]** *(optional)*
112
112
+ List of commands to be run before actual load testing. Mostly installs will be done here. Note that your docker container must support these commands and you cannot rely on a standard linux installation to provide access to /bin
113
+
+ `command:` **[str]**
114
+
* The command to be executed
115
+
+ `shell:` **[str]** *(optional)*
116
+
* Will execute the `setup-commands` in a shell. Use this if you need shell-mechanics like redirection `>` or chaining `&&`.
117
+
** Please use a string for a shell command here like `sh`, `bash`, `ash` etc. The shell must be available in your container
113
118
- `volumes:`**[list]** *(optional)*
114
119
+ List of volumes to be mapped. Only read if `runner.py` is executed with `--allow-unsafe` flag
115
120
- `networks:`**[list]** *(optional)*
@@ -131,9 +136,6 @@ services:
131
136
+ Declares the default entrypoint for the service container. This overrides the ENTRYPOINT instruction from the service's Dockerfile.
132
137
+ The value of `entrypoint` can either be an empty string (ENTRYPOINT instruction will be ignored) or a single word (helpful to provide a script).
133
138
+ If you need an entrypoint that consists of multiple commands/arguments, either provide a script (e.g. `entrypoint.sh`) or set it to an empty string and provide your commands via `command`.
134
-
- `shell:`**[str]** *(optional)*
135
-
+ Will execute the `setup-commands` in a shell. Use this if you need shell-mechanics like redirection `>` or chaining `&&`.
136
-
+ Please use a string for a shell command here like `sh`, `bash`, `ash` etc. The shell must be available in your container
137
139
- `log-stdout:`**[boolean]** *(optional)*
138
140
+ Will log the *stdout* and make it available through the frontend in the *Logs* tab.
139
141
+ Please see the [Best Practices →]({{< relref "best-practices" >}}) for when and how to log.
0 commit comments