From 25a8c8d62ea416f68cf4cf86a477ab77265db5b6 Mon Sep 17 00:00:00 2001 From: arnasbr Date: Mon, 12 Aug 2024 18:07:31 +0300 Subject: [PATCH] Adding a section to readme on how to use DATA_PATH env var --- Dockerfile | 1 - README.md | 15 +++++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 68f6a14..a795673 100644 --- a/Dockerfile +++ b/Dockerfile @@ -16,4 +16,3 @@ COPY --from=builder /app/k6 /bin/ COPY /scripts /scripts/ COPY /proto /proto/ COPY /locations /locations/ -COPY /precomputed /precomputed/ diff --git a/README.md b/README.md index 8542dff..c177236 100644 --- a/README.md +++ b/README.md @@ -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/)