Contributions are welcome via GitHub Pull Requests. This document outlines the process to help get your contribution accepted.
Any contribution is welcome, from new features, bug fixes, tests, documentation improvements, or even adding images to the repository (if it's viable).
- Fork this repository, develop, and test your changes.
- Submit a pull request.
NOTE: To make the Pull Requests' (PRs) testing and merging process more manageable, please submit changes to multiple images in separate PRs.
When submitting a PR, make sure that it:
- Must pass CI jobs for changes on top of different k8s platforms, docker, and docker-compose. (Automatically done by the community-images CI/CD pipeline).
The sign-off is a simple line at the end of the explanation for a commit. All commits need to be signed. Your signature certifies that you wrote the patch or have the right to contribute the material. The rules are pretty simple. You only need to follow the guidelines from developercertificate.org.
Then you add a line to every git commit message:
Signed-off-by: John Doe <john.doe@example.com>
Use your real name (sorry, no pseudonyms or anonymous contributions.)
Suppose you set your user.name
and user.email
git configs, you can sign your commit automatically with git commit -s
.
Note: If your git config information is correctly set, then viewing the git log
information for your commit will look something like this:
Author: John Doe <john.doe@example.com>
Date: Thu Feb 2 11:41:15 2018 -0800
Update README
Signed-off-by: John Doe <john.doe@example.com>
Notice the Author
and Signed-off-by
lines match. If they don't, the DCO check will reject your PR automatically.
- An image must include
README.md
. - image_generator.sh generates README.md automatically from image.yml. Please run
./scripts/image_generator.sh
after making changes in image-specific image.yml. - The title of the PR starts with the image name (e.g.
[image/provider]
)
- Changes are automatically linted and tested using Github actions.
- Community-images team members manually review changes.
- When the PR passes all tests, the reviewer(s) merge the PR in the GitHub
master
branch. - Then our CI/CD system will push the image to the Rapidfort Dockerhub registry.
- Determine the types of tests you will need based on your image.
- Ensure tests exercise all workflows to ensure hardened images don't break in production.
There are two major technical requirements to add a new image to our catalog:
- Follow the same structure/patterns as the rest of the community-images images (you can find a basic scaffolding in the
template
directory). - Use an OSI approved license for all the software.
Please, note that we will need to check internally and evaluate the feasibility of adding the new solution to the catalog. Due to limited resources, this step could take some time.