From 5699880041a1ed3bac6e97da81a7131ef1ead4f5 Mon Sep 17 00:00:00 2001 From: vincentsarago Date: Thu, 13 Feb 2025 18:47:02 +0100 Subject: [PATCH] fix port --- .github/workflows/tests/benchmarks.py | 2 +- .github/workflows/tests/conftest.py | 2 +- Dockerfile | 2 ++ benchmark/create_urls.py | 2 +- 4 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/tests/benchmarks.py b/.github/workflows/tests/benchmarks.py index 75d6ed72..f4137792 100644 --- a/.github/workflows/tests/benchmarks.py +++ b/.github/workflows/tests/benchmarks.py @@ -6,7 +6,7 @@ import pytest host = os.environ.get("HOST", "0.0.0.0") -port = os.environ.get("PORT", "8081") +port = os.environ.get("PORT", "8083") @pytest.mark.parametrize( diff --git a/.github/workflows/tests/conftest.py b/.github/workflows/tests/conftest.py index 69a547aa..97c8ce38 100644 --- a/.github/workflows/tests/conftest.py +++ b/.github/workflows/tests/conftest.py @@ -10,7 +10,7 @@ def search_id(): """Mosaic ID fixture""" host = os.environ.get("HOST", "0.0.0.0") - port = os.environ.get("PORT", "8081") + port = os.environ.get("PORT", "8083") query = {"collections": ["world"]} response = httpx.post(f"http://{host}:{port}/searches/register", json=query) diff --git a/Dockerfile b/Dockerfile index 8e4aa408..9caa22e6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -13,6 +13,8 @@ RUN cd /usr/local/share/ca-certificates/cacert.org && curl -k -O https://www.cac RUN update-ca-certificates ENV CURL_CA_BUNDLE=/etc/ssl/certs/ca-certificates.crt +WORKDIR /tmp + RUN python -m pip install -U pip RUN python -m pip install uvicorn uvicorn-worker gunicorn diff --git a/benchmark/create_urls.py b/benchmark/create_urls.py index caa0bfbb..fd0e9253 100644 --- a/benchmark/create_urls.py +++ b/benchmark/create_urls.py @@ -125,7 +125,7 @@ def _xy(lon, lat): with open("urls.txt", "w") as fin: fin.write("PROT=http\n") fin.write("HOST=localhost\n") - fin.write("PORT=8080\n") + fin.write("PORT=8081\n") fin.write("PATH=\n") fin.write("EXT=pbf\n") for zoom in range(0, maxzoom + 1):