Add pipeline to verify WLS on AKS #32
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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:
It verifies:
It provides two mode (based on the input 'isForDemo'):
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:
az login
gh auth login
cd <path to repo>/weblogic-azure/.github/workflows
./setupForWlsAks.sh
./teardownForWlsAks.sh
to clean things up, the required DISAMBIG_PREFIX can be found in the output of setupForWlsAks.sh