|
1 | 1 | # Contributing to DefectDojo |
2 | 2 |
|
3 | | -There are a few things to keep in mind when developing your own code for |
4 | | -DefectDojo |
| 3 | +Here are a few things to keep in mind when making changes to DefectDojo. |
5 | 4 |
|
6 | | -## Modifying Application Settings |
| 5 | +## Modifying DefectDojo and testing with Vagrant |
7 | 6 |
|
8 | | -0. You must keep |
9 | | -[ansible/roles/webserver/templates/settings.j2][settings_template] |
10 | | -up to date with [dojo/settings.dist.py][dojo_settings] as you make |
11 | | -changes to your settings if you want to install via the Vagrant provisioning |
12 | | -script, or if you want to submit a pull request to DefectDojo. You should define |
13 | | -any additional variables needed upon install in |
14 | | -[ansible/vars.yml][ansible_vars] |
| 7 | +This may change in the future, but for now the bash setup and Vagrant setup are |
| 8 | +fairly decoupled. |
15 | 9 |
|
16 | | -0. If you want to make changes to the DefectDojo code and test it with Vagrant, |
| 10 | +If you want to make changes to the DefectDojo code and test it with Vagrant, |
17 | 11 | you will need to change the `dd_git_repo` and/or `dd_git_branch` variables |
18 | | -defined in [ansible/vars.yml][ansible_vars] |
| 12 | +defined in [__ansible/vars.yml__][ansible_vars]. You will also need to port any |
| 13 | +changes you make to [__dojo/settings.dist.py__][dojo_settings] into |
| 14 | +[__ansible/roles/webserver/templates/settings.j2__][ansible_settings], adding |
| 15 | +Ansible variables as necessary (defined in |
| 16 | +[__ansible/vars.yml__][ansible_vars]). Any additional pip packages will need to |
| 17 | +be defined in [__ansible/roles/webserver/tasks/app.yml__][ansible_app]. |
| 18 | + |
| 19 | +## Submitting pull requests |
| 20 | + |
| 21 | +The following are things to consider before submitting a pull request to |
| 22 | +DefectDojo. |
| 23 | + |
| 24 | +0. Ensure all changes made to the code, packages, etc. are reflected in the |
| 25 | +[__setup.bash__][setup_bash] script, the [__setup.py__][setup_py] script, and |
| 26 | +the Ansible playbooks in the [__ansible/__][ansible_folder] folder. See |
| 27 | +[__Modifying DefectDojo and testing with Vagrant__][modifying_dojo] above for |
| 28 | +more information. |
| 29 | + |
| 30 | +0. If possible, make sure that both the bash and Vagrant installation scripts |
| 31 | +are working properly before submitting a pull request. |
| 32 | + |
| 33 | +0. All submitted code should conform to [__PEP8 standards__][pep8]. |
19 | 34 |
|
20 | 35 |
|
21 | | -[settings_template]: ../ansible/roles/webserver/templates/settings.j2 "Ansible settings template" |
22 | | -[dojo_settings]: ../dojo/settings.dist.py "DefectDojo settings file" |
23 | 36 | [ansible_vars]: ../ansible/vars.yml "Ansible variables file" |
| 37 | +[dojo_settings]: ../dojo/settings.dist.py "DefectDojo settings file" |
| 38 | +[ansible_settings]: ../ansible/roles/webserver/templates/settings.j2 "Ansible settings template" |
| 39 | +[setup_py]: ../setup.py "Python setup script" |
| 40 | +[ansible_app]: ../ansible/roles/webserver/tasks/app.yml "Ansible app tasks" |
| 41 | +[setup_bash]: ../setup.bash "Bash setup script" |
| 42 | +[ansible_folder]: ../ansible "Ansible folder" |
| 43 | +[modifying_dojo]: #modifying-defectdojo-and-testing-with-vagrant "Modifying DefectDojo and testing with Vagrant" |
| 44 | +[pep8]: https://www.python.org/dev/peps/pep-0008/ "PEP8" |
0 commit comments