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
+7-6Lines changed: 7 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -81,7 +81,8 @@ services:
81
81
gcb-wordpress-apache:
82
82
# ...
83
83
depends_on:
84
-
gcb-wordpress-mariadb: service_healthy
84
+
gcb-wordpress-mariadb:
85
+
condition: service_healthy
85
86
gcb-wordpress-dummy:
86
87
# ...
87
88
depends_on:
@@ -101,10 +102,10 @@ services:
101
102
- `ports:`**[int:int]** *(optional)*
102
103
+ Docker container portmapping on host OS to be used with `--allow-unsafe` flag.
103
104
- `depends_on:`**[list|dict]** *(optional)*
104
-
+ Can either be an list of services names on which the service is dependent. It affects the startup order and forces the dependency to be "ready" before the service is started.
105
-
+ Or it can be an dict where each key represents a service as a string. The string then can have two values:
106
-
* `service_healthy`: Will wait for the container until the docker *healthcheck* returns *healthy*.
107
-
* `service_started`: Similar to the list syntax this will enforce a starting order and just wait until the container has been created.
105
+
+ Can either be an list of services names on which the service is dependent. It affects the startup order and forces the dependency to be started (container state = "running") before the service is started.
106
+
+ Or it can be an dict where you can specify a condition. The `condition` can have two values:
107
+
* `service_healthy`: Will wait for the container until the docker *healthcheck* returns *healthy*.
108
+
* `service_started`: Similar to the list syntax -> this will enforce a starting order and just wait until the container state is "running".
108
109
- `setup-commands:`**[list]** *(optional)*
109
110
+ 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
110
111
- `volumes:`**[list]** *(optional)*
@@ -113,7 +114,7 @@ services:
113
114
+ The networks to put the container into. If no networks are defined throughout the `usage_scenario.yml` the container will be put into the default network will all others in the file.
114
115
- `healthcheck:`**[dict]** *(optional)*
115
116
+ Please see the definition of these arguments and how healthcheck works in the official docker compose definition. We just copy them over: [Docker compose healthcheck specification](https://docs.docker.com/compose/compose-file/compose-file-v3/#healthcheck)
0 commit comments