Skip to content

Commit 6ba1077

Browse files
authored
Merge pull request argoproj#4 from dthomson25/add-swagger
Add install commands required for swagger
2 parents b2ec097 + df9a5bd commit 6ba1077

File tree

1 file changed

+18
-2
lines changed

1 file changed

+18
-2
lines changed

CONTRIBUTING.md

+18-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11
## Requirements
2-
Make sure you have following tools installed [golang](https://golang.org/), [dep](https://github.com/golang/dep), [protobuf](https://developers.google.com/protocol-buffers/),
2+
Make sure you have following tools installed [docker](https://docs.docker.com/install/#supported-platforms), [golang](https://golang.org/), [dep](https://github.com/golang/dep), [protobuf](https://developers.google.com/protocol-buffers/), [ksonnet](https://github.com/ksonnet/ksonnet#install), [go-swagger](https://github.com/go-swagger/go-swagger/blob/master/docs/install.md), and [jq](https://stedolan.github.io/jq/)
33
[kubectl](https://kubernetes.io/docs/tasks/tools/install-kubectl/).
44

55
```
6-
$ brew install go dep protobuf kubectl
6+
$ brew tap go-swagger/go-swagger
7+
$ brew install go dep protobuf kubectl ksonnet/tap/ks jq go-swagger
78
$ go get -u github.com/golang/protobuf/protoc-gen-go
9+
$ go get -u github.com/go-swagger/go-swagger/cmd/swagger
10+
$ go get -u github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway
11+
$ go get -u github.com/grpc-ecosystem/grpc-gateway/protoc-gen-swagger
812
```
913

1014
Nice to have [gometalinter](https://github.com/alecthomas/gometalinter) and [goreman](https://github.com/mattn/goreman):
@@ -20,6 +24,11 @@ $ go get -u github.com/argoproj/argo-cd
2024
$ dep ensure
2125
$ make
2226
```
27+
NOTE: The make command can take a while, and we recommend building the specific component you are working on
28+
* `make cli` - Make the argocd CLI tool
29+
* `make server` - Make the API/repo/controller server
30+
* `make codegen` - Builds protobuf and swagger files
31+
* `make argocd-util` - Make the administrator's utility, used for certain tasks such as import/export
2332

2433
## Running locally
2534

@@ -38,3 +47,10 @@ $ kubectl create -f install/manifests/01_application-crd.yaml
3847
```
3948
$ goreman start
4049
```
50+
51+
## Troubleshooting
52+
* Ensure argocd is installed: ./dist/argocd install
53+
* Ensure you're logged in: ./dist/argocd login --username admin --password <whatever password you set at install> localhost:8080
54+
* Ensure that roles are configured: kubectl create -f install/manifests/02c_argocd-rbac-cm.yaml
55+
* Ensure minikube is running: minikube stop && minikube start
56+
* Ensure Argo CD is aware of minikube: ./dist/argocd cluster add minikube

0 commit comments

Comments
 (0)