Skip to content

Commit

Permalink
chore(dev): add Makefile command to run Lighthouse CI
Browse files Browse the repository at this point in the history
This will run Lighthouse CI against the current app, with the current data
stored in the DB.
  • Loading branch information
Restioson committed Oct 28, 2024
1 parent 3009a8b commit c1d4e9f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Dockerfile-dev
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,17 @@ RUN <<EOF
set -exo pipefail
apt-get update
apt-get -y upgrade
apt-get install -y --no-install-recommends libmagic1 gettext graphviz graphviz-dev chromium
apt-get install -y --no-install-recommends libmagic1 gettext graphviz graphviz-dev chromium npm
npm install -g @lhci/[email protected]
pip install --upgrade pip
pip install -r requirements-dev.txt
EOF

# Copy project
COPY ./app /app/

# Used in LHCI
COPY entrypoint.sh /

# Run the application
CMD ["python", "manage.py", "runserver", "0.0.0.0:8000"]
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,9 @@ dev-quick-install:
dev-import-documents:
@docker compose run --rm web python manage.py import_documents general/tests/files/

lighthouse:
@docker compose run --rm web lhci autorun

dev_update_vector_search:
@docker compose run --rm web python manage.py dev_update_vector_search

Expand Down

0 comments on commit c1d4e9f

Please sign in to comment.