-
-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
53 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
ansible-role-requirements.yml | ||
.idea/ | ||
*swp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# Contributing | ||
|
||
|
||
Contributions to the the Dokku open source project are highly welcome! | ||
For general hints see the project-wide [cotributing guide](https://github.com/dokku/.github/blob/master/CONTRIBUTING.md). | ||
|
||
## Codebase overview | ||
|
||
* The role's directory layout follows [standard ansible practises](https://galaxy.ansible.com/docs/contributing/creating_role.html#roles). | ||
* Besides the yaml-based ansible instructions, the role includes several new ansible *modules* in the `library/` folder (e.g. `dokku_app`). | ||
* The `README.md` of this repository is auto-generated: do *not* edit it directly. | ||
In order to update it, run `make generate`. | ||
|
||
## Setting up a test environment | ||
|
||
This role is tested using [molecule](https://molecule.readthedocs.io/en/latest/). | ||
Setting up a test environment involves the following steps: | ||
|
||
* Install [docker](https://www.docker.com/) | ||
* Install [python](https://www.python.org/) | ||
* (optional) Create a python virtual environment | ||
* Run `pip install -r requirements.txt` | ||
* Run `pre-commit install` | ||
|
||
After this, you'll be able to test any changes made to the role using: | ||
|
||
``` | ||
molecule test | ||
``` | ||
This will ensure that: | ||
|
||
* the role adheres to coding standards (via `yamllint`, `ansible-lint`, `flake8` and `black` pre-commit hooks) | ||
* the role runs fine (with default parameters) | ||
* the role is idempotent (with default parameters) | ||
* any tests defined in `molecule/default/verify.yml` pass | ||
|
||
In addition to local testing, continuous integration tests on a selection of Ubuntu and Debian versions are run on any pull request. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters