|
1 | | -# How to setup your dev environment |
2 | | -## Pre-requisites: |
| 1 | +# Contributing |
3 | 2 |
|
4 | | -* Dep. `brew install dep` |
5 | | -* Golang |
6 | | -* Yarn. `brew install yarn` |
7 | | -* Docker |
8 | | -* [Kustomize](https://github.com/kubernetes-sigs/kustomize/blob/master/docs/INSTALL.md) |
9 | | -* [protoc](http://google.github.io/proto-lens/installing-protoc.html) `brew install protoc` |
10 | | -* `jq` |
11 | | -* [Swagger codegen](https://swagger.io/docs/open-source-tools/swagger-codegen/) `brew install swagger-codegen` |
12 | | -* Kubernetes Cluster (we recommend Docker for Desktop + K3D, as this will allow you to test RBAC set-up, and is also fast) |
| 3 | +## How To Provide Feedback |
13 | 4 |
|
14 | | -Useful: |
| 5 | +Please [raise an issue in Github](https://github.com/argoproj/argo/issues). |
15 | 6 |
|
16 | | -* For a PS1 prompt showing your current kube context: kube-ps1 to help. `brew install kube-ps1` |
17 | | -* For tailing logs: Stern. `brew install stern` |
| 7 | +## Code of Conduct |
18 | 8 |
|
19 | | -K3D tip: You can set-up K3D to be part of your default kube config as follows |
| 9 | +See [code of conduct](../CODE_OF_CONDUCT.md). |
20 | 10 |
|
21 | | - cp ~/.kube/config ~/.kube/config.bak |
22 | | - cat $(k3d get-kubeconfig --name='k3s-default') >> ~/.kube/config |
| 11 | +## How To Contribute |
23 | 12 |
|
24 | | -To install into the “argo” namespace of your cluster: Argo, MinIO (for saving artifacts and logs) and Postgres (for offloading or archiving): |
| 13 | +We're always looking for contributors. |
25 | 14 |
|
26 | | - make start |
| 15 | +* Documentation - something missing or unclear? Please submit a pull request! |
| 16 | +* Code contribution - investigate a [help wanted issue](https://github.com/argoproj/argo/issues?q=is%3Aopen+is%3Aissue+label%3A%22help+wanted%22+label%3A%22good+first+issue%22), or anything labelled with "good first issue"? |
| 17 | +* Join the #argo-devs channel on [our Slack](https://argoproj.github.io/community/join-slack). |
27 | 18 |
|
28 | | -If you prefer MySQL: |
| 19 | +### Running Locally |
29 | 20 |
|
30 | | - make start DB=mysql |
| 21 | +To run Argo Workflows locally for development: [running locally](running-locally.md). |
31 | 22 |
|
32 | | -To expose the services port forwards: |
| 23 | +### Test Policy |
33 | 24 |
|
34 | | - make pf |
35 | | - |
36 | | -You’ll now have |
37 | | - |
38 | | -* Argo on http://localhost:2746 (see below) |
39 | | -* MinIO http://localhost:9000 (use admin/password) |
40 | | - |
41 | | -Either: |
42 | | - |
43 | | -* Postgres on http://localhost:5432, run `make postgres-cli` to access. |
44 | | -* MySQL on http://localhost:3306, run `make mysql-cli` to access. |
45 | | - |
46 | | -You need the token to access the CLI or UI: |
47 | | - |
48 | | - eval $(make env) |
49 | | - |
50 | | - ./dist/argo auth token |
51 | | - |
52 | | -At this point you’ll have everything you need to use the CLI and UI. |
53 | | - |
54 | | -Tip: If you want to make UI changes without a time-consuming build: |
55 | | - |
56 | | - cd ui |
57 | | - yarn install |
58 | | - yarn start |
59 | | - |
60 | | -The UI will start up on http://localhost:8080. |
61 | | - |
62 | | -If you want to run controller or argo-server in your IDE (e.g. so you can debug it): |
63 | | - |
64 | | -Add to /etc/hosts: |
65 | | - |
66 | | - 127.0.0.1 postgres |
67 | | - 127.0.0.1 mysql |
68 | | - |
69 | | -Scale down the services you want to debug: |
70 | | - |
71 | | - kubectl -n argo scale deploy/workflow-controller --replicas 0 |
72 | | - kubectl -n argo scale deploy/argo-server --replicas 0 |
73 | | - |
74 | | -Restart the port forwarding: |
75 | | - |
76 | | - make pf |
77 | | - |
78 | | -To find the command arguments you need to use, you’ll have to look at dist/postgres.yaml (or dist/mysql.yaml for MySQL aficionados). |
79 | | - |
80 | | -## Clean |
81 | | - |
82 | | -To clean-up everything: |
83 | | - |
84 | | - kubectl delete ns argo |
85 | | - make clean |
| 25 | +Changes without either unit or e2e tests are unlikely to be accepted. See [the pull request template](../.github/pull_request_template.md.) |
0 commit comments