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
+16-15Lines changed: 16 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,59 +2,60 @@
2
2
3
3
Anyone can contribute to the Open Liberty guides and we welcome your contributions!
4
4
5
-
There are multiple ways to contribute: report bugs, fix bugs, contribute code, improve upon documentation, etc.
5
+
There are multiple ways to contribute: report bugs, fix bugs, contribute code, improve upon documentation, etc.
6
6
7
7
## Raising issues
8
8
9
9
Please raise any bug reports in this [guide repository](../../issues). For new topics, large updates to existing guides, or general suggestions and ideas, report your issue in the [Open Liberty common guides repository](https://github.com/OpenLiberty/guides-common/issues). Be sure to search the list of open issues to see if your issue has already been raised.
10
10
11
11
A good bug report makes it easy for everyone to understand what you were trying to do and what went wrong. Provide as much context as possible so we can try to recreate the issue.
12
12
13
-
## Contributions
13
+
## Contributions
14
14
15
-
Contributing to an Open Liberty guide is simple. All you need to do is create your own branch to include your contribution and open a pull request to the `qa` (quality assurance) branch.
15
+
Contributing to an Open Liberty guide is simple. All you need to do is create your branch to include your contribution and open a pull request to the `staging` (quality assurance) branch.
16
16
17
17
### Text or content contributions
18
18
19
19
If you are contributing text or content changes via a pull request, you need to certify that the originality of the work follows the [Developer Certificate of Origin (DCO)](https://developercertificate.org).
20
20
21
21
Add a line to the end of the Git commit message to sign your work:
22
22
23
-
```
23
+
```text
24
24
Signed-off-by: Jane Williams <jane.williams@gmail.com>
25
25
```
26
26
27
27
The sign-off is just a line at the end of the commit message that certifies that you wrote it or otherwise have the right to pass it on as an open source patch.
28
28
29
-
Use your real name when you sign. We can't accept pseudonyms or anonymous contributions.
29
+
Use your real name when you sign. We can't accept pseudonyms or anonymous contributions.
30
30
31
31
Many Git UI tools have support for adding the `Signed-off-by` line to the end of your commit message. This line can be automatically added by the `git commit` command by using the `-s` option.
32
32
33
-
If reviewers agree with your change, your change will be merged to the `master` branch for publishing.
33
+
If reviewers agree with your change, your change will be merged to the `prod` branch for publishing.
34
34
35
35
### Code contributions
36
36
37
37
If you are contributing trivial code changes such as typos, redundant spaces, or minor formatting and spelling errors, follow the instructions under [Text or content contributions](./CONTRIBUTING.md#text-or-content-contributions).
38
38
39
-
If you are contributing code changes via a pull request for non-trivial changes, you must sign off on the [Individual Contributor License Agreement](https://github.com/OpenLiberty/open-liberty/blob/master/cla/open-liberty-cla-individual.pdf). An example of a non-trivial change could be adding a new
40
-
microservice to the backend application of the guide.
39
+
If you are contributing code changes via a pull request for non-trivial changes, you must sign off on the [Individual Contributor License Agreement](https://github.com/OpenLiberty/open-liberty/blob/release/cla/open-liberty-cla-individual.pdf). An example of a non-trivial change could be adding a new
40
+
microservice to the backend application of the guide.
41
41
42
-
If you are contributing changes as part of your job, you may also wish to have your employer sign a [Corporate Contributor License Agreement](https://github.com/OpenLiberty/open-liberty/blob/master/cla/open-liberty-cla-corporate.pdf).
42
+
If you are contributing changes as part of your job, you may also wish to have your employer sign a [Corporate Contributor License Agreement](https://github.com/OpenLiberty/open-liberty/blob/release/cla/open-liberty-cla-corporate.pdf).
43
43
44
-
Instructions for how to sign and submit these agreements are located at the top of each document.
44
+
Instructions for how to sign and submit these agreements are located at the top of each document.
45
45
46
-
After we obtain the signed CLA, you are welcome to open a pull request against the `qa` branch, and the team will be notified for review. We ask you follow these steps through the submission process:
46
+
After we obtain the signed CLA, you are welcome to open a pull request against the `staging` branch, and the team will be notified for review. We ask you to follow these steps through the submission process:
47
47
48
-
1. Open a pull request against the `qa` branch.
48
+
1. Open a pull request against the `staging` branch.
49
49
2. A "CLA signed" label will be manually added by the team.
50
-
3. The team will be notified and will review your change(s).
51
-
- If there are further changes to be made, the team will request changes on the pull request.
50
+
3. The team will be notified and will review your change(s).
51
+
- If there are further changes to be made, the team will request changes on the pull request.
52
52
- If the team does not agree with the change, the PR will be closed with an explanation and suggestion for follow-up.
53
53
4. If the team approves, a full Open Liberty site build will be run.
54
54
5. Based on the results of the build:
55
-
- If further review is needed, we will let you know about a pending review from our team and discuss any necessary improvements that need to be made to your change(s).
55
+
- If further review is needed, we will let you know about a pending review from our team and discuss any necessary improvements that need to be made to your change(s).
56
56
- If everything is successful, the team will merge your PR.
57
57
58
58
## Questions and concerns
59
59
60
60
If you have any questions or concerns about the guides or about Open Liberty, you can visit [Gitter for Open Liberty](https://gitter.im/OpenLiberty/) and post your questions in the relevant rooms. You can also join the Open Liberty group on [Groups.io](https://groups.io/g/openliberty) to discuss any issues you have.
The [hotspot=from file=0]`FROM` instruction initializes a new build stage, which indicates the parent image of the built image. If you don't need a parent image, then you can use `FROM scratch`, which makes your image a base image.
@@ -246,7 +246,7 @@ The `Containerfile` file for the `system` service follows the same instructions
As mentioned previously, the parent image that is used in each `Containerfile` contains the `full` tag, which includes all of the Liberty features. This parent image with the `full` tag is recommended for development, but while deploying to production it is recommended to use a parent image with the `kernel-slim` tag. The `kernel-slim` tag provides a bare minimum server with the ability to add the features required by the application.
Replace the parent image with [hotspot=kernel-slim file=0]`icr.io/appcafe/open-liberty:kernel-slim-java11-openj9-ubi` at the top of your `Containerfile`. This image contains the `kernel-slim` tag that is recommended when deploying to production.
514
+
515
+
Place [hotspot=features file=0]`RUN features.sh` command after the COPY command that the configuration file is copied to the `/config/` destination directory. The `features.sh` script adds the Liberty features that your application is required to operate.
516
+
517
+
Ensure that you repeat these instructions for the `system` service.
Your list of Liberty features should be similar to the following:
576
+
----
577
+
jndi-1.0
578
+
servlet-5.0
579
+
cdi-3.0
580
+
concurrent-2.0
581
+
jsonb-2.0
582
+
jsonp-2.0
583
+
mpConfig-3.0
584
+
restfulWS-3.0
585
+
restfulWSClient-3.0
586
+
----
587
+
588
+
// static guide instructions:
589
+
ifndef::cloud-hosted[]
590
+
To ensure that your containers are working properly, try accessing the `system` service to show the system properties of the running JVM.
591
+
See http://localhost:9080/system/properties[http://localhost:9080/system/properties]
592
+
593
+
Next, replace `[system-ip-address]` with the IP address that you obtained earlier and add your localhost system properties to the `inventory` service by visiting:
Then, verify the addition of your localhost system properties to your `inventory` service.
597
+
See http://localhost:9081/inventory/systems[http://localhost:9081/inventory/systems]
598
+
endif::[]
599
+
600
+
// cloud-hosted guide instructions:
601
+
ifdef::cloud-hosted[]
602
+
The **system** service which shows the system properties of the running JVM, is now available to be accessed at **http://localhost:9080/system/properties**. Run the following curl command:
Next, you can add your local system properties at the **http://localhost:9081/inventory/systems/[system-ip-address]** URL by replacing **[system-ip-address]** with the IP address that you obtained in the previous section. Run the following commands:
Then, verify the addition of your localhost system properties to the **inventory** service at **http://localhost:9081/inventory/systems**. Run the following curl command:
0 commit comments