Skip to content

Commit

Permalink
update env var for test file
Browse files Browse the repository at this point in the history
  • Loading branch information
elfkuzco committed Jul 17, 2024
1 parent af271c0 commit 28a40a0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion dev/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@ docker compose --profile worker up --build
The key name `id_rsa` is used as a bind mount in the compose file.

- Assuming the backend service is up (`docker compose up backend`), create a worker and assign them a list of countries to test for.
If no countries are provided, all available countries wiil be assigned to the worker.
If no countries are provided, all available countries in the DB wiil be assigned to the worker. You can update the countries using `mirrors-qa-backend update-worker`.

In this example, we create a worker named `test` to test for mirrors in France, United States and Canada using the private key file
named `id_rsa`.
```sh
Expand Down Expand Up @@ -115,6 +116,7 @@ The `backend` code houses the `scheduler` and the `RESTful API`. The following e
- `WIREGUARD_HEALTHCHECK_TIMEOUT_SECONDS`
- `WIREGUARD_HEALTHCHECK_RETRIES`
- `TASK_WORKER_IMAGE`
- `TEST_FILE_PATH`: location of file to run download speed test
## task-worker
Expand Down
4 changes: 3 additions & 1 deletion dev/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ services:
interval: 10s
timeout: 5s
retries: 3
ports:
- 5432
backend:
depends_on:
postgresdb:
Expand Down Expand Up @@ -67,7 +69,7 @@ services:
- BACKEND_API_URI=http://backend
- SLEEP_DURATION=5m
- TASK_WORKER_IMAGE=mirrors-qa-task-worker
- TEST_FILE_URL=https://download.kiwix.org/zim/wikipedia/wikipedia_guw_all_nopic_2023-02.zim
- TEST_FILE_PATH=/zim/wikipedia/wikipedia_guw_all_nopic_2023-02.zim
command: mirrors-qa-manager --verbose ${WORKER_ID}
task-worker:
build:
Expand Down

0 comments on commit 28a40a0

Please sign in to comment.