Closed lvenier closed 2 months ago
I just tested, and I see 2 issues:
text/html
when it should be text/plain
or maybe application/octet-stream
Therefore, there is no way of simulating docker logs -f
.
I don't see the second point as blocking for now. The plugin could then implement an API view /containers/{id}/logs/
that proxy the request to the agent and returns the data, so that we could load it in the UI with HTMX and have it autoreload every 5s or so.
Actually, third point. Why is it a PUT request?
Feature to expose container logs though the api. Needed to implement Plugin issue https://github.com/SaaShup/netbox-docker-plugin/issues/98
[X] Add new endpoint in the API [X] Add Ui fetch logs and display
UI example :![image](https://github.com/SaaShup/netbox-docker-agent/assets/17571692/3154b169-a6b0-4877-8624-6f78effd0c4c)