- Correct test cases to ensure proper relay IDs are switched. - Add robust local IP resolution for relay-device bindings, including caching and inventory backfill. - Introduce fast-path options for relay status and switch dispatch. - Validate PHP extensions (`curl`, `sqlite3`) in edge agent images.
12 lines
398 B
Docker
12 lines
398 B
Docker
FROM php:8.2-cli
|
|
|
|
WORKDIR /opt/truckwash-edge-agent
|
|
|
|
RUN set -eux; \
|
|
php -r 'foreach (["curl", "sqlite3"] as $extension) { if (!extension_loaded($extension)) { fwrite(STDERR, "Missing PHP extension: {$extension}\n"); exit(1); } }'
|
|
|
|
COPY services/nginx/app/resources/edge-gateway-agent/ ./
|
|
|
|
ENTRYPOINT ["php", "/opt/truckwash-edge-agent/agent.php"]
|
|
CMD ["--config", "/config/test-gateway.json"]
|