Skip to content

Commit 6b2a2a4

Browse files
committed
add debug script
1 parent a5259d1 commit 6b2a2a4

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

scripts/ci-debug.sh

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
#!/bin/bash
2+
3+
echo "==== DOCKER CONTAINER STATUS ===="
4+
docker ps -a
5+
6+
echo -e "\n==== COUCHDB CONTAINER LOGS ===="
7+
docker logs skuilder-test-couch
8+
9+
echo -e "\n==== NETWORK INTERFACES ===="
10+
ip addr
11+
12+
echo -e "\n==== LISTENING PORTS ===="
13+
netstat -tulpn || ss -tulpn
14+
15+
echo -e "\n==== COUCHDB CONNECTION TEST ===="
16+
curl -v http://localhost:5984 || echo "Curl failed with status $?"
17+
18+
echo -e "\n==== TESTING DOCKER INTERNAL NETWORK ===="
19+
docker exec skuilder-test-couch curl -v http://localhost:5984 || echo "Internal curl failed with status $?"
20+
21+
echo -e "\n==== COUCHDB CONFIGURATION ===="
22+
docker exec skuilder-test-couch cat /opt/couchdb/etc/local.ini || echo "Config check failed"
23+
24+
echo -e "\n==== ENV VARIABLES ===="
25+
printenv | grep -i couch

0 commit comments

Comments
 (0)