It is possible to import and run this example from your app development repository, which you already have created or could create from our vehicle-app-python-template repository.
-
Importing the example
Use the VS Code task
Import example app from SDK
(to get there pressCtrl+Shift+P
and selectTasks: Run Task
) and chooseseat-adjuster
from the list.⚠️ Make sure you have commited or stash all your possible changes within theapp
folder, because the files of that folder will be overwritten by the files of this example. -
Running this example with default middleware
Use the VS Code tasks
Local Runtime - Up
andLocal Runtime - Run VehicleApp
to start the necessary runtime components and this app itself.Alternatively, the app can also be deployed in a Eclipse Kanto runtime - use task
Kanto Runtime - Deploy VehicleApp
.
If you like to run this example using services located at other addresses than the pre-configured default, you need to provide the following environment variables:
Variable name | Default value | Description |
---|---|---|
SDV_MIDDLEWARE_TYPE |
"native" |
Defines the middleware type |
SDV_MQTT_ADDRESS |
"mqtt://localhost:1883" |
Address (and port) of the MQTT broker |
SDV_VEHICLEDATABROKER_ADDRESS |
"grpc://localhost:55555" |
Address (and port) of the KUKSA Data Broker |
This example app provides a Dockerfile to enable creating a Docker container image to run it. The image must be build passing the repositories root folder as build context, e.g.:
docker build -f app/Dockerfile .
docker build -f app/Dockerfile . --build-arg http_proxy --build-arg HTTP_PROXY --build-arg https_proxy --build-arg HTTPS_PROXY --build-arg no_proxy --build-arg NO_PROXY