Testing the Application Locally in a Docker Setup

Procedure

  1. 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
    
    
  2. Execute the following command to view the logs to make sure that the application has started successfully.
    docker logs <container name>
    
    
  3. Get the docker machine IP.