first commit

This commit is contained in:
2024-04-07 10:05:07 -03:00
commit 33ab388e6c
59 changed files with 286 additions and 0 deletions

10
.idea/.gitignore generated vendored Normal file
View File

@@ -0,0 +1,10 @@
# Default ignored files
/shelf/
/workspace.xml
# Editor-based HTTP Client requests
/httpRequests/
# Datasource local storage ignored files
/dataSources/
/dataSources.local.xml
# Zeppelin ignored files
/ZeppelinRemoteNotebooks/

9
.idea/Weblogic Market Place OCI.iml generated Normal file
View File

@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="JAVA_MODULE" version="4">
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$" />
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>

17
.idea/aws.xml generated Normal file
View File

@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="accountSettings">
<option name="activeProfile" value="profile:default" />
<option name="activeRegion" value="us-east-2" />
<option name="recentlyUsedProfiles">
<list>
<option value="profile:default" />
</list>
</option>
<option name="recentlyUsedRegions">
<list>
<option value="us-east-2" />
</list>
</option>
</component>
</project>

7
.idea/codeStyles/Project.xml generated Normal file
View File

@@ -0,0 +1,7 @@
<component name="ProjectCodeStyleConfiguration">
<code_scheme name="Project" version="173">
<ScalaCodeStyleSettings>
<option name="MULTILINE_STRING_CLOSING_QUOTES_ON_NEW_LINE" value="true" />
</ScalaCodeStyleSettings>
</code_scheme>
</component>

5
.idea/codeStyles/codeStyleConfig.xml generated Normal file
View File

@@ -0,0 +1,5 @@
<component name="ProjectCodeStyleConfiguration">
<state>
<option name="PREFERRED_PROJECT_CODE_STYLE" value="Default" />
</state>
</component>

9
.idea/markdown.xml generated Normal file
View File

@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="MarkdownSettings">
<enabledExtensions>
<entry key="MermaidLanguageExtension" value="true" />
<entry key="PlantUMLLanguageExtension" value="true" />
</enabledExtensions>
</component>
</project>

6
.idea/misc.xml generated Normal file
View File

@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectRootManager">
<output url="file://$PROJECT_DIR$/out" />
</component>
</project>

8
.idea/modules.xml generated Normal file
View File

@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/.idea/Weblogic Market Place OCI.iml" filepath="$PROJECT_DIR$/.idea/Weblogic Market Place OCI.iml" />
</modules>
</component>
</project>

6
.idea/vcs.xml generated Normal file
View File

@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="" vcs="Git" />
</component>
</project>

201
README.md Normal file
View File

