Hello developers,
EDGESTREAM Dock is another type of application that will be supported only on AI Box Advance.
It is a docker container that will be launched as follows.
$ sudo docker run --gpus all --rm --dns 8.8.8.8 --network STREAM_BRIDGE_NETWORK -v STREAM_FOLDER_ON_HOST:/app -v /tmp/.X11-unix:/tmp/.X11-unix -e DISPLAY=$DISPLAY -w /root -e location=RTSP_URL CONTAINER_NAME
Each meaning of those arguments are:
- --gpus all a Tesla T4 graphics card on an AI Box Advance box is accessible
- --dns 8.8.8.8 a default DNS server is set
- --network STREAM_BRIDGE_NETWORK a dedicated bridge network for this stream is created and set (the default bridge network allows interactions between containers, but which is not allowed here)
- -v STREAM_FOLDER_ON_HOST:/app a dedicated folder on an encrypted folder of a host for this stream is passed as /app on a container
- -v /tmp/.X11-unix:/tmp/.X11-unix (only for testing) a container is allowed to access a X11 process on a host
- -e DISPLAY=$DISPLAY (only for testing) a display variable on a host is passed as an environmental variable
- -w /root a working directory of a container is set at /root
- -e location=RTSP_URL a rtsp url for this stream is passed as an environmental variable
A simple Dockerfile to illustrate how this works would look like this.
This is a Dockerfile that launches a simple GStreamer pipeline with a given environmental variable location.
Any data you want to keep after stop can be saved on /app.
Please note that a Tesla T4 graphics card has no display port like HDMI or Display Port.
So, you can not achieve various graphics operations in a container on an AI Box Advance.
Available services from the Edge AI Service to the EDGESTREAM Dock application are:
- license management
- installation/uninstallation operations
No other rich features like an encryption of AI model binary, Edge View, actions&events are not available.
But a container has no restriction on network access.
Please let us know if you have any feedback.
Thanks.