From fe9191ef286492869a8e5b6bfb7c2d27e4c4d654 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Socho=C5=84?= Date: Tue, 1 Feb 2022 21:08:11 +0100 Subject: [PATCH] Update docs with example using ct with local repo MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michał Sochoń --- README.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/README.md b/README.md index 4bbbb2c7..dc5577d1 100644 --- a/README.md +++ b/README.md @@ -79,8 +79,25 @@ The following example show various way of configuring the same thing: #### CLI +#### Remote repo + +With remote repo: + ct install --remote upstream --chart-dirs stable,incubator --build-id pr-42 +#### Local repo + +If you have a chart in current directory and ct installed on the host then you can run: + + ct install --chart-dirs . --charts . + +With docker it works with: + + docker run -it --workdir=/data --volume ~/.kube/config:/root/.kube/config:ro --volume $(pwd):/data quay.io/helmpack/chart-testing:v3.5.0 ct install --chart-dirs . --charts . + +Notice that `workdir` param is important and must be the same as volume mounted. + + #### Environment Variables export CT_REMOTE=upstream