You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+44Lines changed: 44 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -75,6 +75,50 @@ docker compose stop bitcoin
75
75
76
76
You can check the bootstrap process with the `hc.sh` script. `./hc <your-provided-password>`
77
77
78
+
# Debugging
79
+
80
+
Distroless images do not contain a shell to run commands for debugging. Sidecar debug containers, attached to the main container through shared namespaces, need to be used.
# show contents of PID 1 (main container process) root directory
103
+
ls -lha /proc/1/root/
104
+
105
+
# show contents of bitcoin node directory
106
+
ls -lha /proc/1/root/opt/bitcoin/
107
+
```
108
+
109
+
Add tools by specifying them in `./images/debug/Dockerfile` or use your own debugging image.
110
+
111
+
## Releasing debug image with Github Actions
112
+
113
+
Commits to main with changes to `images/debug/**` context will automatically trigger a rebuild and push of image, with tag sourced from `ARG VERSION=<semver>` (suffixes and prefix 'v' allowed) in Dockerfile.
114
+
115
+
For development purposes, you can also trigger the pipeline with a custom tag like so (the commit still needs to have made changes to `images/debug/**` context):
0 commit comments