Skip to content

Commit

Permalink
Installing additional pip libraries
Browse files Browse the repository at this point in the history
  • Loading branch information
alfredeen committed Oct 8, 2024
1 parent 4a32de8 commit 3409f11
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
8 changes: 6 additions & 2 deletions source/Dockerfile
Original file line number Diff line number Diff line change
@@ -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 \

Check failure on line 8 in source/Dockerfile

View workflow job for this annotation

GitHub Actions / lint

DL3013 warning: Pin versions in pip. Instead of `pip install <package>` use `pip install <package>==<version>` or `pip install --requirement <requirements file>`

Check failure on line 8 in source/Dockerfile

View workflow job for this annotation

GitHub Actions / lint

SC2102 info: Ranges can only match single chars (mentioned due to duplicates).
&& 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
Expand Down
3 changes: 2 additions & 1 deletion source/tests-dev/appcreator.py
Original file line number Diff line number Diff line change
Expand Up @@ -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: <select name="flavor" class="form-control" rows="3" id="id_flavor"> <option value="28" selected>2 vCPU, 4 GB RAM</option></select>
# Flavor: <select name="flavor" class="form-control" rows="3" id="id_flavor">
# <option value="28" selected>2 vCPU, 4 GB RAM</option></select>
el_volume = tree.xpath('//select[@name="volume"]/option')
el_flavor = tree.xpath('//select[@name="flavor"]/option')
el_environment = tree.xpath('//select[@name="environment"]/option')
Expand Down

0 comments on commit 3409f11

Please sign in to comment.