From 10c2d7b1d7e47dfb3826fb94ff1d4f7afc92af05 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 --- 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