diff --git a/.github/workflows/merge-main.yml b/.github/workflows/merge-main.yml
index 855d7b8..b9c1cb1 100644
--- a/.github/workflows/merge-main.yml
+++ b/.github/workflows/merge-main.yml
@@ -115,4 +115,21 @@ jobs:
token: ${{ github.token }}
tag_name: ${{ needs.vars.outputs.tag }}
name: ${{ needs.vars.outputs.tag }}
- body: ${{ needs.vars.outputs.clean_changelog }}
+ body: |
+ ${{ needs.vars.outputs.clean_changelog }}
+
+ ```
+
+ ca.bc.gov.nrs-commons
+ forest-client-core
+ ${{ needs.vars.outputs.semver }}
+
+ ```
+
+ ```
+
+ ca.bc.gov.nrs-commons
+ forest-client-spring
+ ${{ needs.vars.outputs.semver }}
+
+ ```
diff --git a/README.md b/README.md
index 24f571c..b1e8207 100644
--- a/README.md
+++ b/README.md
@@ -4,3 +4,96 @@
# Forest Client Commons Library
This repository holds common code shared between all [forest client applications](https://github.com/bcgov/nr-forest-client) and [api](https://github.com/bcgov/nr-forest-client-api) along with an image responsible for extracting database certificate from oracle.
+
+To use this repository, you need to include it as a Maven repository in your project's `pom.xml` file. Add the following code snippet inside the `` section:
+
+```xml
+
+ github
+ Github Packages
+ https://maven.pkg.github.com/bcgov/nr-forest-client-commons
+
+ false
+
+
+```
+
+Next, you will need to include one of the two dependencies from this repository in your project. Add the following code snippets inside the `` section of your `pom.xml` file. Make sure to replace `X.Y.Z` with the appropriate version number.
+
+By including the repository and dependencies as mentioned, you will be able to utilize the common code shared between all forest client applications and the API. This repository provides essential functionality and utilities that can be leveraged to enhance your forest client projects. Ensure that you have the necessary access and permissions to the repository in order to successfully include it in your project.
+
+Remember to regularly check for updates and new releases of the dependencies to ensure you are using the latest features and bug fixes.
+
+## Core library
+
+The core library contains DTOs and utility classes that are framework independent and serve as a way to share DTO classes between applications.
+
+```xml
+
+ ca.bc.gov.nrs-commons
+ forest-client-core
+ X.Y.Z
+
+```
+
+## Spring library
+
+The spring library implements the core library and make use of the spring framework, more specifically the spring boot framework. If you want to reuse some of the spring code that is generic. In case you want to use this, you can skip the core one, as it will be included as well.
+
+```xml
+
+ ca.bc.gov.nrs-commons
+ forest-client-spring
+ X.Y.Z
+
+```
+
+
+## Oracle Database Client Connection Certificate Extractor
+
+This is an utility for extracting the connection certificate from an Oracle Database client. This image will acquire a secure connection to the server host and port and it will extract the connection certificate from it.
+
+
+```yml
+- apiVersion: v1
+ kind: DeploymentConfig
+ metadata:
+ labels:
+ app: application-name
+ name: application-component
+ spec:
+ replicas: 1
+ selector:
+ deploymentconfig: application-component
+ strategy:
+ type: Rolling
+ template:
+ metadata:
+ labels:
+ app: application-name
+ deploymentconfig: application-component
+ spec:
+ volumes:
+ - name: application-name-certs
+ persistentVolumeClaim:
+ claimName: app-name-pvc
+ initContainers:
+ - name: certextract
+ image: ghcr.io/bcgov/nr-forest-client-commons/certextractor:X.Y.Z
+ imagePullPolicy: Always
+ env:
+ - name: ORACLEDB_HOST
+ value: host
+ - name: ORACLEDB_SECRET
+ value: secret
+ - name: ORACLEDB_PORT
+ value: "1521"
+ volumeMounts:
+ - name: application-name-certs
+ mountPath: /cert
+ containers:
+ - image: your-app-image
+ volumeMounts:
+ - mountPath: /cert
+ name: application-name-certs
+```
\ No newline at end of file
diff --git a/certextractor/README.md b/certextractor/README.md
new file mode 100644
index 0000000..bb6c851
--- /dev/null
+++ b/certextractor/README.md
@@ -0,0 +1,73 @@
+# Oracle Database Client Connection Certificate Extractor
+
+This repository contains a utility for extracting the connection certificate from an Oracle Database client. This image will acquire a secure connection to the server host and port and it will extract the connection certificate from it.
+
+## Usage
+
+To use the Oracle Database Client Connection Certificate Extractor as part of your openshift deployment, follow these steps:
+
+1. On your DeploymentConfig, add the initContainers (same as an actual container)
+2a. Set the image as `ghcr.io/bcgov/nr-forest-client-commons/certextractor:X.Y.Z`
+2b. Create a new ImageStream and reference `ghcr.io/bcgov/nr-forest-client-commons/certextractor:X.Y.Z`
+
+## Contributing
+
+Contributions are welcome! If you would like to contribute to the Oracle Database Client Connection Certificate Extractor, please follow these guidelines:
+
+1. Fork this repository.
+2. Create a new branch for your feature or bug fix.
+3. Make your changes and commit them.
+4. Push your branch to your forked repository.
+5. Open a pull request to merge your changes into the main repository.
+
+## License
+
+This project is licensed under the [Apache 2.0](../LICENSE).
+
+## Example usage
+
+Keep in mind that this is just an example, adapt it to your requirements.
+
+```yml
+- apiVersion: v1
+ kind: DeploymentConfig
+ metadata:
+ labels:
+ app: application-name
+ name: application-component
+ spec:
+ replicas: 1
+ selector:
+ deploymentconfig: application-component
+ strategy:
+ type: Rolling
+ template:
+ metadata:
+ labels:
+ app: application-name
+ deploymentconfig: application-component
+ spec:
+ volumes:
+ - name: application-name-certs
+ persistentVolumeClaim:
+ claimName: app-name-pvc
+ initContainers:
+ - name: certextract
+ image: ghcr.io/bcgov/nr-forest-client-commons/certextractor:X.Y.Z
+ imagePullPolicy: Always
+ env:
+ - name: ORACLEDB_HOST
+ value: host
+ - name: ORACLEDB_SECRET
+ value: secret
+ - name: ORACLEDB_PORT
+ value: "1521"
+ volumeMounts:
+ - name: application-name-certs
+ mountPath: /cert
+ containers:
+ - image: your-app-image
+ volumeMounts:
+ - mountPath: /cert
+ name: application-name-certs
+```
\ No newline at end of file