diff --git a/.github/workflows/test_docker.yml b/.github/workflows/test_docker.yml index 5c93024..c72a3ec 100644 --- a/.github/workflows/test_docker.yml +++ b/.github/workflows/test_docker.yml @@ -12,11 +12,6 @@ jobs: name: setup Python with: python-version: 3.8 - - - name: Install dependencies - run: | - python3 -m pip install --upgrade pip - pip3 install -r requirements.txt - name: Docker Compose up -d --build working-directory: docker_compose_test @@ -25,7 +20,7 @@ jobs: - name: Check status code /list run: | - status_code=$(curl -s -o /dev/null -w "%{http_code}" http://localhost:5000/list) + status_code=$(curl -s -o /dev/null -w "%{http_code}" http://localhost:8080/list) if [[ $status_code -ne 200 ]]; then echo "Request failed with status code $status_code" exit 1 diff --git a/Dockerfile b/Dockerfile index b824718..36af1b7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,7 @@ # Use an official Python runtime as a parent image FROM python:3.9-slim -EXPOSE 5000 +EXPOSE 8080 # define config variables ENV DOWNLOAD_DIR /app/downloads @@ -12,7 +12,7 @@ ENV BROKER_USERNAME "everyone" ENV BROKER_PASSWORD "everyone" ENV BROKER_PROTOCOL "websockets" ENV FLASK_HOST "0.0.0.0" -ENV FLASK_PORT 5000 +ENV FLASK_PORT 8080 ENV DOWNLOAD_WORKERS 8 ENV SAVE_LOGS false ENV LOGS_DIR /app/logs diff --git a/docker_compose_test/docker-compose.yml b/docker_compose_test/docker-compose.yml index 6a12782..9438548 100644 --- a/docker_compose_test/docker-compose.yml +++ b/docker_compose_test/docker-compose.yml @@ -6,4 +6,4 @@ services: dockerfile: Dockerfile container_name: wis2-downloader ports: - - "5000:5000" + - "8080:8080" diff --git a/wis2downloader/app.py b/wis2downloader/app.py index 0ef1053..3b4b359e 100644 --- a/wis2downloader/app.py +++ b/wis2downloader/app.py @@ -181,7 +181,7 @@ def main(): # Flask options flask_host = config.get("flask_host", "127.0.0.1") - flask_port = config.get("flask_port", 5000) + flask_port = config.get("flask_port", 8080) # Finally if the user wants to save the logs to a file save_logs = config.get("save_logs", False)