We are running a GitHub workflow, and are using GitHub Action service container for spinning up Structurizr Lite and then exporting diagrams as PNG with Puppeteer. But unfortunately exporting the diagrams fails on waiting for some Structurizr functions to be ready in the DOM.
We have digged a bit and found that it is likely to happen because the service container is not really ready. So it would be brilliant if the Structurizr Lite docker image had a health command, so we can add health-check for the service-container. For Postgres for example, one can add below options for the service container, so it waits until Postgres is ready before marking container as healthy:
I've added a /health endpoint that returns OK (and HTTP 200), which you should be able to use in conjunction with curl for your health check (e.g. https://stackoverflow.com/a/75520196).
Description
We are running a GitHub workflow, and are using GitHub Action service container for spinning up Structurizr Lite and then exporting diagrams as PNG with Puppeteer. But unfortunately exporting the diagrams fails on waiting for some Structurizr functions to be ready in the DOM.
We have digged a bit and found that it is likely to happen because the service container is not really ready. So it would be brilliant if the Structurizr Lite docker image had a health command, so we can add health-check for the service-container. For Postgres for example, one can add below options for the service container, so it waits until Postgres is ready before marking container as healthy:
Example GitHub job where the last step
node export-diagrams.js 'http://localhost:8080/workspace/diagrams' png
fails.Priority
I have no budget and there's no rush, please add this feature for free
More information
No response