Deploying SPL system with Docker containers requires the following prerequisites:
- Computer with Mission Planner or QGroundControl GCS installed.
- Computer accessible from the Internet with Docker installed.
- Activated RockBLOCK Mk2 or RockBLOCK 9603 Iridium satellite communication module, if ISBD channel will be used.
Follow these steps to deploy SPL servers with Docker using container images from Docker Hub:
- Download docker-compose.yml file to the computer with Docker client installed.
- Modify docker-compose.yml file to change the values of MAV_AUTOPILOT, MAV_TYPE, MAV_SYSID, ROCKBLOCK_IMEI, ROCKBLOCK_USERNAME, ROCKBLOCK_PASSWORD container’s environment variable to match your autopilot firmware, RockBLOCK IMEI, Rock 7 user name and password.
Use docker-compose command to create the Docker containers:
docker-compose -f docker-compose.yml up
- Register URL
http://<IP address>:5080/moas delivery address in Rock 7 Core services for your RockBLOCK. Choose HTTP_POST as the delivery format.
hostconfiguration properties of [tcp] configuration section in radioroom.conf UV Radio Room configuration file to the UV Hub server IP address.
- Connect the GCS to the autopilot using regular radio-telemetry or USB connection and save the on-board parameters to a file.
- Connect the GCS to shadow port 5757 on the UV Hub server machine and upload the on-board parameters from the file to the vehicle. (This will update the parameters in the vehicle shadow.)
After the installation is completed, GCS can be connected to port 5760 on the UV Hub server machine. UV Cockpit home web page will be available at
http://<IP address>/uvcockpit/ address.
To restict access to the SPL server configure firewall on the UV Hub server machine to:
- Allow access to port 5080 to IP addresses
18.104.22.168of Rock 7 services;
- Allow access to port 5060 to the IP ranges of UV Radio Room. (Cellular internet providers will typically use dynamic IP addresses those may be reassigned on reboots.)
- Allow access to ports 5760 and 5757 to the GCS machines.
- All access to port 80 to the web browser’s client machines.
Make sure that the firewall’s in-bound rules are updated whenever the GCS clients IP addresses are changed.
docker log command to retrieve logs of Docker containers.