{"id":31588831,"url":"https://github.com/mchmarny/debug-tools","last_synced_at":"2026-02-15T03:02:09.469Z","repository":{"id":303820712,"uuid":"1016715328","full_name":"mchmarny/debug-tools","owner":"mchmarny","description":"Container image with common network, storage, kernel, and k8s debug tools.","archived":false,"fork":false,"pushed_at":"2025-09-30T09:22:16.000Z","size":1074,"stargazers_count":0,"open_issues_count":4,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-10-06T02:34:00.634Z","etag":null,"topics":["cluster","debug","gpu","kernel","kubernetes","network","storage"],"latest_commit_sha":null,"homepage":"","language":"Makefile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mchmarny.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-07-09T12:19:37.000Z","updated_at":"2025-07-11T19:29:05.000Z","dependencies_parsed_at":"2025-07-09T16:38:58.594Z","dependency_job_id":null,"html_url":"https://github.com/mchmarny/debug-tools","commit_stats":null,"previous_names":["mchmarny/debug-tools"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mchmarny/debug-tools","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mchmarny%2Fdebug-tools","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mchmarny%2Fdebug-tools/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mchmarny%2Fdebug-tools/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mchmarny%2Fdebug-tools/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mchmarny","download_url":"https://codeload.github.com/mchmarny/debug-tools/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mchmarny%2Fdebug-tools/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29466925,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-15T01:01:38.065Z","status":"online","status_checked_at":"2026-02-15T02:00:07.449Z","response_time":118,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cluster","debug","gpu","kernel","kubernetes","network","storage"],"created_at":"2025-10-06T02:25:38.524Z","updated_at":"2026-02-15T03:02:09.423Z","avatar_url":"https://github.com/mchmarny.png","language":"Makefile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# debug-tools\n\nContainer image with common network, storage, kernel, and k8s debug tools.\n\n\u003e This image is rebuilt weekly, see [verification](#verification) section for SBOM and SLSA provenance attestation.\n\n## usage \n\nTo run this image in your cluster and shell onto a specific node (adjust or replace node name and tolerations as needed):\n\n```shell\nkubectl run -it --rm debug \\\n  --image=ghcr.io/mchmarny/debug-tools:latest \\\n  --restart=Never \\\n  --overrides='{\n    \"apiVersion\": \"v1\",\n    \"spec\": {\n      \"nodeName\": \"ip-10-0-143-162.ec2.internal\",\n      \"tolerations\": [{ \"key\": \"dedicated\", \"value\": \"user-workload\" } ]\n    }\n  }' \\\n  -- bash\n```\n\n\u003e Note: This image runs as root to support system-level debugging (network, storage, kernel).\n\n## tools\n\n### networking\n- [bind-tools](https://wiki.alpinelinux.org/wiki/Bind) – DNS utilities like `dig`, `nslookup`\n- [curl](https://curl.se/docs/) – Transfer data with URLs\n- [dhcping](https://github.com/troglobit/dhcping) – Ping DHCP servers\n- [ethtool](https://man7.org/linux/man-pages/man8/ethtool.8.html) – Display/change NIC settings\n- [fping](https://fping.org/) – Ping multiple hosts\n- [iftop](http://www.ex-parrot.com/pdw/iftop/) – Display bandwidth usage\n- [iperf3](https://iperf.fr/) – Network performance testing\n- [iputils](https://wiki.linuxfoundation.org/networking/iputils) – Tools like `ping`, `traceroute`\n- [mtr](https://github.com/traviscross/mtr) – `traceroute` + `ping` combined\n- [netcat-openbsd](https://man.openbsd.org/nc.1) – TCP/UDP debugging tool\n- [nmap](https://nmap.org/) – Network scanner\n- [socat](http://www.dest-unreach.org/socat/) – Bidirectional data relay\n- [tcpdump](https://www.tcpdump.org/) – Capture network traffic\n- [tshark](https://tshark.dev/) – CLI packet capture\n- [httpie](https://httpie.io/) – User-friendly HTTP client\n\n### storage\n- [file](https://man7.org/linux/man-pages/man1/file.1.html) – Identify file types\n- [util-linux](https://en.wikipedia.org/wiki/Util-linux) – Disk tools (`lsblk`, `mount`, etc.)\n- [lsof](https://man7.org/linux/man-pages/man8/lsof.8.html) – List open files\n- [iotop](https://linux.die.net/man/1/iotop) – Monitor disk I/O\n- [hdparm](https://linux.die.net/man/8/hdparm) – Disk performance tuning\n- [smartmontools](https://www.smartmontools.org/) – Disk health monitoring\n- [ncdu](https://dev.yorhel.nl/ncdu) – Disk usage analyzer\n- [tar](https://www.gnu.org/software/tar/) – Archiving utility\n\n### kernel/system\n- [strace](https://strace.io/) – Trace system calls\n- [procps](https://gitlab.com/procps-ng/procps) – Utilities like `ps`, `top`, `vmstat`\n- [sysstat](https://github.com/sysstat/sysstat) – Tools like `iostat`, `mpstat`\n- [htop](https://htop.dev/) – Interactive process viewer\n- [lshw](https://ezix.org/project/wiki/HardwareLiSter) – Hardware inventory\n- [dmidecode](https://linux.die.net/man/8/dmidecode) – BIOS/system info\n- [numactl](https://man7.org/linux/man-pages/man8/numactl.8.html) – NUMA tuning\n\n### kubernetes/cloud-native\n- [jq](https://stedolan.github.io/jq/) – JSON processor\n- [yq](https://mikefarah.gitbook.io/yq/) – YAML processor\n- [openssh-client](https://www.openssh.com/) – SSH client\n- [kubectl](https://kubernetes.io/docs/reference/kubectl/) – Kubernetes CLI\n- [helm](https://helm.sh/) – Kubernetes package manager\n- [k9s](https://k9scli.io/) – Kubernetes TUI\n- [cosign](https://docs.sigstore.dev/cosign/overview) – Container signing/verification\n- [crane](https://github.com/google/go-containerregistry/tree/main/cmd/crane) – OCI image operations\n\n### amd64-only\n- [dstat](https://github.com/dagwieers/dstat) – Resource statistics\n- [stern](https://github.com/stern/stern) – Tail logs from multiple pods\n- [nvidia-container-toolkit](https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/overview.html) – NVIDIA GPU containers\n- [nvidia-smi](https://developer.nvidia.com/nvidia-system-management-interface) – GPU monitoring tool\n- [nvtop](https://github.com/Syllo/nvtop) – Top-like GPU monitoring\n\n## verification\n\nThis image includes [SBOM](https://www.cisa.gov/sbom) in [SPDX v2.3](https://spdx.github.io/spdx-spec/v2.3/) and [SLSA provenance attestation](https://slsa.dev/spec/v1.0/provenance) embedded in the container itself to enable you to verify that it was:\n\n* Built in a trusted GitHub Actions workflow\n* Free from tampering after the build\n* Pushed to the intended registry by the owner of this repository\n\n\u003e Note, requires [crane](https://github.com/google/go-containerregistry/tree/main/cmd/crane) and [jq](https://jqlang.github.io/jq/)\n\nStart by capturing the digest of the image: \n\n```shell\nexport IMAGE=$(crane digest --full-ref ghcr.io/mchmarny/debug-tools:latest)\n```\n\nInspect the image manifest:\n\n```shell\ncrane manifest \"$IMAGE\" | jq .\n```\n\nThe output will have multiple manifests. For each supported architecture there will be manifests for both the image itself and its attestation:\n\n```json\n{\n  \"schemaVersion\": 2,\n  \"mediaType\": \"application/vnd.oci.image.index.v1+json\",\n  \"manifests\": [\n    {\n      \"mediaType\": \"application/vnd.oci.image.manifest.v1+json\",\n      \"digest\": \"sha256:4ca77c3df87bc41791220d1760dd1ec2cb3629fd64f86e16d98223dde5bd7b88\",\n      \"size\": 1596,\n      \"platform\": {\n        \"architecture\": \"amd64\",\n        \"os\": \"linux\"\n      }\n    },\n    {\n      \"mediaType\": \"application/vnd.oci.image.manifest.v1+json\",\n      \"digest\": \"sha256:775966c9516a426a1c55a37a96554bc262deb01550986cd11cde3c2bd5e432a0\",\n      \"size\": 1596,\n      \"platform\": {\n        \"architecture\": \"arm64\",\n        \"os\": \"linux\"\n      }\n    },\n    {\n      \"mediaType\": \"application/vnd.oci.image.manifest.v1+json\",\n      \"digest\": \"sha256:148926e1cbb3b259010ab29bebe15fd11c171bcdfd33336fcb76d87dafb42a31\",\n      \"size\": 841,\n      \"annotations\": {\n        \"vnd.docker.reference.digest\": \"sha256:4ca77c3df87bc41791220d1760dd1ec2cb3629fd64f86e16d98223dde5bd7b88\",\n        \"vnd.docker.reference.type\": \"attestation-manifest\"\n      },\n      \"platform\": {\n        \"architecture\": \"unknown\",\n        \"os\": \"unknown\"\n      }\n    },\n    {\n      \"mediaType\": \"application/vnd.oci.image.manifest.v1+json\",\n      \"digest\": \"sha256:49fc792fe19f8e694bce1579f8fab6697294455f878a1b095487093c99b3884c\",\n      \"size\": 841,\n      \"annotations\": {\n        \"vnd.docker.reference.digest\": \"sha256:775966c9516a426a1c55a37a96554bc262deb01550986cd11cde3c2bd5e432a0\",\n        \"vnd.docker.reference.type\": \"attestation-manifest\"\n      },\n      \"platform\": {\n        \"architecture\": \"unknown\",\n        \"os\": \"unknown\"\n      }\n    }\n  ],\n  \"annotations\": {\n    \"org.opencontainers.image.created\": \"2025-07-11T11:54:59.934Z\",\n    \"org.opencontainers.image.description\": \"Container image with common network, storage, kernel, and k8s debug tools.\",\n    \"org.opencontainers.image.licenses\": \"Apache-2.0\",\n    \"org.opencontainers.image.revision\": \"6d77e40b7160fda17267414e5e48cdbd32de9a0e\",\n    \"org.opencontainers.image.source\": \"https://github.com/mchmarny/debug-tools\",\n    \"org.opencontainers.image.title\": \"debug-tools\",\n    \"org.opencontainers.image.url\": \"https://github.com/mchmarny/debug-tools\",\n    \"org.opencontainers.image.version\": \"main\"\n  }\n}\n```\n\nChoose the architecture you want to verify attestation for (e.g. `arm64`) and download its manifest:\n\n```shell\ncrane manifest ghcr.io/mchmarny/debug-tools@sha256:49fc792fe19f8e694bce1579f8fab6697294455f878a1b095487093c99b3884c\n```\n\nThis will output something like this: \n\n```json\n{\n  \"schemaVersion\": 2,\n  \"mediaType\": \"application/vnd.oci.image.manifest.v1+json\",\n  \"config\": {\n    \"mediaType\": \"application/vnd.oci.image.config.v1+json\",\n    \"digest\": \"sha256:4da59e7c073c571e70938916bb0460182c72d39d4a5cd6610cf396e2bd48d802\",\n    \"size\": 241\n  },\n  \"layers\": [\n    {\n      \"mediaType\": \"application/vnd.in-toto+json\",\n      \"digest\": \"sha256:618f763df8b0bc534dbc513a32d9563c6b13994fdf6bc7cf686e33356c1b06f6\",\n      \"size\": 7434213,\n      \"annotations\": {\n        \"in-toto.io/predicate-type\": \"https://spdx.dev/Document\"\n      }\n    },\n    {\n      \"mediaType\": \"application/vnd.in-toto+json\",\n      \"digest\": \"sha256:2205730e8243c2f26e8d8b4911af75454fb73c4756804abd03ab4e6178ddaf8e\",\n      \"size\": 11770,\n      \"annotations\": {\n        \"in-toto.io/predicate-type\": \"https://slsa.dev/provenance/v0.2\"\n      }\n    }\n  ]\n}\n```\n\nNow you can download the actual [SBOM](https://www.cisa.gov/sbom) in [SPDX v2.3](https://spdx.github.io/spdx-spec/v2.3/) (using digest for annotations predicate: `https://spdx.dev/Document`) which includes:\n\n* Packages (e.g. `bash`, `curl`, `jq`, etc.)\n* Versions (e.g. `bash:5.2.15`, `curl:8.5.0`, etc.)\n* Licenses (e.g. `GPL-2.0`, `Apache-2.0`, etc.)\n* Source (e.g. `Alpine package repository`)\n* Hashes - SHA256 checksums for individual files\n* Dependencies - Which packages depend on which others\n\n```shell\ncrane blob ghcr.io/mchmarny/debug-tools@sha256:618f763df8b0bc534dbc513a32d9563c6b13994fdf6bc7cf686e33356c1b06f6 \u003e sbom.json\n```\n\nAnd the [SLSA provenance attestation](https://slsa.dev/spec/v1.0/provenance) (using digest for annotations predicate: `https://slsa.dev/provenance/v0.2`) which includes:\n\n* The details of the trusted GitHub Actions workflow where the image was built\n* The exact source repo, commit, and builder information\n* The Dockerfile that was used to build that image\n\n```shell\ncrane blob ghcr.io/mchmarny/debug-tools@sha256:2205730e8243c2f26e8d8b4911af75454fb73c4756804abd03ab4e6178ddaf8e \u003e provenance.json\n```\n\n## disclaimer\n\nThis is my personal project and it does not represent my employer. While I do my best to ensure that everything works, I take no responsibility for issues caused by this code.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmchmarny%2Fdebug-tools","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmchmarny%2Fdebug-tools","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmchmarny%2Fdebug-tools/lists"}