Skip to content

Conversation

zhengchang907
Copy link

@zhengchang907 zhengchang907 commented Oct 14, 2021

Please note:
This PR is ready to be merge, but not ready to be tested yet. Testing this pipeline requires additional changes in repo Azure-Samples/cargotracker-azure, the PR is pending

This PR resolves #19

Code change

setupForWlsAks.sh
This script initializes the repo from which this file is was cloned with the necessary secrets to run the workflows. It provides best experience with Azure CLI and GitHub CLI installed locally.

teardownForWlsAks.sh
This script removes the secrets and deletes the azure resources created in setupForWlsAks.sh.

setupWlsAksParameters.json
This is a template of parameter file which is used for setting up deployment parameters in pipeline.

testWlsAks.yml
This is the pipeline logic, it creates:

  • An Azure PostgresSQL DB
  • An Azure Storage Account
  • An WLS on AKS with DB connection and CargoTracker sample application deployed using the offer's templates

It verifies:

  • All Azure resources are successfully created
  • CargoTrack application is accessible as expected

It provides two mode (based on the input 'isForDemo'):

  • If isForDemo == 'false', this pipeline:
    • Destroys all Azure resources after the CargoTracker accessibility validation.
  • If isForDemo == 'true', this pipeline:
    • Makes necessary JMS configuration to WLS cluster that enable all features of CargoTracker for demoing
    • Will not destroy any Azure resources

genDatasourceModel.sh
Update the 'GlobalTransactionsProtocol' to be 'EmulateTwoPhaseCommit' for better JDBC support(necessary to run CargoTracker)

Testing

Test runs in forked repo

After the code gets merged and ready to test

In a command line window:

  • Install Azure CLI and GitHub CLI locally
  • Clone this repo to your local machine
  • Login to Azure properly using Azure CLI by running az login
  • Login to GitHub using GitHub CLI by runninggh auth login
  • Run cd <path to repo>/weblogic-azure/.github/workflows
  • Run ./setupForWlsAks.sh
  • Type in your credentials and repo info as asked by prompt message
  • Got GitHub repo's Setting page: https://github.com/oracle/weblogic-azure/settings
  • Check all Secrets are successfully created
  • Go to GitHub repo's Action page: https://github.com/oracle/weblogic-azure/actions
  • Select 'Test WLS on AKS' workflow and click 'Run workflow' button, in the popup window, type in mode you want and click the green 'Run workflow' button as the following picture
    image
  • After the pipeline is completed, make sure you run ./teardownForWlsAks.sh to clean things up, the required DISAMBIG_PREFIX can be found in the output of setupForWlsAks.sh

Zheng Chang added 4 commits October 14, 2021 15:33
Signed-off-by: Zheng Chang <zhengchang@microsoft.com>
Signed-off-by: Zheng Chang <zhengchang@microsoft.com>
Signed-off-by: Zheng Chang <zhengchang@microsoft.com>
Signed-off-by: Zheng Chang <zhengchang@microsoft.com>
@rjeberhard rjeberhard merged commit 5545243 into oracle:main Oct 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Use Zheng's cargotracker pipeline work as basis for end-to-end-test for WLS on AKS

2 participants