Skip to content

fix: The web service in docker-compose.yml had no healthcheck, so#2200

Open
singlaamitesh wants to merge 1 commit into
aboutcode-org:mainfrom
singlaamitesh:fix/1842-scancode-io-1842
Open

fix: The web service in docker-compose.yml had no healthcheck, so#2200
singlaamitesh wants to merge 1 commit into
aboutcode-org:mainfrom
singlaamitesh:fix/1842-scancode-io-1842

Conversation

@singlaamitesh

Copy link
Copy Markdown

Fixes #1842

Summary

The web service in docker-compose.yml had no healthcheck, so docker compose up -d --wait only waited for the container to be running, not for its migrate/collectstatic steps to finish, letting a subsequent docker compose run --rm web scanpipe ... race ahead of the DB schema (issue #1842's 'relation scanpipe_project does not exist'). Added a wait-for-it-based healthcheck to web (with a port-8001 override in docker-compose.dev.yml) so --wait truly waits for readiness, and added a regression test asserting the web service defines a healthcheck.

Changes

  • docker-compose.yml
  • docker-compose.dev.yml
  • scanpipe/tests/test_scancodeio.py

How this was tested

Ran the affected tests locally.

Copilot AI review requested due to automatic review settings July 17, 2026 04:40

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Can't get the project to work

2 participants