-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Adding CONTRIBUTING.md #445
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
best to structure their Dockerfile or updates for the quickest review/merge process. Signed-off-by: Avi Miller <avi.miller@oracle.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I recommend some minor additions to this.
CONTRIBUTING.md
Outdated
1. Fork this repository | ||
2. Create a branch in your fork to implement the changes. We recommend using | ||
the issue number as part of your branch name, e.g. `1234-fixes` | ||
3. Ensure that any documentation is updated with the changes that are required |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There should be another point saying something like "Ensure that samples are updated if the PR causes the behavior of the sample to change"
CONTRIBUTING.md
Outdated
|
||
1. Do not run `ssh` inside a container. | ||
1. Do not use host networking mode (`--net=host`) for a container. | ||
1. Do not hard-code any passwords. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should probably elaborate on that it's best practice to auto generate a password by default via openssl rand and accept a password as argument.
- Don't install any interactive/user tools, e.g. things like `vim`, `less` or | ||
`man`. Debugging should be done prior to the image submission. | ||
- Don't install `wget` as the base images already include `curl`. | ||
- Always remember to run `yum clean all` in the same `RUN` directive as a |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Include that the image should in general be kept as small as possible and unnecessary packages/parts removed.
Signed-off-by: Avi Miller <avi.miller@oracle.com>
I've pushed some changes. Great feedback, thanks @gvenzl. Can you review again, please? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very minor things. LGTM though.
CONTRIBUTING.md
Outdated
# Contributing | ||
Oracle welcomes contributions to this repository from anyone. | ||
|
||
If you want to submit a pull request to fix an bug or enhance an existing |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"fix a bug".
|
||
We have some golden rules that we require all submitted `Dockerfiles` to abide | ||
by. These rules are provided by Oracle Global Product Security and may change | ||
at any time. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These rules are of course applied to all Oracle employees submitting contributions, but they will be checked by us when contributions are coming from 3rd-parties. Maybe the wording here should be more directed to employees?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, these rules apply to both employees and non-employees alike. We will not accept any PRs that don't follow these rules.
looks good to me. Thanks for adding the rules. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought the passwords need to be generated during runtime and not build time.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Under Guidelines Recommendations please add that changes in the image (Dockerfile) , new input by user building the image or running the container, behavior of the scripts should be clearly documented in the README.md file.
…not build time. Signed-off-by: Avi Miller <avi.miller@oracle.com>
… on requiring documentation on how to provide input during build or runtime and what defaults are used. Signed-off-by: Avi Miller <avi.miller@oracle.com>
Excellent feedback, @mriccell. I've added that note and added some text around documenting any defaults that are used in the case that custom values are not provided. |
…ue opened. Signed-off-by: Avi Miller <avi.miller@oracle.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a living document that as time progresses will include more guidelines and requirements. I am happy with the first version of this document.
Thanks team. Merged. If you have any other guidelines/rules, feel free to open a PR to include those. |
Provide documented contribution rules and guidelines to assist new users on how best to structure their Dockerfile or updates for the quickest review/merge process.
Signed-off-by: Avi Miller avi.miller@oracle.com