Skip to content

Conversation

Djelibeybi
Copy link
Contributor

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

best to structure their Dockerfile or updates for the quickest
review/merge process.

Signed-off-by: Avi Miller <avi.miller@oracle.com>
Copy link
Member

@gvenzl gvenzl left a 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
Copy link
Member

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.
Copy link
Member

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
Copy link
Member

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>
@Djelibeybi
Copy link
Contributor Author

I've pushed some changes. Great feedback, thanks @gvenzl. Can you review again, please?

brunoborges
brunoborges previously approved these changes Jul 6, 2017
Copy link
Contributor

@brunoborges brunoborges left a 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
Copy link
Contributor

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.
Copy link
Contributor

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?

Copy link
Contributor Author

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.

Signed-off-by: Avi Miller <avi.miller@oracle.com>
@nirmay
Copy link
Contributor

nirmay commented Jul 6, 2017

looks good to me. Thanks for adding the rules.

Copy link
Member

@mriccell mriccell left a 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.

Copy link
Member

@mriccell mriccell left a 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>
@Djelibeybi
Copy link
Contributor Author

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>
Copy link
Member

@mriccell mriccell left a 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.

@Djelibeybi Djelibeybi merged commit a54e0e3 into master Jul 6, 2017
@Djelibeybi Djelibeybi deleted the contrib branch July 6, 2017 16:13
@Djelibeybi
Copy link
Contributor Author

Thanks team. Merged. If you have any other guidelines/rules, feel free to open a PR to include those.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants