After adding your device to Torizon OTA in the previous lesson, now you can deploy your application.
In this section, you will:
For this Quickstart Guide:
* This is a requisite for the entire Quickstart, but our Torizon OTA app will run on any browser, on any Linux, Windows or MacOS.
Docker Compose is a tool for defining and running multi-container Docker applications.
For this Quickstart lesson, we will provide a Docker Compose file ready to use. Click the button below to download it:
After downloading the file, go to the dashboard and click on the "Add New Package" button.
Click on the "Attach Docker Compose File" button and then select the *.yml file you have just downloaded.
After that, click on "Continue".
Give your package a custom name and version. For example, you can use
It is a good practice to adopt a versioning convention for your software. If you are new to the topic, one possibility is semantic versioning.
Click on "Upload" and wait until the process concludes.
Go to the dashboard again and click to initiate an update in your device:
Select the option "Custom Package" and then select the package you've just added.
Click on "Continue". The update process will take some time. You can see the progress on the icon in the bottom-left part of the screen.
Note: by default, TorizonCore is configured to poll the OTA server once every 5 minutes. That may sound like a lot of time for evaluation, but it is a reasonable default configuration for production. After you finish the Quickstart, you can set a custom polling time.
After the update is deployed, the board will automatically reboot and a browser will show up on the external monitor:
Edit the following line on the docker-compose (*.yml) file to modify the browser initial page:
command: --browser-mode http://www.toradex.com
Note: Optionally, you can also replace
--window-mode in order to start the browser in fullscreen mode.
After editing and saving the docker-compose file, upload this new version following step 2 onwards. You might want to use the same package name and increase the version. For example, you can use