-
Notifications
You must be signed in to change notification settings - Fork 1
Description
Description
The Platform container configuration has hardcoded assumptions that prevent compatibility with alternative Platform images like flowai:v0.0.2. Three issues were identified:
-
Health check uses
wget- The flowai image includescurlbut notwget, causing Docker to mark the container as "unhealthy" even though the platform is running correctly. -
Hardcoded UID 1001 - The
platform-initcontainer sets volume ownership to1001:1001, but flowai runs as UID1000. This causes "Log directory is not writable" errors. -
Gateway Manager API requires
gateway_name- The flowai API requires agateway_namefield when creating gateway clusters, which the standard Itential API does not require.
Reproduction Steps
- Set
PLATFORM_IMAGE=flowai:v0.0.2in.env - Run
make setup - Observe:
- Container marked "unhealthy" (health check fails)
- Platform logs show "Log directory /var/log/itential is not a writable location"
- Gateway Manager cluster creation fails with "Missing gateway_name in parameter"
Expected Behavior
The dev stack should be configurable to work with alternative Platform images that have different:
- Available CLI tools (curl vs wget)
- Container UIDs
- API requirements
Environment
- OS: Linux
- Version: Docker Compose with profiles
- Platform Image: flowai:v0.0.2 (UID 1000, has curl, different API)
Solution
- Change health check from
wgettocurl(more universally available) - Make platform-init UID/GID configurable via
PLATFORM_UIDandPLATFORM_GIDenv vars (defaults to 1001 for standard images) - Add
gateway_namefield to Gateway Manager API call (required by some Platform versions)
Checklist
- I have checked existing issues to avoid duplicates
- I have provided a clear description of the issue
- I have included steps to reproduce (if applicable)
- I have included relevant environment details