Skip to content

Commit

Permalink
chore: switch to a minimal requirements file
Browse files Browse the repository at this point in the history
The old requirements file was bloated and not used by the docker image.
We only installed required dependencies as a transitive dependencies.

This setup should allow for code completion and better dependency
management for the locust containers.
  • Loading branch information
cc-ju committed Jan 5, 2024
1 parent 9c36212 commit ede380f
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 42 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/lpt-locust.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,11 @@ jobs:
with:
python-version: '3.11'
cache: 'pip'
cache-dependency-path: 'test/lpt-locust/requirements.txt'
cache-dependency-path: 'test/lpt-locust/src/requirements.txt'
- name: 👨🏻‍💻 Install dependencies
run: pip install -r test/lpt-locust/requirements.txt
run: pip install -r test/lpt-locust/src/requirements.txt
- name: Install license reporting tool
run: pip install pip-licenses
- name: 📋 Generate license report
working-directory: ./test/lpt-locust
run: |
Expand Down
2 changes: 1 addition & 1 deletion test/lpt-locust/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM locustio/locust:2.16.1
RUN pip3 install kubernetes
COPY src /locust-config
RUN pip3 install -r /locust-config/requirements.txt
ENV LOCUST_LOCUSTFILE /locust-config/locustfile.py
39 changes: 0 additions & 39 deletions test/lpt-locust/requirements.txt

This file was deleted.

3 changes: 3 additions & 0 deletions test/lpt-locust/src/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
locust
oauthlib
requests-oauthlib

0 comments on commit ede380f

Please sign in to comment.