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: docs-source/spring/content/on-premises/_index.md
+36-21Lines changed: 36 additions & 21 deletions
Original file line number
Diff line number
Diff line change
@@ -15,7 +15,7 @@ You must meet the following prerequisites to use the Oracle Backend for Spring B
15
15
* Access to a Kubernetes cluster
16
16
*[Python 3+](https://www.python.org/)
17
17
18
-
When installing in a _non-production_ environment, for example a developer's desktop, the previously mentioned pre-requisites may be met through an additional setup task, but there are additional desktop system or software requirements. For example:
18
+
When installing in a _desktop_ environment, for example a developer's desktop, the previously mentioned pre-requisites may be met through an additional setup task, but there are additional desktop system or software requirements. For example:
19
19
20
20
* 2 CPUs or more
21
21
* 8 GB of free memory
@@ -31,23 +31,20 @@ Download the latest release of [Oracle Backend for Spring Boot and Microservices
31
31
32
32
## Setup
33
33
34
-
A custom installation, whether production or non-production, consists of defining the infrastructure followed by running the Configuration
35
-
Management Playbook to build images and deploy the Microservices.
34
+
A custom installation consists of defining the infrastructure followed by running the Configuration Management Playbook to build images and deploy the Microservices.
36
35
37
-
For a production installation, you need to have a Kubernetes cluster and the `kubectl` command-line interface must be configured to
38
-
communicate with your cluster.
36
+
For a custom installation, you need to have a Kubernetes cluster and the `kubectl` command-line interface must be configured to communicate with your cluster.
39
37
40
-
A Helper Playbook has been provided for non-production installations to assist in defining the infrastructure. Review the
41
-
appropriate documentation for examples of installing and defining the non-production installation. For example:
38
+
A Helper Playbook has been provided for desktop installations to assist in defining a specific infrastructure consisting of podman and minikube as outlined in the example documentation:
### Defining the Database (Production Installation)
86
+
Create the `ansible/vars/ebaas.yaml` file, setting values as required. If this is a desktop installation, this file will be created for you by the Desktop Helper playbook.
87
+
88
+
### Defining the Database
91
89
92
90
The database is defined in `ansible/roles/database/vars/main.yaml`. For example:
The `oracle_dbs` and `default_db` key values should be the name of your Pluggable Database (PDB). These are followed by the PDB
107
-
name and Key/Values defining how to access the PDB. If using Mutual Transport Layer Security (mTLS) authentication, specify the
108
-
full path of the wallet file.
105
+
Create the `ansible/roles/database/vars/main.yaml` file, setting values as required. If this is a desktop installation, this file will be created for you by the Desktop Helper playbook.
106
+
107
+
The `database_oracle_dbs` and `database_default_db` key values should be the name of your Pluggable Database (PDB). These are followed by the PDB name and Key/Values defining how to access the PDB.
109
108
110
-
### Defining the Container Repository (Production Installation)
109
+
The `type` can be either:
110
+
111
+
***EXTERNAL**: A Pre-existing Oracle Database. Define `service` and leave `ocid` blank.
112
+
***ADB-S**: A Pre-Existing Oracle Autonomous Serverless (ADB-S) database; provide the `ocid` for the ADB-S. Leave `service` blank.
113
+
***SIDB_CONTAINER**: This will create a 19c containerized database inside the Kubernetes Cluster as part of the deployment. Leave `ocid` and `service` blank.
114
+
115
+
### Defining the Container Repository
111
116
112
117
The Container Repository is defined in `ansible/roles/registry/vars/main.yaml`. For example:
113
118
@@ -128,6 +133,8 @@ registry_pull_auth:
128
133
...
129
134
```
130
135
136
+
Create the `ansible/roles/registry/vars/main.yaml` file, setting values as required. If this is a desktop installation, this file will be created for you by the Desktop Helper playbook.
137
+
131
138
Specify the URL or authentication credentials for your Container Repository in `registry_pull_url`, `registry_push_url`, `registry_username`, and `registry_password`.
132
139
133
140
For the `registry_pull_auth` and `registry_push_auth` sections, manually log into your repository and copy the values found in the created file, located in `$HOME/.config/containers/auth.json`
@@ -150,20 +157,28 @@ and installs Ansible along with other additional modules. For example:
150
157
source ./activate.env
151
158
```
152
159
153
-
### Non-production Playbook
160
+
### Desktop Helper Playbook
154
161
155
-
If this is a production installation, then the infrastructureshould be manually defined as previously stated.
162
+
If this is a desktop installation, then a Helper Playbook can be used to help define the infrastructure. **Note** that this playbook should only be run if following the desktop installation examples:
156
163
157
-
If this is a non-production installation, then run the Helper Playbook to define the infrastructure. For example:
Run the Desktop Helper Playbook to define the infrastructure. For example:
158
168
159
169
```bash
160
170
ansible-playbook ansible/desktop-apply.yaml
161
171
```
162
172
173
+
### Copy kubeconfig
174
+
175
+
For the desktop installation, this step will have been performed by the Desktop Helper playbook.
176
+
177
+
Copy the kubeconfig file to `ansible/roles/kubernetes/files`
178
+
163
179
### Build and Push Images to the Container Repository
164
180
165
-
For the non-production installation, start a new terminal and tunnel or port-forward to the Minikube cluster. Refer to the specific platform
166
-
details for more information.
181
+
For the desktop installation, start a new terminal and tunnel or port-forward to the Minikube cluster. Refer to the specific platform details for more information.
167
182
168
183
For both installations, run the Images Playbook on the original terminal. For example:
0 commit comments