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 b97dc27 commit 6ea1ad2
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,11 +18,15 @@ 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

# Used in LHCI
COPY entrypoint.sh /

# Copy project
COPY ./app /app/

Expand Down
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 6ea1ad2

Please sign in to comment.