Skip to content

Building and Running

Wybren Kortstra edited this page May 26, 2017 · 4 revisions

Building and Running the Drone Simulator

This page attempts to describe as accurately as possible how to build and run the drone simulator.

Building docker images

In the docker_images folder there is a script that calls the bundles.sh script. The bundles.sh script builds the bundles using maven. Then the bundles are moved to the correct folders. The script then builds the base image that is extended by the docker images that need Felix. Then last we use docker-compose to build and run the images at once.

cd docker_images
./prepare_docker_images.sh
docker-compose up --build

Running the docker images

To run the docker images without rebuilding them, simply run the following command from the project root.

docker-composer up

This runs etcd, rabbitmq and the game engine. Next, all you have to do is start the visualisation, which is not done in a docker container.

Running the visualisation

We want to run the visualisation with the log level on warning. This will disable log messages on info level, which slow down the visualisation of the drones.

cd bundles
java -Dorg.ops4j.pax.logging.DefaultServiceLog.level=WARN -jar visualisation-0.1.jar