Skip to content

Commit

Permalink
Adding a section to readme on how to use DATA_PATH env var
Browse files Browse the repository at this point in the history
  • Loading branch information
arnasbr committed Aug 12, 2024
1 parent c0a7b1d commit 25a8c8d
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
1 change: 0 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,3 @@ COPY --from=builder /app/k6 /bin/
COPY /scripts /scripts/
COPY /proto /proto/
COPY /locations /locations/
COPY /precomputed /precomputed/
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,21 @@ docker run
-ti igeolise/traveltime-k6-benchmarks:latest k6 run scripts/routes.js
```
### Using premade input locations
```bash
docker run
-v ./precomputed:/precomputed
-e DATA_PATH='../precomputed/{file_name}.csv'
-e APP_ID={APP_ID}
-e API_KEY={API_KEY}
...other ENV (-e) vars...
-ti igeolise/traveltime-k6-benchmarks:latest k6 run scripts/{script_name}.js
```
- `origins.csv` is used for: time-map, time-map-fast, distance-map, time-filter, time-filter-proto.
- `routes.csv` is used for routes.
### Running K6 Tests Locally
Install [K6](https://k6.io/docs/get-started/installation/)
Expand Down

0 comments on commit 25a8c8d

Please sign in to comment.