Testing the Application Locally in a Docker Setup
Procedure
-
Execute the command in a docker terminal:
docker run -ti -e "DB_URL=jdbc:tibcosoftwareinc:oracle://54.6.155.176:1521;ServiceName=orcl" -e "DB_USERNAME=bwuser" -e "DB_PASSWORD=password" bwce-jdbc-basic-app
-
Execute the following command to views the logs to make sure that the application has successfully started:
docker logs <container name>
For example,docker logs jdbc-basic-app
-
Check the logs to make sure application has run successfully.
You should see some message like below:
13:49:06.733 INFO [Framework Event Dispatcher: Equinox Container: 608aaa95-52d7-0015-1f90-d3fd61937bf8] com.tibco.thor.frwk.Application - Started by BusinessStudio, ignoring .enabled settings. 13:49:11.962 INFO [bwEngThread:In-Memory Process Worker-6] c.t.b.p.g.L.t.b.s.b.s.j.Z.Log - Output of getCityInfo : 61801 Urbana Illinois Urbana, Illinois, United States 40.11 88.207 Output of getCityDistance : Distance between two cities is : 4 miles. 61801 61820 Urbana Champaign Illinois Illinois Urbana, Illinois, United States Champaign, Illinois, United States
Copyright © Cloud Software Group, Inc. All rights reserved.