Testing the Application Locally in a Docker Setup
Procedure
-
Execute the following command on a docker terminal to run the application image:
docker run -i -p 8080:8080 -e "DB_URL=jdbc:postgresql://52.18.253.34:5433/
postgres" -e "DB_USERNAME=bwuser" -e "DB_PASSWORD=password" tibco/bwce-restbookstore-
app
-
Execute the following command to view the logs to make sure that the application has started successfully.
docker logs <container name>
-
Get the docker machine IP.
Copyright © Cloud Software Group, Inc. All rights reserved.