Skip to content

BuildAndRun

Marc Sluiter edited this page Aug 4, 2014 · 4 revisions

Building an running the Webracer project

  1. Using Docker and the provided Dockerfile

    • Install docker if not done yet: https://docs.docker.com/installation/
    • Download the Webracer Dockerfile to an empty directory: https://github.com/slintes/Webracer/blob/master/docker/Dockerfile
    • Cd to that directory and run "docker build -t webracer ." for creating a docker image which contains everything to run Webracer. The image is tagged with the name "webracer".
    • Start the just created image with "docker run -p 8080:8080 -i -t webracer /bin/bash". Feel free to change the first portnumber to your need, the Webracer itself will listen on port 8080.
    • Start Webracer with "cd Webracer && java -jar repoOsgi/WebracerStarter.jar &"
    • If you need to rebuild Webracer you can do it with "cd Webracer && ./gradlew install"
  2. Manually

Configuration

There are 2 places where it is possible to change the behaviour of Webracer:

  1. variables.js in WebracerWeb: here you can change speeds, steering angles and the number of laps
  2. RaceControl.java in WebracerRace: here you can change the timeouts
    In both cases you need to rebuild and restart Webracer