From 3409f11c8a3cb5468a79ba3659fea4344367a6d4 Mon Sep 17 00:00:00 2001 From: alfredeen Date: Tue, 8 Oct 2024 13:48:01 +0200 Subject: [PATCH] Installing additional pip libraries --- source/Dockerfile | 8 ++++++-- source/tests-dev/appcreator.py | 3 ++- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/source/Dockerfile b/source/Dockerfile index eb71be6..9f48f10 100644 --- a/source/Dockerfile +++ b/source/Dockerfile @@ -1,10 +1,14 @@ # Use the Locust image as the base image +# It in turn is based on python:3.11-slim FROM locustio/locust:2.31.8 WORKDIR /home/locust -# Install the locust-plugins dashboards plugin -RUN pip3 install --no-cache-dir locust-plugins[dashboards]==4.5.3 +# Install the locust-plugins dashboards plugin etc +RUN pip3 install --no-cache-dir --upgrade pip==23.3.2 \ + && pip3 install --no-cache-dir lxml_html_clean>=0.2.2 \ + && pip3 install --no-cache-dir requests-html>=0.10.0 \ + && pip3 install --no-cache-dir locust-plugins[dashboards]==4.5.3 # Copy the Locust files into the container COPY --chown=locust:locust locust-ui.conf locust.conf diff --git a/source/tests-dev/appcreator.py b/source/tests-dev/appcreator.py index 3667644..5d41c9b 100644 --- a/source/tests-dev/appcreator.py +++ b/source/tests-dev/appcreator.py @@ -110,7 +110,8 @@ def _create_app(self, project_name: str, app_name: str): environment = None # Extract the form values of the option elements using XPath - # Flavor: + # Flavor: el_volume = tree.xpath('//select[@name="volume"]/option') el_flavor = tree.xpath('//select[@name="flavor"]/option') el_environment = tree.xpath('//select[@name="environment"]/option')