Skip to content

Commit 7f15d06

Browse files
committed
Moving setup-commands to list with objects
1 parent 5635b96 commit 7f15d06

File tree

4 files changed

+10
-8
lines changed

4 files changed

+10
-8
lines changed

content/en/docs/measuring/interacting-with-applications.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ services:
4444
simple-load-container:
4545
image: alpine
4646
setup-commands:
47-
- apk add stress-ng
47+
- command: apk add stress-ng
4848

4949
flow:
5050
- name: Stress
@@ -109,7 +109,7 @@ services:
109109
puppeteer-container:
110110
image: greencoding/puppeteer-chrome
111111
setup-commands:
112-
- cp /tmp/repo/puppeteer-flow.js /var/www/puppeteer-flow.js
112+
- command: cp /tmp/repo/puppeteer-flow.js /var/www/puppeteer-flow.js
113113
networks:
114114
- example-network
115115

content/en/docs/measuring/measuring-locally.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ services:
5151
simple-load-container:
5252
image: alpine
5353
setup-commands:
54-
- apk add stress-ng
54+
- command: apk add stress-ng
5555

5656
flow:
5757
- name: Stress

content/en/docs/measuring/usage-scenario.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ services:
6666
ports:
6767
- 3306:3306
6868
setup-commands:
69-
- sleep 20
69+
- command: sleep 20
7070
volumes:
7171
- /LOCAL/PATH:/PATH/IN/CONTAINER
7272
networks:
@@ -110,6 +110,11 @@ services:
110110
* `service_started`: Similar to the list syntax -> this will enforce a starting order and just wait until the container state is "running".
111111
- `setup-commands:` **[list]** *(optional)*
112112
+ 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
113118
- `volumes:` **[list]** *(optional)*
114119
+ List of volumes to be mapped. Only read if `runner.py` is executed with `--allow-unsafe` flag
115120
- `networks:` **[list]** *(optional)*
@@ -131,9 +136,6 @@ services:
131136
+ Declares the default entrypoint for the service container. This overrides the ENTRYPOINT instruction from the service's Dockerfile.
132137
+ The value of `entrypoint` can either be an empty string (ENTRYPOINT instruction will be ignored) or a single word (helpful to provide a script).
133138
+ 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
137139
- `log-stdout:` **[boolean]** *(optional)*
138140
+ Will log the *stdout* and make it available through the frontend in the *Logs* tab.
139141
+ Please see the [Best Practices →]({{< relref "best-practices" >}}) for when and how to log.

usage_scenario.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ services:
99
image: klakegg/hugo:0.101.0-alpine
1010
commmand: shell
1111
setup-commands:
12-
- cp -R /tmp/repo /src
12+
- command: cp -R /tmp/repo /src
1313

1414
flow:
1515
- name: Build Hugo

0 commit comments

Comments
 (0)