thin-edge / tedge-container-bundle

thin-edge.io. s6-overlay container setup to run all the components in a single container
0 stars 1 forks source link

feat: add container log file handler #31

Closed reubenmiller closed 1 month ago

reubenmiller commented 1 month ago

Support collecting container log files via the container log file type.

A custom log_upload workflow is used to check if the log file type is file based, or command based. An additional workflow for log_upload_container is provided to handle the logic about fetching the logs for the given container (specified via the Filter By Text UI entry). This allows the user to request log files from ANY running container.

If the Filter By Text is left empty by the user, then tedge container logs will be returned.

github-actions[bot] commented 1 month ago

Robot Results

:white_check_mark: Passed :x: Failed :next_track_button: Skipped Total Pass % :stopwatch: Duration
12 0 1 12 100 1m24.380367999s

Passed Tests

Name :stopwatch: Duration Suite
Grace period to allow container to startup 5.002 s Operations
Get Logfile Request 2.496 s Operations
Get Configuration File 4.976 s Operations
Execute Shell Command 2.494 s Operations
Install application using docker compose 22.262 s Operations
Get Container Logs 2.491 s Operations
Trigger self update via local command 12.114 s Self-Update
Self update should only update if there is a new image 4.642 s Self-Update
Self update using software update operation 24.750 s Self-Update
Cloud Connection is Online 0.172 s Telemetry
Service status 0.325 s Telemetry
Sends measurements 2.656 s Telemetry