fix(npu): expose advisory gateway on docker bridge
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
# OpenVINO NPU advisory gateway
|
||||
|
||||
Local-only bounded wrapper for the classifier, GenAI worker, and doc/image triage sidecars.
|
||||
Bounded Docker-bridge wrapper for the classifier, GenAI worker, and doc/image triage sidecars.
|
||||
|
||||
- HTTP bind: `127.0.0.1:18830` only; Docker/n8n bridge access is intentionally not enabled by default
|
||||
- HTTP bind: `172.19.0.1:18830` for `n8n-agent` on the `swarm_default` Docker bridge
|
||||
- Service: `openvino-advisory-gateway.service`
|
||||
- Mode: advisory/shadow/draft only
|
||||
- Metadata log: `~/.local/state/openvino-advisory-gateway/events.sqlite`
|
||||
@@ -36,7 +36,7 @@ POST /v1/advisory/triage
|
||||
### Classifier shadow call
|
||||
|
||||
```bash
|
||||
curl -fsS http://127.0.0.1:18830/v1/advisory/classify \
|
||||
curl -fsS http://172.19.0.1:18830/v1/advisory/classify \
|
||||
-H 'Content-Type: application/json' \
|
||||
-d '{"trace_id":"smoke","text":"Urgent: inspect service health and systemd status."}' | jq .
|
||||
```
|
||||
@@ -46,7 +46,7 @@ curl -fsS http://127.0.0.1:18830/v1/advisory/classify \
|
||||
Allowed jobs: `title`, `summary`, `notification`, `memory_candidate`.
|
||||
|
||||
```bash
|
||||
curl -fsS http://127.0.0.1:18830/v1/advisory/generate \
|
||||
curl -fsS http://172.19.0.1:18830/v1/advisory/generate \
|
||||
-H 'Content-Type: application/json' \
|
||||
-d '{"job":"title","input":"Summarize a local health check.","max_new_tokens":24}' | jq .
|
||||
```
|
||||
@@ -54,7 +54,7 @@ curl -fsS http://127.0.0.1:18830/v1/advisory/generate \
|
||||
### Explicit-file doc/image triage
|
||||
|
||||
```bash
|
||||
curl -fsS http://127.0.0.1:18830/v1/advisory/triage \
|
||||
curl -fsS http://172.19.0.1:18830/v1/advisory/triage \
|
||||
-H 'Content-Type: application/json' \
|
||||
-d '{"path":"/home/will/lab/swarm/openvino-doc-image-triage-npu/samples/synthetic_invoice.png","allowed_roots":["/home/will/lab/swarm/openvino-doc-image-triage-npu"]}' | jq .
|
||||
```
|
||||
@@ -75,7 +75,13 @@ systemctl --user enable --now openvino-advisory-gateway.service
|
||||
systemctl --user status openvino-advisory-gateway.service --no-pager
|
||||
```
|
||||
|
||||
`--allowed-root` may be repeated in the systemd unit when additional non-private fixture/review directories are approved. Keep the service bound to `127.0.0.1` unless Will explicitly approves a Docker-bridge exposure plan.
|
||||
`--allowed-root` may be repeated in the systemd unit when additional non-private fixture/review directories are approved. Docker bridge exposure must use `--allow-docker-bridge` and the approved bridge IP `172.19.0.1`; the service still refuses wildcard binds such as `0.0.0.0`.
|
||||
|
||||
From `n8n-agent`, verify bridge reachability with:
|
||||
|
||||
```bash
|
||||
docker exec n8n-agent wget -qO- -T 8 http://172.19.0.1:18830/healthz
|
||||
```
|
||||
|
||||
## Tests
|
||||
|
||||
|
||||
Reference in New Issue
Block a user