diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..4bd2bf8 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,8 @@ +FROM rust:1.23.0 + +WORKDIR /usr/src/myapp +COPY . . + +RUN cargo install + +CMD ["click"] diff --git a/README.md b/README.md index 483b6cb..b64287f 100644 --- a/README.md +++ b/README.md @@ -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). @@ -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` + # Prompt The order of the prompt is \[context\]\[namespace\]\[object\].