@@ -0,0 +1,201 @@
# Weblogic OCI Market Place
## Introduction
In this material, we will show how to create an Oracle Weblogic cluster on Oracle Cloud through Market Place. Oracle Cloud Market Place is a rich library of click-to-deploy Terraform stacks that provides complete, fully automated solutions for deploying third-party software on Oracle Cloud Infrastructure.
Through the Market Place, we will have a Weblogic cluster operating in high availability, scalable and integrated with OCI's VCN network. In addition, we will activate OCI Observability where it will be possible to monitor and track the operating metrics of the Weblogic cluster.
### Create an Object Storage to save your Terraform Script
First of all, we need to create a bucket to store the **Terraform** script generated automatically in the **OCI Market Place**. Go to the Main Menu and click on Storage and Bucket options
![img_6.png](img_6.png)
Select your compartment and click on **Create Bucket**. This bucket will be used to store the **Terraform** script.
![img_7.png](img_7.png)
Put a name for your Bucket. Put **Terraform_Scripts** as an example for this tutorial. Maintain the other options as is and click **Create** button.
![img_8.png](img_8.png)
### Create a Secret
Now we need to create 2 secrets in the **OCI Vault**. For security reasons, the **OCI Vault** is a very good way to store passwords and certificates and the **Weblogic Cluster** will use:
- A password for the Admin Console
- A password to use and store the **auto-scaling functions** in the **OCI Container Registry** (Image repository in OCI)
Now, go to the Main Menu and click on **Identity & Security** and **Vault** options.
![img_26.png](img_26.png)
Select the compartment you want to store the secrets and click on **Create Vault** button
![img_29.png](img_29.png)
Put a name for your vault, confirm the compartment and click on **Create Vault** button
![img_30.png](img_30.png)
Confirm the vault creation and let's create a key. Click on **Create Key** button
![img_33.png](img_33.png)
Confirm the compartment and put a name for your key. For example, put **weblogickey** on Name and click on **Create Key** button
![img_34.png](img_34.png)
Confirm the key creation
![img_35.png](img_35.png)
Now, click on **Secrets** option and click on **Create Secret** button
![img_31.png](img_31.png)
We will create the **Weblogic Admin** password. Confirm the compartment, put a name for your first secret. Select **Manual secret generation** to include the password. Select **Plain-Text** option on **Secret Type Template** and write your password. Finally, click on **Create Secret** button.
![img_47.png](img_47.png)
>**Note:** The password must start with a letter, is between 8 and 30 characters long, contain at least one number, and, optionally, any number of the special characters ($ # _). **If you don't respect this rule, the Weblogic Instance cannot be created.**
![img_37.png](img_37.png)
Now we will create a new secret for your Image Repository (**OCI Container Registry**).
**Oracle Cloud Infrastructure Container Registry** is an open standards-based, Oracle-managed Docker registry service for securely storing and sharing container images. Engineers can easily push and pull Docker images with the familiar Docker Command Line Interface (CLI) and API. To support container lifecycles, Registry works with Container Engine for Kubernetes, Identity and Access Management (IAM), Visual Builder Studio, and third-party developer and DevOps tools
If you don't know about how to use the **OCI Repository**, please see this article [Push an Image to Oracle Cloud Infrastructure Registry](https://www.oracle.com/webfolder/technetwork/tutorials/obe/oci/registry/index.html), you will need to know your **token** access.
Again, click on **Create Secret** button and fill the **Secret Contents** with your **OCIR token**. Click on **Create Secret** button.
![img_40.png](img_40.png)
You can see the **Base 64** conversion value of your token by clicking the **Show Base64 conversion** toggle key.
![img_46.png](img_46.png)
Confirm if your 2 secrets were created
![img_41.png](img_41.png)
### Create the Weblogic Clustered Instance
Let's create your **Weblogic Cluster**. Go to the Main menu
![img_1.png](img_1.png)
Select **Marketplace** option
![img.png](img.png)
Now select the **All Applications**
![img_2.png](img_2.png)
Write on **Search** text box "webogic". The **Weblogic** options will appear on screen
For the **Weblogic H.A.** option, select for example the **Weblogic Enterprise** or **Weblogic Suite**.
![img_3.png](img_3.png)
Select the **Version** and compartment for your **Weblogic Cluster**, confirm the acceptance terms and click on **Launch Stack** button
![img_4.png](img_4.png)
Click on **Use custom Terraform providers** option to generate your Terraform scripts. Select the compartment of your bucket previously created and your bucket name.
![img_9.png](img_9.png)
You can put a name for your stack or leave the default name.
![img_10.png](img_10.png)
Click **Next** button. Put a prefix name for your **Weblogic** stack. All resources created in Terraform process will contain this prefix name
![img_11.png](img_11.png)
Generate a Public and Private key file. Put the public key here. This will be used to authenticate your bastion instance.
![img_12.png](img_12.png)
Maintain **OCI Policies** enabled.
![img_13.png](img_13.png)
### Working with VCN, Subnets, Private/Public, Bastion
You can use a valid **VCN** inside the **OCI** or create a new one. If you don't have any **VCN** create, select **Create a Virtual Cloud Network** option.
![img_14.png](img_14.png)
### Working with Load Balancer
Your **Weblogic** instance will be created on a clustered environment. So, you can stablish the number of **Weblogic** instances and can balance the use of this servers through a **Load-Balancer**. Select **Provision Load Balancer** option.
![img_15.png](img_15.png)
You can customize the **CIDR** block and performance options for the **Load Balancer**
![img_24.png](img_24.png)
### Working with IDCS
**Oracle Identity Cloud Service (IDCS)** is an Identity-as-a-Service (IDaaS) solution available in Oracle Public Cloud (OPC). It is designed to extend enterprise controls by automating PaaS and SaaS account provisioning and deprovisioning, simplifying the user experience for accessing cloud applications by providing seamless integration with enterprise identity stores and authentication services, and facilitating compliance activities by clearly reporting on cloud application usage
You can integrate your **Weblogic Cluster** with IDCS. If you want to integrate with **IDCS**, click on **Enable Authentication Using Identity Cloud Service** option
![img_16.png](img_16.png)
### Observability
![img_17.png](img_17.png)
![img_39.png](img_39.png)
### Auto Scaling
![img_18.png](img_18.png)
![img_42.png](img_42.png)
### File System - H.A.
![img_19.png](img_19.png)
![img_25.png](img_25.png)
### Configure a VCN
![img_20.png](img_20.png)
### Domain Configuration
![img_38.png](img_38.png)
### Configure Weblogic Instances
![img_22.png](img_22.png)
### Working with Bastion
![img_23.png](img_23.png)
## Confirm the Stack creation
![img_43.png](img_43.png)
![img_44.png](img_44.png)
![img_45.png](img_45.png)
## Reference
- [Create a Non-JRF Instance Using Oracle WebLogic Server for OCI With New VCN](https://docs.oracle.com/en/cloud/paas/weblogic-cloud/wlcgs/index.html)
- [Autoscaling Weblogic in OCI](https://blogs.oracle.com/weblogicserver/post/monitoring-and-autoscaling-oracle-weblogic-server-for-oci-stack-with-customized-domains)
- [OCI APM Agent for Weblogic](https://docs.oracle.com/en-us/iaas/application-performance-monitoring/doc/deploy-apm-java-agent.html#GUID-081D2588-8A46-46CA-9297-3654002702D0)
- [Install and Configure APM Java Agent On Oracle Weblogic Server](https://docs.oracle.com/en/cloud/paas/management-cloud/dmapm/install-and-configure-apm-java-agents-oracle-weblogic-server.html#GUID-05347698-5AED-4980-BBAC-0588BED98DDE)
- [Push an Image to Oracle Cloud Infrastructure Registry](https://www.oracle.com/webfolder/technetwork/tutorials/obe/oci/registry/index.html)

View File

@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="GENERAL_MODULE" version="4">
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>

BIN
img.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 253 KiB

BIN
img_1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 482 KiB

BIN
img_10.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

BIN
img_11.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

BIN
img_12.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB

BIN
img_13.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

BIN
img_14.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 71 KiB

BIN
img_15.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

BIN
img_16.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

BIN
img_17.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

BIN
img_18.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

BIN
img_19.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.4 KiB

BIN
img_2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 124 KiB

BIN
img_20.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 56 KiB

BIN
img_21.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 137 KiB

BIN
img_22.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 129 KiB

BIN
img_23.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 54 KiB

BIN
img_24.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 103 KiB

BIN
img_25.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 41 KiB

BIN
img_26.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 250 KiB

BIN
img_27.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 564 KiB

BIN
img_28.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 94 KiB

BIN
img_29.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 532 KiB

BIN
img_3.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 833 KiB

BIN
img_30.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 94 KiB

BIN
img_31.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 690 KiB

BIN
img_32.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 134 KiB

BIN
img_33.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 684 KiB

BIN
img_34.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 84 KiB

BIN
img_35.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 111 KiB

BIN
img_36.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 138 KiB

BIN
img_37.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 98 KiB

BIN
img_38.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 147 KiB

BIN
img_39.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 67 KiB

BIN
img_4.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 860 KiB

BIN
img_40.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 136 KiB

BIN
img_41.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 150 KiB

BIN
img_42.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 110 KiB

BIN
img_43.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 244 KiB

BIN
img_44.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 758 KiB

BIN
img_45.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 238 KiB

BIN
img_46.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

BIN
img_47.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 130 KiB

BIN
img_5.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

BIN
img_6.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 150 KiB

BIN
img_7.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 612 KiB

BIN
img_8.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 115 KiB

BIN
img_9.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB