From 7b7d23ebe92ed1457b021ab23e95d550ca5e5cfd Mon Sep 17 00:00:00 2001 From: "andreu.belmonte" Date: Wed, 28 Mar 2018 12:47:00 +0200 Subject: [PATCH 1/2] Add Dockerfile --- Dockerfile | 8 ++++++++ README.md | 8 ++++++++ 2 files changed, 16 insertions(+) create mode 100644 Dockerfile 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..9402391 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 run --rm -it -v $HOME/.kube/:/root/.kube/ 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\]. From d9d7b377b914ea7d5685d55cad2eb902f88881b5 Mon Sep 17 00:00:00 2001 From: "andreu.belmonte" Date: Wed, 28 Mar 2018 12:47:00 +0200 Subject: [PATCH 2/2] Add Dockerfile --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 9402391..b64287f 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,7 @@ Alternately, to build it yourself, clone the click repository and run `cargo bui ## Docker build -`docker run --rm -it -v $HOME/.kube/:/root/.kube/ click` +`docker build . -t click` # Running If you used `cargo install`, you can just run `click` (assuming `~/.cargo/bin` is in your PATH).