Skip to content

Commit 5b98d80

Browse files
authored
Azure Documentation (#624)
1 parent daecdc7 commit 5b98d80

File tree

16 files changed

+181
-12
lines changed

16 files changed

+181
-12
lines changed
14.4 KB
Loading
86.4 KB
Loading
33.8 KB
Loading
Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
# Azure/OCI Multi-Cloud Installation
2+
3+
The Oracle Backend for Parse Platform is available to install in Multi-Cloud (Azure and OCI). This installation will deplpoy the Oracle Backend for Parse Platform in Azure with an Oracle Autonomous Database running in OCI.
4+
5+
## Prerequisites
6+
7+
You must meet the following prerequisites to use the Oracle Backend for Spring Boot Multi-Cloud (Azure and OCI):
8+
9+
* An account on Azure
10+
* An account on OCI
11+
12+
## Download
13+
14+
Download [Oracle Backend for Spring Boot](https://github.com/oracle/microservices-datadriven/releases/download/OBAAS-1.0.0/azure-mbaas-platform_latest.zip).
15+
16+
## Setup
17+
18+
A few setup steps are required in both Oracle Cloud Infrastructure (OCI) and Azure to deploy the Oracle Backend for Parse Platform application.
19+
20+
### OCI
21+
22+
The Multi-Cloud Installation will provision an Oracle Autonomous Database in OCI via the [Oracle Database Operator for Kubernetes (OraOperator)](https://github.com/oracle/oracle-database-operator).
23+
24+
To allow the OraOperator access to OCI, an [API Key](https://docs.oracle.com/en-us/iaas/Content/API/Concepts/apisigningkey.htm) must be generated:
25+
26+
1. Log into OCI
27+
2. Open the Profile menu ![User Profile Menu](userprofilemenu.png) and click My profile.
28+
3. In the Resources section at the bottom left, click API Keys
29+
4. Click Download Private Key and save the key as `private_key.pem`. You do not need to download the public key.
30+
5. Click Add.
31+
32+
The key is added and the Configuration File Preview is displayed. The file snippet includes required parameters and values you'll need. Copy and paste the configuration file snippet from the text box and keep handy for later steps.
33+
34+
### Azure
35+
36+
The Multi-Cloud Installation will be done via the Azure Cloud Shell. The following steps are required in Azure to prepare for the installation.
37+
38+
1. Log into Azure
39+
2. Open the Azure Cloud Shell
40+
![Azure Cloud Shell Icon](AzureCloudShellIcon.png)
41+
3. Upload the [Oracle Backend for Spring Boot](https://github.com/oracle/microservices-datadriven/releases/download/OBAAS-1.0.0/azure-ebaas-platform_latest.zip) Stack
42+
![Azure Upload](AzureUpload.png)
43+
4. Upload the API Private Key (`private_key.pem`)
44+
5. Unzip the Stack to a directory called `obaas`
45+
`unzip azure-ebaas-platform_latest.zip -d obaas`
46+
6. Move the `private_key.pem` file to obaas
47+
`mv private_key.pem obaas/`
48+
5. Run the configuration helper script, inputing the values from the API Key
49+
* `cd ~/obaas`
50+
* `./obaas_configure.py`
51+
![Azure Configure](AzureConfigure.png)
52+
53+
## Install Ansible
54+
55+
Install Ansible to run the Configuration Management Playbook. The helper scripts will create a Python Virtual Environment and install Ansible and additional modules:
56+
57+
```bash
58+
cd ~/obaas/ansible
59+
./setup_ansible.sh
60+
source ./activate.env
61+
```
62+
63+
## Deploy the Infrastructure
64+
65+
From the Azure Cloud Shell:
66+
67+
```bash
68+
cd ~/obaas
69+
terraform init
70+
terraform plan -out=multicloud.plan
71+
terraform apply "multicloud.plan"
72+
```
73+
74+
## Finish
75+
76+
Next, move on the the [Getting Started](../getting-started/) page to learn how to use the newly installed environment.
716 Bytes
Loading

docs-source/mbaas/content/on-premises/_index.md

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,9 @@ app_id: "PiITzsu3RCc499RRDOYOBgWnyAlMm6695r1536y1"
6161
master_key: "Q5CP7MHpoZhSwbk39XpHxamp4rJJ4F3vPZ3NZ7ee"
6262
dashboard_username: "ADMIN"
6363
dashboard_password: "OZ0-mSt-27Evb-Qy"
64-
bucket: ""
64+
storage: ""
65+
access_key: ""
66+
private_key: ""
6567
...
6668
```
6769

@@ -79,7 +81,7 @@ BAASPDB:
7981
username: 'PDBADMIN'
8082
password: 'Correct-horse-Battery-staple-35'
8183
service: '(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=localhost)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=BAASPDB)))'
82-
wallet: ''
84+
ocid: ''
8385
...
8486
```
8587

@@ -95,19 +97,21 @@ compartment_ocid: ''
9597
registry_username: 'oracle'
9698
registry_password: 'Correct-horse-Battery-staple-35'
9799
push_registry_url: 'docker.io/myorg'
98-
pull_registry_url: 'docker.io/myorg'
99-
registry_auth:
100+
push_registry_auth:
100101
auths:
101102
docker.io/myorg:
102103
auth: 'b3JhY2xlOjdaUVgxLXhhbFR0NTJsS0VITlA0'
104+
pull_registry_url: 'docker.io/myorg'
105+
pull_registry_auth:
106+
auths:
103107
docker.io/myorg:
104108
auth: 'b3JhY2xlOjdaUVgxLXhhbFR0NTJsS0VITlA0'
105109
...
106110
```
107111

108-
Leave `compartment_ocid` blank for all On-Premises installations. Specify the URL/authentication credentials for your Container Repository in `pull_registry_url`, `push_registry_url`, `registry_username` and `registry_password`.
112+
Specify the URL/authentication credentials for your Container Repository in `pull_registry_url`, `push_registry_url`, `registry_username` and `registry_password`.
109113

110-
For the `registry_auth` section, manually log into your repository and copy the values found in file created, often found in `$HOME/.config/containers/auth.json`
114+
For the `<pull|push>_registry_auth` section, manually log into your repository and copy the values found in file created, often found in `$HOME/.config/containers/auth.json`
111115

112116
You maybe curious as to why there is duplication between the push and pull URL's. The pull URL is used inside the pods while the push is used from the deployment machine. If you have a private registry inside the Kubernetes cluster, these URL's could be different. This is the case for the _Desktop_ installation; the push URL is `localhost:5000`, while the pull URL is `<Registry Pod ClusterIP>:5000`.
113117

docs-source/mbaas/data/menu/main.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
main:
22
- name: Setup
33
ref: "/setup"
4+
- name: "Multi-Cloud (OCI/Azure) Installation"
5+
ref: "/azure"
46
- name: "On-Premises Installation"
57
ref: "/on-premises"
68
sub:
14.4 KB
Loading
86.4 KB
Loading
33.8 KB
Loading

0 commit comments

Comments
 (0)