A command for one off containers

Open
#64 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
30/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Tech stack
docker, kubernetes, rust
Domain
cli, devops

Research direction

Start with the existing CLI command-dispatch entry point and Kubernetes execution path; the issue names the proposed one-off command and the kubectl run --rm -i --tty invocation but no files or tests. Done means selecting a pod, reusing its Docker image and namespace, opening an interactive shell, and cleaning up the temporary container.

Written by the indexing model from the issue text.

Description

Click is an incredible tool already! I use it so often and it saves me a lot of time.

Sometimes, I'm in the situation that I want to go into a container that already stopped (not because of the files that were created in there, but because of the environment). The way I do it right now is 1.) check the Docker image that was being used with click 2.) execute the following command:

kubectl run one-off-shell -n <...> --rm -i --tty --image <...> -- bash

Would be cool to be just in click, select the pod and run one-off:

[clust] [default] [awesome-123-r462t] > one-off
root@one-off-shell-5cfd8f874f-pttcx:/home/root# 
...

What do you think about this feature?

I would be keen to try a PR, even though I'm pretty new to Rust :)

Dominant language
Rust
Stars
1.5k
Forks
93
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from databricks/click

All issues in databricks/click

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.