mirror of
https://github.com/solidtime-io/solidtime.git
synced 2026-10-13 16:23:18 +01:00
Production runs as long-lived Octane workers in FrankenPHP worker mode, so state leaking between requests (static properties, singletons, ...) is a real risk that php artisan serve cannot reproduce. Base the scanner image on the production FrankenPHP image, add start-octane.sh (single worker, production Caddyfile) and describe this class of issue in the threat model. Bundle Gotenberg (Chromium only) so the PDF export tests pass offline and PDF rendering can be exercised.
8 lines
342 B
Bash
Executable File
8 lines
342 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Start the local PostgreSQL server used by the test suite and the app (see .oss-scanner/Dockerfile).
|
|
set -euo pipefail
|
|
|
|
pg_ctlcluster 17 main start 2>/dev/null || true
|
|
until pg_isready -h 127.0.0.1 -p 5432 -q; do sleep 0.5; done
|
|
echo "PostgreSQL is running on 127.0.0.1:5432 (user root, password root, database laravel)"
|