- Python 3.6+
- Install poetry using
curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python -
- Clone the repo:
git clone git@github.com:divekarshubham/RunOTA.git && cd RunOTA/RunOTABinary
- Install the requirements using
poetry install
- Run the exe with the command
poetry run agent <filepath> <[Optional]logging file>
eg:poetry run agent ~/ota/ota_demo_core_mqtt ~/ota/logs/logfile.txt
- Specify the configurations of the project like cert path in
config_project.py
- Specify the project to build in
repository_root
inconfig_project.py
e.g.Path('/home/ubuntu/dev/csdk/aws-iot-device-sdk-embedded-C')
- Build using the command
poetry run build
- Specify the configurations of the project like bucket_name and update_role_arn in
config_project.py
- Specify the project to build in
repository_root
inconfig_project.py
e.g.Path('/home/ubuntu/dev/csdk/aws-iot-device-sdk-embedded-C')
- Create an update with
poetry run update <filename> <filepath>
. is the name of the binary when it is downloaded and contains the actual binary to upload. e.g.poetry run update ota_demo_core_mqtt2 /home/ubuntu/dev/csdk/aws-iot-device-sdk-embedded-C/build/bin/ota_demo_core_mqtt
- Update the certificate, private key and endpoint in the
config_project.py
- Establish a connection using
poetry run interrupt
- Enter all the credentials in
config_project.py
- Enter the command to run the canary:
poetry run canary