Skip to content

Latest commit

 

History

History
101 lines (68 loc) · 2.06 KB

Checkups.md

File metadata and controls

101 lines (68 loc) · 2.06 KB

Bridge Logistics Checkups

1. Troubleshooting

In order to make sure that the Demo runs smoothly please check the following

  1. In your /etc/hosts you have this:
127.0.0.1       bl-central-kafka-server
  1. Start the services in the containerized environment
make docker
  1. Make sure to check everything after you start make docker:
make logs-cassandra-server
make logs-bridge-kafka-server
make logs-train-kafka-server
  1. Restart the apps container
make docker-apps
  1. If you see any error logs on the previous commands, please try the following commands:
make docker-dependent
make docker-train
make docker-cassandra
make docker-bridge

Recheck if they all started well this time and restart the apps container.

  1. Start MeterReadingsLauncher and PassengersReadingLauncher outside the containers

  2. Enjoy the game! 🚂


2. Start the demo

source venv/bin/activate
make demo

3. Guides

Check the Guide.md file for log recordings of how I started the Demo.

4. In detail

To start containers:

make docker

If you with to stop everything then run:

make stop

and if you want to remove everything then run:

make docker-delete

If you want to get everything clean please use:

make prune-all

Please check the Makefile and make sure you understand the available options before calling them.

Before running the demo you need to create a virtual environment in order to run Python 2 instead of Python 3:

make venv
source venv/bin/activate
make venv-install

Make sure you are still in virtual environment (venv). If not, run the command source venv/bin/activate again. To start the demo please run:

make demo