Steps to deploy BWCE App on Openshift/Origin

Steps to deploy BWCE App on Openshift/Origin

book

Article ID: KB0076077

calendar_today

Updated On:

Products Versions
TIBCO BusinessWorks Container Edition All Versions

Description

This knowledge article provides steps to get started with a BWCE application deployment on Openshift. For more sophisticated use cases, please consult both Openshift and TIBCO BWCE documents. 

Issue/Introduction

Steps to deploy BWCE App on Openshift/Origin

Environment

Linux

Resolution

Steps to deploy BWCE App on Openshift/Origin:

1.  Create the base-images for bwce

Follow the same steps that you use to create base image for docker on linux. Kindly refer https://docs.tibco.com/pub/bwce/2.4.3/doc/html/GUID-91EA80AA-08EF-4CB3-A6A7-E8551A441AC1.html
Git repo is present at: https://github.com/TIBCOSoftware/bwce-docker

2. After cloning the Git repo, place runtime zip under folder ....../master/bwce-docker-master/resources/addons/plugins/ bwce-runtime-<version>

3. Access Openshift using commands below:

Developer Access: ./oc login -u developer -p developer
Admin Access: ./oc login -u system:admin

4. Find the IP of Openshift private docker registry service:

→  ./oc get svc docker-registry --namespace=default

docker-registry    ClusterIP     172.30.1.1    <none>    5000/TCP    3d

cluster-ip (172.30.1.1) is the IP for service

5. Switch to developer access

→ ./oc login -u developer -p developer

6. Create OpenShift Project

to create project:
→ ./oc new-project <project_name>
e.g. ./oc new-project bwce

7. Build application images with following tag <registry-service-ip>:5000/<project-name>/<app-name>

→ docker build -t 172.30.1.1:5000/bwce/servicenow .      //don't miss the "." in command

8. Push Docker images to openshift registry:

→ ./oc whoami    //gives-  developer

→ ./oc whoami -t      //gives- 4s0DraV3tC2nOCFWzDKghLKSquGdsM-zTNzY7tT-CiE

→ docker login -u developer -p 4s0DraV3tC2nOCFWzDKghLKSquGdsM-zTNzY7tT-CiE 172.30.1.1:5000

→ docker push 172.30.1.1:5000/bwce/servicenow

→ ./oc get is

9. Prepare Kubernetes Configuration file

→ ./oc create -f <path to your manifest.yml>

10. See the running Openshift services

→ ./oc get svc

11. Expose route for the running services

→ ./oc expose service <service_name>

12. Check status and logs of the Application

→ ./oc get pods

→ ./oc logs <pod_name>