Skip to content

Instantly share code, notes, and snippets.

@cmwylie19
Last active January 15, 2026 15:48
Show Gist options
  • Select an option

  • Save cmwylie19/a317f07ec3032423b6ca3972d1e38c15 to your computer and use it in GitHub Desktop.

Select an option

Save cmwylie19/a317f07ec3032423b6ca3972d1e38c15 to your computer and use it in GitHub Desktop.
execing into pepr image to debug

Read node modules:

docker run --rm --entrypoint node pepr:dev  -e "console.log(require('fs').readdirSync('node_modules').join('\n'))"

Read a node module

docker run --rm --entrypoint node pepr:dev -e "const fs=require('fs'); const p='node_modules/kubernetes-fluent-client/package.json'; const j=JSON.parse(fs.readFileSync(p,'utf8')); console.log(j.name+'@'+j.version);"

Read afile

docker run --rm --entrypoint node pepr:dev -e "console.log(require('fs').readFileSync('node_modules/kubernetes-fluent-client/dist/fluent/watch.js','utf8'))"

See what images are in k3d

ocker exec -it k3d-uds-server-0 crictl images
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment