Skip to content

Commit fe9191e

Browse files
committed
Update docs with example using ct with local repo
Signed-off-by: Michał Sochoń <[email protected]>
1 parent a1f103a commit fe9191e

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

README.md

+17
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,25 @@ The following example show various way of configuring the same thing:
7979

8080
#### CLI
8181

82+
#### Remote repo
83+
84+
With remote repo:
85+
8286
ct install --remote upstream --chart-dirs stable,incubator --build-id pr-42
8387

88+
#### Local repo
89+
90+
If you have a chart in current directory and ct installed on the host then you can run:
91+
92+
ct install --chart-dirs . --charts .
93+
94+
With docker it works with:
95+
96+
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 .
97+
98+
Notice that `workdir` param is important and must be the same as volume mounted.
99+
100+
84101
#### Environment Variables
85102

86103
export CT_REMOTE=upstream

0 commit comments

Comments
 (0)