You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+62-16Lines changed: 62 additions & 16 deletions
Original file line number
Diff line number
Diff line change
@@ -1,21 +1,61 @@
1
-
# Contributing to this registry
1
+
# Contributing
2
2
3
3
This document outlines the requirements for contributing a devfile stack or sample to this repository.
4
4
5
5
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).
6
6
7
7
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.
8
8
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,
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
10
50
11
51
The following are required to build the devfile index container image containing your stack or sample:
12
52
13
-
- Docker 17.06 or later
53
+
- Docker or Podman
14
54
- Git
15
55
16
-
## Instructions
56
+
###Instructions for new registry entries
17
57
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
19
59
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/
20
60
21
61
### Stacks
@@ -51,6 +91,8 @@ The following are required to build the devfile index container image containing
51
91
52
92
- This will also validate the devfiles in this repository, making sure they conform to a minimum standard.
53
93
- 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.
54
96
55
97
8) Open a pull request against this repository with a brief description of the change.
56
98
@@ -68,21 +110,21 @@ Updating an existing devfile stack is relatively straightforward:
68
110
- 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.
69
111
5) Open a pull request against this repository with your changes.
70
112
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
+
71
117
### Registry Stack Review Process
72
118
73
119
For every PR, containing updates for registry stacks the review process is:
74
120
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.
76
122
* The PR should be first approved from the stack owner & one eclipse che team member.
77
123
* A devfile-services team member should confirm that the PR has the required reviews and if yes, merge it.
78
124
79
125
For more informations about stack owners please take a look at the [CODEOWNERS](./.github/CODEOWNERS) file.
80
126
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
86
128
87
129
#### Contributing
88
130
@@ -115,7 +157,7 @@ The devfile samples used in this devfile registry are stored in the `extraDevfil
115
157
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.
116
158
6) Open a pull request against this repository with your changes.
117
159
118
-
### Adding a new version
160
+
#### Adding a new version
119
161
120
162
In case you want to add another version to a new devfile sample you can update the existing sample inside the `extraDevfileEntries.yaml` file:
121
163
@@ -169,19 +211,23 @@ To update a sample:
169
211
3) Make the necessary changes.
170
212
4) Open a pull request against this repository with your changes.
171
213
172
-
## How to Test Changes
214
+
### How to Test Changes
173
215
174
-
### Odo
216
+
#### Odo
175
217
176
218
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.
177
219
178
220
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.
179
221
180
-
### Che
222
+
#### Che
181
223
182
224
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.
183
225
184
-
### Console
226
+
#### Console
185
227
186
228
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.
187
229
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.
Copy file name to clipboardExpand all lines: README.md
+8-18Lines changed: 8 additions & 18 deletions
Original file line number
Diff line number
Diff line change
@@ -25,7 +25,7 @@ If you are a stack owner and need to request an urgent refresh of <https://regis
25
25
26
26
### Prerequisites
27
27
28
-
- Docker 17.06 or later
28
+
- Docker or Podman
29
29
- Git
30
30
31
31
### Build
@@ -49,7 +49,7 @@ If you are trying to run `bash .ci/build_and_deploy.sh` and are experiencing err
49
49
50
50
### Prerequisites
51
51
52
-
- Docker 17.06 or later
52
+
- Docker or Podman
53
53
- Git
54
54
- Kubernetes or Red Hat OpenShift
55
55
- odo v3.15.0+
@@ -110,31 +110,21 @@ For contributing Devfile stacks to this registry, please see [CONTRIBUTING.md](C
110
110
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
111
111
the [Telemetry Data Collection Notice](TELEMETRY.md)
112
112
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.
Please reference our [Code of Conduct](https://github.com/devfile/api/blob/e37cd6b0b4ac21524a724e68373746393b91b9ed/CODE_OF_CONDUCT.md) for more information.
125
-
126
113
## Governance
127
114
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.
129
116
130
117
## Users
131
118
132
119
A list of users that use this project can be found by referencing [USERS.md](USERS.md)
133
120
134
121
## Meetings
135
122
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)
137
124
138
125
## Slack
139
126
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)
0 commit comments