From df9a5bdc992a4c0e1eb50b7b9099cb7218bb1364 Mon Sep 17 00:00:00 2001 From: dthomson25 Date: Thu, 14 Jun 2018 00:36:38 -0700 Subject: [PATCH] Add install commands for swagger --- CONTRIBUTING.md | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 18d73935450d9..2f3e83b54dd2e 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -1,10 +1,14 @@ ## Requirements -Make sure you have following tools installed [golang](https://golang.org/), [dep](https://github.com/golang/dep), [protobuf](https://developers.google.com/protocol-buffers/), +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/) [kubectl](https://kubernetes.io/docs/tasks/tools/install-kubectl/). ``` -$ brew install go dep protobuf kubectl +$ brew tap go-swagger/go-swagger +$ brew install go dep protobuf kubectl ksonnet/tap/ks jq go-swagger $ go get -u github.com/golang/protobuf/protoc-gen-go +$ go get -u github.com/go-swagger/go-swagger/cmd/swagger +$ go get -u github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway +$ go get -u github.com/grpc-ecosystem/grpc-gateway/protoc-gen-swagger ``` 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 $ dep ensure $ make ``` +NOTE: The make command can take a while, and we recommend building the specific component you are working on +* `make cli` - Make the argocd CLI tool +* `make server` - Make the API/repo/controller server +* `make codegen` - Builds protobuf and swagger files +* `make argocd-util` - Make the administrator's utility, used for certain tasks such as import/export ## Running locally @@ -38,3 +47,10 @@ $ kubectl create -f install/manifests/01_application-crd.yaml ``` $ goreman start ``` + +## Troubleshooting +* Ensure argocd is installed: ./dist/argocd install +* Ensure you're logged in: ./dist/argocd login --username admin --password localhost:8080 +* Ensure that roles are configured: kubectl create -f install/manifests/02c_argocd-rbac-cm.yaml +* Ensure minikube is running: minikube stop && minikube start +* Ensure Argo CD is aware of minikube: ./dist/argocd cluster add minikube