Skip to content

mikarinneoracle/weblogic-atp-terraform-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Demo - Deploying WebLogic from OCI Marketplace UCM image with ATP using oci cli and Terraform in OCI cloud shell including maven build from source. Includes DB schema creation in Terraform with Liquibase.

Deploying ATP to a private subnet instead of public in this branch. (Excludes the Terraform Liquibase part.)

Instructions

prereq: oci cli must be working in oci cloud shell.

Open oci cloud shell

Run git clone https://github.com/mikarinneoracle/weblogic-atp-terraform-demo.git

Edit script.sh with oci code editor
=> add your oci compartment by replacing <YOUR COMPARTMENT OCID> and the region if necessary (lines 1-2):

compt_ocid='<YOUR COMPARTMENT OCID>'
region="eu-amsterdam-1"

Optionally can add your public ssh key by replacing <YOUR OPTIONAL SSH KEY> in the script.sh (line 3):

sshKey="<YOUR OPTIONAL SSH KEY>"

Note: Just make sure you are running the Cloud Shell in the same region as this one.

Run

    sh script.sh

Using Terraform the script will create a "weblogic-VCN" and a compute VM instance "webLogic" from Marketplace UCM image adding it to the VCN public subnet. Terraform will also create autonomous database Weblogic-ATP" with Internet access and adds a custom schema to it. Finally it will do a maven build from source app then and install the built WebLogic sample app.war on the VM using instance-agent.

Note: To make the VM instance-agent run succesfully add the following policy to the dynamic group you are running within:

Allow dynamic-group MyDynamicGroup to use instance-agent-command-execution-family in compartment <YOUR COMPARTMENT>

Access http://<ip address of the VM>:7001/app from your browser.

Access "price admin" from the Admin -link on the page. Admin username is priceadmin and password is WelcomeFolks123#! Edit prices and options and then save and reload the price page.

WLS console can be accessed using url:

http://<ip address of the VM>:7001/console with user weblogic and password Welcome1.

After making sure WebLogic sample app works delete all created resources with Terraform by running:

    sh terraform-destroy.sh

See on Youtube

Build from source and deploy:

https://www.youtube.com/watch?v=vHj5cyT9K2E

Update JSP, rebuild and re-deploy:

https://www.youtube.com/watch?v=EQl3Hia-Cng

Example how to run WKTUI on OCI remotely using VNC to move this WLS domain/app to Kubernetes (OKE) using WKTUI:

https://www.youtube.com/watch?v=pRCXJ6DMtkY

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published