Provide a Docker container with kubectl-slice inside
Some users have reached out asking for this app to be delivered via a container for multiple reasons:
- Ability to plug it as part of a multi-stage build where they can extract the binary to another step
- Ability to "run it without downloading it", just via docker.
The first option makes sense. It could even make sense to actually provide a Docker image with bash in it so people can run scripts and then rather than copying the binary in itself, they can simply run the action, grab the output, and pass it to another layer.
The 2nd option might be misleading: you're still downloading the app (alongside with an entire container for that matter). This could be helpful though in cases where a quick run "without installing" can be as simple as:
docker run -v $(pwd):/data ghcr.io/patrickdappollonio/kubectl-slice -f /data/example.yaml --stdout
Leaving this issue open to gather some feedback. If you're a user of the tool, and this might help you, I would love to know more, gauge sentiment and ship this!
this would be helpful for my company
spasiba