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/ol8/_index.md
+81-51Lines changed: 81 additions & 51 deletions
Original file line number
Diff line number
Diff line change
@@ -6,89 +6,116 @@ This is an description of installing on a Oracle Linux 8 desktop.
6
6
7
7
Read the [On-Premises](../../on-premises) documentation and ensure that your desktop meets the minimum system requirements.
8
8
9
-
## Install
9
+
## Setup
10
10
11
-
### Additional Operating System Packages
11
+
### Create a Non-Root User
12
12
13
-
Install additional operating system packages by executing these commands:
13
+
Create a new user. While any user name can be created, the rest of this documentation refers to the non-root user as `obaas`:
14
+
15
+
As `root`, process the following:
14
16
15
17
```bash
16
-
dnf -y module install container-tools:ol8
17
-
dnf -y install conntrack podman curl
18
-
dnf -y install oracle-database-preinstall-21c
19
-
dnf -y install langpacks-en
20
-
dnf module install -y python39
21
-
dnf -y update
18
+
useradd obaas
22
19
```
23
20
24
-
Set the default Python3 to Python 3.9 by running this command:
21
+
### Download Oracle Backend for Spring Boot and Microservices
22
+
23
+
Download [Oracle Backend for Spring Boot](https://github.com/oracle/microservices-datadriven/releases/download/OBAAS-1.0.1/onprem-ebaas_latest.zip) and unzip into a new directory.
Paste the public key of your client machines into the `~/.ssh/authorized_keys` file, and change the permissions as follows:
40
41
41
-
Create a new user. While any user name can be created, the rest of this documentation refers to the non-root user as `obaas`:
42
+
```bash
43
+
chmod 700 .ssh
44
+
chmod 600 .ssh/authorized_keys
45
+
```
42
46
43
-
As `root`, process the following:
47
+
### Update the operating system
48
+
49
+
Assuming the source was unzipped to `~obaas/obaas`, as the `root` user, update the operating system by running the `ol8_onprem.sh` script from the unzipped package:
If this is being installed on an OCI Compute instance, grow the filesystem:
67
+
68
+
As `root`:
69
+
70
+
```bash
71
+
/usr/libexec/oci-growfs
72
+
```
73
+
74
+
### Reboot
75
+
76
+
**IMPORTANT** After the operating system has been updated, `reboot` the host.
77
+
78
+
## Install
79
+
80
+
The remaining steps require **direct login** as the `obaas` user without using `sudo` or `su`.
81
+
50
82
### Download the Database or Oracle REST Data Services (ORDS) Images
51
83
52
-
The _Desktop_ installation provisions an Oracle database into the Kubernetes cluster. The images must be downloaded
53
-
from [Oracle Cloud Infrastructure Registry (Container Registry)](https://container-registry.oracle.com/) before continuing.
54
-
As the `obaas` user, process these steps:
84
+
The _Desktop_ installation provisions an Oracle database into the Kubernetes cluster. The images must be downloaded from [Oracle Cloud Infrastructure Registry (Container Registry)](https://container-registry.oracle.com/) before continuing.
85
+
86
+
While directly logged into the `obaas` user, process these steps:
If the `podman pull` command fails, navigate in a web browser to [Oracle container registry](https://container-registry.oracle.com), click the "database" tile and select "enterprise". On the right hand side of the page, if prompted, sign-in. Select "Language" and accept the Terms. Try the `podman pull` command again.
103
+
68
104
### Start MiniKube
69
105
70
-
As the `obaas` user, run these commands:
106
+
While directly logged into the `obaas` user, run these commands:
71
107
72
108
```bash
73
-
echo"PATH=\$PATH:/usr/sbin">>~/.bashrc
109
+
minikube config set rootless true
74
110
minikube config set driver podman
75
-
minikube start --cpus max --memory 7900mb --disk-size='40g' --container-runtime=cri-o
111
+
minikube start --cpus max --memory 16G --disk-size='40g' --container-runtime=containerd
76
112
minikube addons enable ingress
77
-
```
78
-
79
-
### Download Oracle Backend for Spring Boot and Microservices
80
-
81
-
Download [Oracle Backend for Spring Boot](https://github.com/oracle/microservices-datadriven/releases/download/OBAAS-1.0.0/onprem-ebaas_latest.zip) and unzip into a new directory.
82
-
83
-
As the `obaas` user, run these commands:
84
-
85
-
```bash
86
-
unzip onprem-ebaas_latest.zip -d ~/obaas
113
+
echo"KUBECONFIG=~/.kube/config">>~/.bashrc
87
114
```
88
115
89
116
### Install Ansible
90
117
91
-
As the `obaas` user, change to the source directory and install Ansible by running these commands:
118
+
While directly logged into the `obaas` user, change to the source directory and install Ansible by running these commands:
92
119
93
120
```bash
94
121
cd~/obaas
@@ -110,14 +137,12 @@ Assuming the source was unzipped to `~/obaas`, run the following command as the
110
137
111
138
### Open a Tunnel
112
139
113
-
In order to push the images to the Container Registry in the Kubernetes cluster, open a new terminal and process this command
114
-
as the `obaas` user:
115
-
116
-
As the `obaas` user, run these commands:
140
+
In order to push the images to the Container Registry in the Kubernetes cluster, open a new terminal and process this command while being directly logged into the `obaas` user:
ansible-playbook ~/obaas/ansible/k8s_apply.yaml -t full
170
+
```
138
171
139
172
## Notes
140
173
141
174
### config-server and obaas-admin Pod Failures
142
175
143
-
The Pods in the `config-server` and `obaas-admin` namespaces rely on the database that is created in
144
-
the `oracle-database-operator-system`. During the initial provisioning, these Pods start well before the database is available
145
-
resulting in initial failures. They resolve themselves once the database becomes available.
176
+
The Pods in the `azn-server`, `config-server`, and `obaas-admin` namespaces rely on the database that is created in the `oracle-database-operator-system`. During the initial provisioning, these Pods start well before the database is available resulting in initial failures. They resolve themselves once the database becomes available.
146
177
147
178
You can check on the status of the database by running this command:
148
179
149
180
`kubectl get singleinstancedatabase baas -n oracle-database-operator-system -o "jsonpath={.status.status}"`
150
181
151
182
### VPN and Proxies
152
183
153
-
If you are behind a Virtual Private Network (VPN) or proxy, see https://minikube.sigs.k8s.io/docs/handbook/vpn_and_proxy/ for more
154
-
details on additional tasks.
184
+
If you are behind a Virtual Private Network (VPN) or proxy, see [Minikube Proxies and VPNs](https://minikube.sigs.k8s.io/docs/handbook/vpn_and_proxy/) for more details on additional tasks.
155
185
156
186
Next, go to the [Getting Started](../getting-started/) page to learn more.
0 commit comments