@@ -19,10 +19,44 @@ Automatically generating directories and `browsers.json`, `docker-compose.yaml`,
19
19
- [x] standart parameters for selenoid (image, port, path)
20
20
- [ ] optional parameters for selenoid (env, tmpfs, volumes, hosts, labels, sysctl, shmSize, cpu, mem)
21
21
- [ ] shell-script for pull browsers images from browsers-config
22
- - [ ] Dockerfile (for usage tool into docker)
22
+ - [x ] Dockerfile (for usage tool into docker)
23
23
- [ ] ??? Automatic deployment to tests servers via ssh
24
24
- [ ] ??? Ansible playbooks
25
25
26
+ # Results Example
27
+ ```
28
+ .
29
+ ├── ...
30
+ ├── results # Directory with results
31
+ │ ├── ggr # Directory with ggr configs
32
+ │ │ ├── 111.111.111.111 # Example IP
33
+ │ │ │ ├── config
34
+ │ │ │ │ └── browsers.json
35
+ │ │ │ │
36
+ │ │ │ ├── quota
37
+ │ │ │ │ ├── dev_team.xml
38
+ │ │ │ │ ├── qa_team.xml
39
+ │ │ │ │ └── test_user.xml
40
+ │ │ │ │
41
+ │ │ │ ├── docker-compose.yaml
42
+ │ │ │ └── users.htpasswd
43
+ │ │ │
44
+ │ │ ├── ggr-balancer.dev.example.com # Example Host
45
+ │ │ └── localhost
46
+ │ │
47
+ │ └── selenoid # Directory with selenoid configs
48
+ │ │ ├── 111.111.111.112 # Example IP
49
+ │ │ │ ├── config
50
+ │ │ │ │ └── browsers.json
51
+ │ │ │ │
52
+ │ │ │ └── docker-compose.yaml
53
+ │ │ │
54
+ │ │ ├── selenoid-us.dev.example.com # Example Host
55
+ │ │ └── localhost
56
+ │ │
57
+ └── ...
58
+ ```
59
+
26
60
# Usage
27
61
## Download tool
28
62
1 . Clone repository
@@ -158,6 +192,30 @@ python3 -m pip install -r requirements.txt
158
192
./sctool -r ./your-results-dir -c ./your-config-dir
159
193
```
160
194
195
+ ## Run tool via Docker
196
+ ### 1. Create and fill config.yaml file
197
+ ``` bash
198
+ cd ~ /selenoid-config-tool/config
199
+ touch ./config.yaml
200
+ ```
201
+
202
+ ### 2. Create dir for results
203
+ ``` bash
204
+ cd ~ /selenoid-config-tool
205
+ mkdir ./results
206
+ ```
207
+
208
+ ### 3. Build docker-image
209
+ ``` bash
210
+ cd ~ /selenoid-config-tool
211
+ docker build -t ' sctool' .
212
+ ```
213
+
214
+ ### 4. Run docker image with parameters
215
+ ``` bash
216
+ docker run --rm -v ~ /selenoid-config-tool/config/config.yaml:/app/config/config.yaml -v ~ /selenoid-config-tool/results/:/app/results/ sctool:latest
217
+ ```
218
+
161
219
## Results
162
220
### 1. Change to the directory with the results
163
221
``` bash
0 commit comments