-
Notifications
You must be signed in to change notification settings - Fork 1
BuildAndRun
Marc Sluiter edited this page Aug 4, 2014
·
4 revisions
-
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"
-
Manually
- Install Java 8 SDK if not done yet: http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
- Clone the Webracer repository https://github.com/slintes/Webracer
- In the Webracer root directory run "./gradlew install" for building and installing the needed jars.
- Start Webracer with "java -jar repoOsgi/WebracerStarter.jar &". It will listen on port 8080.
There are 2 places where it is possible to change the behaviour of Webracer:
- variables.js in WebracerWeb: here you can change speeds, steering angles and the number of laps
- RaceControl.java in WebracerRace: here you can change the timeouts
In both cases you need to rebuild and restart Webracer