Skip to content

Latest commit

 

History

History
52 lines (44 loc) · 2.64 KB

internal_documentation.md

File metadata and controls

52 lines (44 loc) · 2.64 KB

Installation guide

  1. Clone the repository. Be sure to clone using unix line endings.
  2. Install docker and docker-compose on your preferred operating system (https://hub.docker.com/editions/community/docker-ce-desktop-windows/)
  3. Download raster maps from https://drive.google.com/drive/folders/1068gCZ6RhCijCU0CsAIHXznLyedD9qZZ?usp=sharing
  4. Extract the files into the relevant map folders into the subfolder "mapserver" inside the project. Note that the map folder names must be exactly the same as from the supported list. Currently supported maps are:
  5. m517_bergen
  6. Norway_N250
  7. The resulting folder structure inside the mapserver folder should look like this: Map folder structure
  8. Enter the folder with the downloaded project (folder should contain the file docker-compose-dev.yml)
  9. Run the project: docker-compose -f docker-compose-dev.yml up tracker_web (This will take some time and requires Internet access to pull and build all the containers)
  10. At first start a default superuser with the username "test@test.com" and the password "admin" is created. This can be used to access the system, create contests and so on.

Traccar setup (optional)

If full integration with traccar is required (optional). This is only required if any testing of the tracking functionality is to be done. Web interface with map generation will work without this.:

  1. Log into your local tracker instance, localhost:8082, by creating a new user.
  2. Click on the cog in the upper right-hand corner and select account.
  3. Click permissions and copy the token present in the "Token" field.
  4. Go to your management interface at localhost:8002/admin and click Traccar credentials.
  5. Enter the copied token into the "Token" field and click save

Backup databases

docker exec -it mysql bash mysqldump -p tracker>tracker.sql mysqldump -p traccar>traccar.sql exit

Restore databases

kubectl port-forward --address 0.0.0.0 my-test5-mysql 3306:3306 &>/dev/null kubectl cp db_20210927.tar.gz my-test5-mysql-0:/tmp/db.tar.gz -c mysql kubectl exec -it my-test5-mysql-0 -c mysql bash

mysql -h localhost -u root -p --protocol tcp mysql -u root -p drop database tracker; create database tracker;

drop database traccar; create database traccar;

set global net_buffer_length=10000000; set global max_allowed_packet=10000000000;

mysql -u root -p --max_allowed_packet=2000M tracker < tracker.sql mysql -u root -p --max_allowed_packet=2000M traccar < traccar.sql

Delete all jobs

kubectl delete jobs kubectl get jobs -o custom-columns=:.metadata.name -n airsports -n airsports