Inspect deployment: show processes and listening sockets
This commit is contained in:
1 parent
50121a390f
commit
0070b82414
1 file changed
+10
@@ -50,6 +50,16 @@ jobs:
|
||||
echo "== last 120 log lines of $C (stack frames collapsed) =="
|
||||
docker logs --tail 120 "$C" 2>&1 | grep -v -E '^[[:space:]]+at ' || true
|
||||
|
||||
- name: Processes inside the container
|
||||
run: |
|
||||
set -eu
|
||||
C="${{ inputs.container || 'Deepseek' }}"
|
||||
echo "== host clock: $(date -u +%Y-%m-%dT%H:%M:%SZ) =="
|
||||
echo "== processes (is the entrypoint still repairing ownership, or is dsh up?) =="
|
||||
docker top "$C" -o pid,etime,args 2>&1 || echo "(not running)"
|
||||
echo "== listening sockets =="
|
||||
docker exec "$C" sh -c 'cat /proc/net/tcp /proc/net/tcp6 2>/dev/null | awk "NR>1 && \$4==\"0A\" {print \$2}"' 2>/dev/null || echo "(exec failed)"
|
||||
|
||||
- name: Profile composition in the state volume
|
||||
run: |
|
||||
set -eu
|
||||
|
||||
Reference in new issue
Block a user