Skip to content

Commit 6dc3f20

Browse files
author
olegs-codefresh
committed
Add command to run as docker container
1 parent af7b404 commit 6dc3f20

File tree

1 file changed

+29
-2
lines changed

1 file changed

+29
-2
lines changed

README.md

Lines changed: 29 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,43 @@ Simple tool that will add all your working clusters to you Codefresh account
77
# Run
88
Run `stevedore create --token {Codefresh JWT token}` to add all cluster from your `$HOME/.kube/config`
99

10+
# Run as docker container
11+
```
12+
docker run \
13+
-t \
14+
-e KUBECONFIG=/config \
15+
-e CODEFRESH_TOKEN=${PASTE_CODEFRESH_TOKEN} \
16+
-e GOOGLE_APPLICATION_CREDENTIALS=/.config/gcloud/application_default_credentials.json \
17+
-v ~/.kube/config:/config \
18+
-v ~/.config/gcloud/:/.config/gcloud \
19+
stevedore create
20+
```
21+
GOOGLE_APPLICATION_CREDENTIALS - needed when you have clusters that are hosted in Google
22+
1023
# Find you Codefresh JWT token
1124
* Go to `https://g.codefresh.io/api/`
1225
* Copy the token on the right side
1326

1427
## More functionallity
1528
`stevedore create --token {Codefresh token} --config {another kube config valid file}`
1629

17-
1830
# Todo:
1931
* [ ] Tests!
2032
* [ ] Support interactive mode
2133
* [X] Support verbose/debug mode
22-
* [ ] Support service-accounts from not default namespace
34+
* [ ] Support service-accounts from not default namespace
35+
* [ ] Dry run
36+
37+
38+
# Run as docker container
39+
```
40+
docker run \
41+
-t \
42+
-e KUBECONFIG=/config \
43+
-e CODEFRESH_TOKEN=${PASTE_CODEFRESH_TOKEN} \
44+
-e GOOGLE_APPLICATION_CREDENTIALS=/.config/gcloud/application_default_credentials.json \
45+
-v ~/.kube/config:/config \
46+
-v ~/.config/gcloud/:/.config/gcloud \
47+
stevedore create
48+
```
49+
GOOGLE_APPLICATION_CREDENTIALS - needed when you have clusters that are hosted in Google

0 commit comments

Comments
 (0)