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
When using Dodo with Docker and a local config file, you must provide the config.json file as a volume to the Docker run command (not as the "-f config.json" argument):
30
+
To use Dodo with Docker and a local config file, mount the config file as a volume and pass it as an argument:
17
31
18
32
```sh
19
-
docker run -v /path/to/config.json:/config.json aykhans/dodo
33
+
docker run -v /path/to/config.json:/config.json aykhans/dodo -f /config.json
20
34
```
21
35
22
-
If you're using Dodo with Docker and providing a config file via URL, you don't need to set a volume:
36
+
If you're using a remote config file via URL, you don't need to mount a volume:
23
37
24
38
```sh
25
-
docker run aykhans/dodo -f https://raw.githubusercontent.com/aykhans/dodo/main/config.json
39
+
docker run aykhans/dodo -f https://raw.githubusercontent.com/aykhans/dodo/main/config.yaml
26
40
```
27
41
28
-
### Using Binary Files
42
+
### Using Pre-built Binaries
29
43
30
-
You can download pre-built binaries from the [releases](https://github.com/aykhans/dodo/releases) section.
44
+
Download the latest binaries from the [releases](https://github.com/aykhans/dodo/releases) section.
31
45
32
46
### Building from Source
33
47
34
-
To build Dodo from source, you need to have [Go 1.24+](https://golang.org/dl/) installed.
35
-
Follow these steps:
48
+
To build Dodo from source, ensure you have [Go 1.24+](https://golang.org/dl/) installed. Then follow these steps:
36
49
37
50
1.**Clone the repository:**
38
51
@@ -56,9 +69,9 @@ This will generate an executable named `dodo` in the project directory.
56
69
57
70
## Usage
58
71
59
-
You can use Dodo with CLI arguments, a JSON config file, or both. When using both, CLI arguments will override JSON config values if there's a conflict.
72
+
Dodo supports CLI arguments, configuration files (JSON/YAML), or a combination of both. If both are used, CLI arguments take precedence.
60
73
61
-
### 1. CLI
74
+
### 1. CLI Usage
62
75
63
76
Send 1000 GET requests to https://example.com with 10 parallel dodos (threads) and a timeout of 2 seconds:
64
77
@@ -72,7 +85,9 @@ With Docker:
72
85
docker run --rm -i aykhans/dodo -u https://example.com -m GET -d 10 -r 1000 -t 2s
73
86
```
74
87
75
-
### 2. JSON Config File
88
+
### 2. Config File Usage
89
+
90
+
#### 2.1 JSON Example
76
91
77
92
Send 1000 GET requests to https://example.com with 10 parallel dodos (threads) and a timeout of 800 milliseconds:
0 commit comments