Table of Contents
- Pre-requisites:
- Step 1: BusinessWorks? Container Edition app configs / Generate POM files:
- Step 2: Jenkin configs:
Here are the steps to create an Automation Pipeline for CI using Maven for dependency management, Jenkins for job scheduling for TIBCO BusinessWorks? Container Edition deployments to Kubernetes (GKE) over Docker containers.
Pre-requisites:
-
Install Maven plugin from https://github.com/TIBCOSoftware/bw6-plugin-maven/releases on existing TIBCO BusinessWorks? 6 or TIBCO BusinessWorks? Container Edition installation to generate the required POM files in TIBCO BusinessStudio?.
-
Install Jenkins from https://jenkins.io/ or there?s also a Jenkins docker image on https://hub.docker.com/_/jenkins
-
Install Docker - https://docs.docker.com/docker-for-mac/install/ (a reference to the link for Mac)
-
Access to GCP Console https://console.cloud.google.com (needed if you?re leveraging GKE)
-
Install gcloud CLI from https://cloud.google.com/sdk/docs/quickstart-macos (needed if you?re leveraging GKE for the scenario)
Step 1: BusinessWorks? Container Edition app configs / Generate POM files:
-
Right-click on the BusinessWorks? Container Edition application and click Generate POM for Application.
-
Use the below-shown format docker values during the POM generation wizard in TIBCO BusinessStudio?.
-
The Deploy Option is Docker for this specific scenario. You can choose a suitable option per your scenario.
-
In the second wizard to deploy it to Docker containers, provide the below-shown values (image name and BusinessWorks? Container Edition image values could vary based on the scenario) in the wizard:
-
In the last wizard to deploy it to K8S platform, use the below specific format values:
-
docker-dev properties (generated by Maven wizard) should look like shown below.
-
K8s-dev properties (generated by Maven wizard) should look like shown below:
Step 2: Jenkin configs:
-
Install required plugins in Jenkins.
-
Mandatory:
-
Manage Plugins ? install two plugins ? Maven Integration and Docker.
-
-
Optional:
-
-
Under Global Tool Configs, add Maven and Docker Home.
-
Under Global security config ? select the below option (Plugin Manager -- User browser for metadata download) to disable SSL.
-
Now, let?s create a Maven project to deploy BusinessWorks? Container Edition app on K8s over Docker containers.
-
Create a pre-build step ? execute shell and execute the required commands.
-
In this specific case, I?m also linking the deployment job only if the Unit Test job is successful (Projects to Watch and Build after other projects are built option).
-
gcloud command is setting the project ID specific to the env. (will vary in your use-case based on your GKE platform)
-
login to docker to execute the fabric8 commands via Maven.
-
execute the kubectl command to have the token set for this specific job.
-
-
Under the build section ? specify the POM and the required goals.
-
Save and run the build.
-
Under the Build History, if you click the build number, you should see the Console Output displaying the result of your build.
-
BusinessWorks? Container Edition app should be deployed on K8s and running.<;p>
Recommended Comments
There are no comments to display.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now