(last edit: 4/24/2023)
KAN AI container is a Docker container that gets deployed when you deploy your AI solution to a computer device. It runs as an IoT Edge module when deployed to Azure IoT Edge, or as a Kubernetes pod when deployed to Kubernetes. You can use the provided devops.py
Python script to build this container image yourself.
- Docker
NOTE: Some tools we use work better with access to docker commands without sudo. Use Docker Desktop version when possible. Otherwise, you need to add your user to docker group (see instructions). Please don't use rootless model, which isn't supported by some of the tools.
- Python
Define an environment variable that points to your container registry name:
export CONTAINER_REGISTRY_NAME=kanprod.azurecr.io # replace with your own container registry name
pip install -r requirements.txt
python devops.py build-all
The above command build four KAN AI container images for different infrastructures:
Image name | Infrastructure |
---|---|
kanai:<version>-openvionamd64 |
x64 CPU with OpenVino |
kanai:<version>-gpuamd64 |
x64 CPU with Nvidia GPU |
kanai:<version>-amd64 |
x64 CPU only |
kanai:<version>-jetson |
Nvidia Jetson platform |
python devops.py push-all