From 0a093e464b884565148eb71dda6999de0c956b17 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Socho=C5=84?= Date: Wed, 2 Feb 2022 11:10:40 +0100 Subject: [PATCH] Update docs with example using ct with local repo (#389) --- 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