Skip to content

Commit 9e980c3

Browse files
Update contributing guide (#421)
* update CONTRIBUTING and README Signed-off-by: Michael Valdron <mvaldron@redhat.com> * add DCO Signed-off-by: Michael Valdron <mvaldron@redhat.com> * Update CONTRIBUTING.md Co-authored-by: Theofanis Petkos <thepetk@gmail.com> Signed-off-by: Michael Valdron <mvaldron@redhat.com> * add context to instructions section Signed-off-by: Michael Valdron <mvaldron@redhat.com> --------- Signed-off-by: Michael Valdron <mvaldron@redhat.com> Co-authored-by: Theofanis Petkos <thepetk@gmail.com>
1 parent f974b36 commit 9e980c3

File tree

3 files changed

+107
-34
lines changed

3 files changed

+107
-34
lines changed

CONTRIBUTING.md

Lines changed: 62 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,61 @@
1-
# Contributing to this registry
1+
# Contributing
22

33
This document outlines the requirements for contributing a devfile stack or sample to this repository.
44

55
The [devfile registry structure](https://github.com/devfile/api/blob/main/docs/proposals/registry/registry-structure.md#repository-structure) design doc provides some useful background information on the structure of resources in a devfile registry (and its Git repository).
66

77
When onboarding a new stack or sample, the `Stack Provider` should read and agree to follow their roles and responsibilities outlined in the [Lifecycle](LIFECYCLE.md) doc.
88

9-
## Prerequisites
9+
## Code of Conduct
10+
11+
Before contributing to this repository for the first time, please review our project's [Code of Conduct](https://github.com/devfile/api/blob/main/CODE_OF_CONDUCT.md).
12+
13+
## Certificate of Origin
14+
15+
By contributing to this project you agree to the Developer Certificate of
16+
Origin (DCO). This document was created by the Linux Kernel community and is a
17+
simple statement that you, as a contributor, have the legal right to make the
18+
contribution. See the [DCO](DCO) file for details.
19+
20+
In order to show your agreement with the DCO you should include at the end of the commit message,
21+
the following line:
22+
23+
```console
24+
Signed-off-by: Firstname Lastname <email@email.com>
25+
```
26+
27+
Once you set your user.name and user.email in your git config, you can sign your commit automatically with `git commit -s`.
28+
29+
## How to Contribute:
30+
31+
### Issues
32+
33+
For issues relating to a specific devfile stack in this repository, please reach out to the devfile stack maintainer to determine where to open an issue.
34+
35+
For issues relating to the hosted devfile registry service (<https://registry.devfile.io>), or devfile registries in general, please use the [devfile/api](https://github.com/devfile/api/issues) issue tracker for opening issues. Apply the `area/registry` label to registry issues for better visibility.
36+
37+
### Submitting Pull Request
38+
39+
When you think the code is ready for review, create a pull request and link the issue associated with it.
40+
41+
Owners of the repository will watch out for new PRs and provide reviews to them.
42+
43+
If comments have been given in a review, they have to be addressed before merging.
44+
45+
After addressing review comments, don't forget to add a comment in the PR with the reviewer mentioned afterward, so they get notified by Github to provide a re-review.
46+
47+
See [Registry Stack Review Process](#registry-stack-review-process) for more information about the review process of devfile registry content.
48+
49+
### Prerequisites
1050

1151
The following are required to build the devfile index container image containing your stack or sample:
1252

13-
- Docker 17.06 or later
53+
- Docker or Podman
1454
- Git
1555

16-
## Instructions
56+
### Instructions for new registry entries
1757

18-
1. Open an issue in the [devfile/api](https://github.com/devfile/api) repo to track adding a new stack or sample
58+
1. Open an [issue](#issues) to track adding a new stack or sample
1959
2. Avoid using container images (check for references in the Devfile and Dockerfile) from registries (like DockerHub) that impose rate limiting. To workaround this, you can mirror the images to quay.io by using a similar approach to what the Devfile team has: https://github.com/devfile-samples/image-mirror/
2060

2161
### Stacks
@@ -51,6 +91,8 @@ The following are required to build the devfile index container image containing
5191

5292
- This will also validate the devfiles in this repository, making sure they conform to a minimum standard.
5393
- This step will also be run in the PR build for the repository.
94+
- Run `.ci/build.sh offline` to package online resources into
95+
the image for offline / air gap environments.
5496

5597
8) Open a pull request against this repository with a brief description of the change.
5698

@@ -68,21 +110,21 @@ Updating an existing devfile stack is relatively straightforward:
68110
- Minimally, testing with odo v2 (`odo create`, `odo push`, etc), odo v3 (`odo init`, `odo dev`, etc) and che (see [How to Test Changes > Che](https://github.com/devfile/registry/blob/main/CONTRIBUTING.md#che)) is recommended, however if your Devfile is used with other tools, it's recommended to test there as well.
69111
5) Open a pull request against this repository with your changes.
70112

113+
#### Automatic Stack Image Update
114+
115+
As images used inside the stacks need to be up-to-date and in order to avoid using the `latest` tag, the renovate bot runs periodically ensuring that all images used from stacks (for example, inside components) have the latest version. As a result, all images used inside a devfile of a stack need to have a fixed version (e.g `1.1.0`) instead of `latest`.
116+
71117
### Registry Stack Review Process
72118

73119
For every PR, containing updates for registry stacks the review process is:
74120

75-
* All CODEOWNERS related with the stack are requested to provide their review.
121+
* All [CODEOWNERS](./.github/CODEOWNERS) related with the stack are requested to provide their review.
76122
* The PR should be first approved from the stack owner & one eclipse che team member.
77123
* A devfile-services team member should confirm that the PR has the required reviews and if yes, merge it.
78124

79125
For more informations about stack owners please take a look at the [CODEOWNERS](./.github/CODEOWNERS) file.
80126

81-
### Automatic Stack Image Update
82-
83-
As images used inside the stacks need to be up-to-date and in order to avoid using the `latest` tag, the renovate bot runs periodically ensuring that all images used from stacks (for example, inside components) have the latest version. As a result, all images used inside a devfile of a stack need to have a fixed version (e.g `1.1.0`) instead of `latest`.
84-
85-
## Samples
127+
### Samples
86128

87129
#### Contributing
88130

@@ -115,7 +157,7 @@ The devfile samples used in this devfile registry are stored in the `extraDevfil
115157
5) Fill in the fields in the angle brackets based on your sample. Note that there must be only one git remote for the devfile sample.
116158
6) Open a pull request against this repository with your changes.
117159
118-
### Adding a new version
160+
#### Adding a new version
119161
120162
In case you want to add another version to a new devfile sample you can update the existing sample inside the `extraDevfileEntries.yaml` file:
121163

@@ -169,19 +211,23 @@ To update a sample:
169211
3) Make the necessary changes.
170212
4) Open a pull request against this repository with your changes.
171213

172-
## How to Test Changes
214+
### How to Test Changes
173215

174-
### Odo
216+
#### Odo
175217

176218
odo v2: `odo create` and `odo push` to test devfile changes. See [odo v2 Doc](https://odo.dev/docs/2.5.0/using-odo/create-component) for more details.
177219

178220
odo V3: `odo init` and `odo dev` to test devfile changes. See [odo v3 Doc](https://odo.dev/docs/command-reference/init) for more details.
179221

180-
### Che
222+
#### Che
181223

182224
Opening the URL https://workspaces.openshift.com/#<repository_url> in your browser should start a workspace where exec commands run successfully. Type `task devfile` and press the `Enter` key in the IDE command palette to see the list of available devfile commands. Then, run all devfile commands one by one, to ensure they are executed successfully.
183225

184-
### Console
226+
#### Console
185227

186228
In developer view, create an application via `Import from Git`. Provide git repository Url and verify if the application can be built and ran successfully.
187229
Note: Currently Console only works with devfile v2.2.0 samples with outer loop support.
230+
231+
# Contact us
232+
233+
If you have any questions, please visit us the `#devfile` channel under the [Kubernetes Slack](https://slack.k8s.io) workspace.

DCO

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
Developer Certificate of Origin
2+
Version 1.1
3+
4+
Copyright (C) 2004, 2006 The Linux Foundation and its contributors.
5+
1 Letterman Drive
6+
Suite D4700
7+
San Francisco, CA, 94129
8+
9+
Everyone is permitted to copy and distribute verbatim copies of this
10+
license document, but changing it is not allowed.
11+
12+
13+
Developer's Certificate of Origin 1.1
14+
15+
By making a contribution to this project, I certify that:
16+
17+
(a) The contribution was created in whole or in part by me and I
18+
have the right to submit it under the open source license
19+
indicated in the file; or
20+
21+
(b) The contribution is based upon previous work that, to the best
22+
of my knowledge, is covered under an appropriate open source
23+
license and I have the right under that license to submit that
24+
work with modifications, whether created in whole or in part
25+
by me, under the same open source license (unless I am
26+
permitted to submit under a different license), as indicated
27+
in the file; or
28+
29+
(c) The contribution was provided directly to me by some other
30+
person who certified (a), (b) or (c) and I have not modified
31+
it.
32+
33+
(d) I understand and agree that this project and the contribution
34+
are public and that a record of the contribution (including all
35+
personal information I submit with it, including my sign-off) is
36+
maintained indefinitely and may be redistributed consistent with
37+
this project or the open source license(s) involved.

README.md

Lines changed: 8 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ If you are a stack owner and need to request an urgent refresh of <https://regis
2525

2626
### Prerequisites
2727

28-
- Docker 17.06 or later
28+
- Docker or Podman
2929
- Git
3030

3131
### Build
@@ -49,7 +49,7 @@ If you are trying to run `bash .ci/build_and_deploy.sh` and are experiencing err
4949

5050
### Prerequisites
5151

52-
- Docker 17.06 or later
52+
- Docker or Podman
5353
- Git
5454
- Kubernetes or Red Hat OpenShift
5555
- odo v3.15.0+
@@ -110,31 +110,21 @@ For contributing Devfile stacks to this registry, please see [CONTRIBUTING.md](C
110110
The Devfile Registry is configured with telemetry to collect only the necessary information to improve the value of our service. For further details, refer to
111111
the [Telemetry Data Collection Notice](TELEMETRY.md)
112112

113-
## Reporting any issue
114-
115-
For issues relating to a specific devfile stack in this repository, please reach out to the devfile stack maintainer to determine where to open an issue.
116-
117-
For issues relating to the hosted devfile registry service (<https://registry.devfile.io>), or devfile registries in general, please use the [devfile/api](https://github.com/devfile/api/) issue tracker for opening issues. Apply the `area/registry` label to registry issues for better visibility.
118-
119-
[1]: https://img.shields.io/badge/renovate-enabled-brightgreen?logo=renovate
120-
[2]: https://renovatebot.com
121-
122-
## Code of Conduct
123-
124-
Please reference our [Code of Conduct](https://github.com/devfile/api/blob/e37cd6b0b4ac21524a724e68373746393b91b9ed/CODE_OF_CONDUCT.md) for more information.
125-
126113
## Governance
127114

128-
Please reference [GOVERNANCE.md](https://github.com/devfile/api/blob/e37cd6b0b4ac21524a724e68373746393b91b9ed/GOVERNANCE.md) for more information.
115+
Please reference [GOVERNANCE.md](https://github.com/devfile/api/blob/main/GOVERNANCE.md) for more information.
129116

130117
## Users
131118

132119
A list of users that use this project can be found by referencing [USERS.md](USERS.md)
133120

134121
## Meetings
135122

136-
Information regarding meetings for the Devfile project can be found in [GOVERNANCE.md](https://github.com/devfile/api/blob/e37cd6b0b4ac21524a724e68373746393b91b9ed/GOVERNANCE.md#meetings)
123+
Information regarding meetings for the Devfile project can be found in [GOVERNANCE.md](https://github.com/devfile/api/blob/main/GOVERNANCE.md#meetings)
137124

138125
## Slack
139126

140-
There is a Slack channel open for discussion under the Kubernetes Slack workspace, you can find it [here](https://kubernetes.slack.com/messages/devfile)
127+
There is a Slack channel open for discussion under the Kubernetes Slack workspace, you can find it [here](https://kubernetes.slack.com/messages/devfile)
128+
129+
[1]: https://img.shields.io/badge/renovate-enabled-brightgreen?logo=renovate
130+
[2]: https://renovatebot.com

0 commit comments

Comments
 (0)