Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Dockerfile #32

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
FROM rust:1.23.0

WORKDIR /usr/src/myapp
COPY . .

RUN cargo install

CMD ["click"]
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ Click is on crates.io, so you can just run `cargo install` to install it.

Alternately, to build it yourself, clone the click repository and run `cargo build`.

## Docker build

`docker build . -t click`

# Running
If you used `cargo install`, you can just run `click` (assuming `~/.cargo/bin` is in your PATH).

Expand All @@ -34,6 +38,10 @@ can change this with the --config option.

Once you're in the REPL, try typing `help` to see what you can do.

## Docker

`docker run --rm -it -v $HOME/.kube/:/root/.kube/ click`
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you add a note that if any of your certificates are stored outside the .kube dir you'll need to bind that in as well?

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's also the issue of kubectl configurations that use other commands to gather auth info (e.g. gcloud for GKE clusters).


# Prompt
The order of the prompt is \[context\]\[namespace\]\[object\].

Expand Down