The Scoring Server provides the software and interfaces to register and report score-related information for the DARPA Subterranean Challenge.
Install Docker:
$ sudo apt install docker.io
Install docker-compose:
$ sudo curl -L "https://github.com/docker/compose/releases/download/1.23.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
$ sudo chmod +x /usr/local/bin/docker-compose
Create a docker user group to bypass running docker with sudo
$ sudo groupadd docker
$ sudo usermod -aG docker $USER
Restart the computer
Make sure the docker daemon is running
$ sudo service docker start
Confirm docker and docker-compose both work
$ docker run hello-world
$ docker-compose version
To start the server, enter the directory that contains the docker-compose.yml file and run the following:
$ docker-compose up --build
Add this header:
Authorization: Bearer tokentokentoken1
to any request sent to the endpoints.
To run the API tests (with the server running as above):
$ docker-compose exec django pytest -v
Note: This version of the Test Scoring Server will respond with "score_change" == 1 if a correct Final Event artifact type is submitted (i.e., ["survivor", "cell phone", "backpack", "drill", "fire extinguisher", "gas", "vent", "helmet", "rope", "cube"]). The type string must be spelled correctly, although it is case-insensitive. It will respond with "score_change" == 0 if the artifact type is invalid.