Advanced Installation On Ubuntu - Build Docker Image#

NOTE: The easiest way to run Deep Learning Streamer in Docker is to pull docker images from DockerHub.

The instructions below are intended for building Docker images based on Ubuntu22/24 from Deep Learning Streamer Dockerfiles.

Step 1: Install prerequisites#

Follow the instructions in the prerequisites section.

Step 2: Download Dockerfiles#

All Dockerfiles are in DLStreamer GitHub repository.

  • Ubuntu24 debian/dev Dockerfile

    wget https://raw.githubusercontent.com/open-edge-platform/edge-ai-libraries/main/libraries/dl-streamer/docker/ubuntu/ubuntu24.Dockerfile
    
  • Ubuntu22 debian/dev Dockerfile

    wget https://raw.githubusercontent.com/open-edge-platform/edge-ai-libraries/main/libraries/dl-streamer/docker/ubuntu/ubuntu22.Dockerfile
    

Step 3: Build Docker image#

Build a Docker image from a Dockerfile, using the template command-line, as follows:

docker build -f <Dockerfile name> -t <name for Docker image> .

For example, you can build a Docker debian image from the ubuntu22.Dockerfile, naming it dlstreamer-ubuntu22, and using the current directory as the build context.

docker build -f ubuntu22.Dockerfile -t dlstreamer-ubuntu22 .

You can build a Docker development image from the ubuntu22.Dockerfile, naming it dlstreamer-dev-ubuntu22, and using the current directory as the build context:

docker build --target dlstreamer-dev -f ubuntu22.Dockerfile -t dlstreamer-dev-ubuntu22 .