Build From Source#
This guide shows you how to build Stream Manager from source. You can build a binary for your host, or a container image.
Prerequisites#
Go 1.26 or later (for host builds).
Docker 29.0 or later (for container builds).
make.git.Linux with
/dev/shmmounted as tmpfs (to run the application on the host).
Get the Source Code#
This repository holds many projects. Use a sparse checkout to download only the
stream-manager project, on a single branch:
git clone --no-checkout --filter=blob:none --single-branch \
--branch main \
https://github.com/open-edge-platform/edge-ai-libraries.git
cd edge-ai-libraries
git sparse-checkout set --cone microservices/stream-manager
git checkout
cd microservices/stream-manager
All other commands in this guide run from this stream-manager directory.
Build and Run on Your Host#
To run the application on the host, install ffmpeg and ffprobe and make sure
both commands are on PATH. Container builds and runs do not require these tools
on the host.
Build the application binary:
make build
Run the binary you just built:
make run
Or do both in one step:
make start
To use your own configuration file:
make run CONFIG_FILE=/path/to/config.json
See Host run options for default settings.
Build and Run a Container Image#
Build the image:
make docker-build
The default image is intel/stream-manager:latest. To use a different image name or tag, run:
make docker-build IMAGE=<your_image_name>:<tag>
Note
The image contains FFmpeg license files, notices, version information, and
checksums in /usr/share/licenses/ffmpeg/.
The image keeps the base image’s license files in /usr/share/common-licenses/
and /usr/share/doc/.
Important
The third-party source archives are provided in a separate source image. See Third-Party Sources for instructions to copy FFmpeg, its dependencies, and base image source files.
Run the image you built, or a published image you already have:
make docker-run IMAGE=<your_image_name>:<tag>
Note
make docker-run pulls the image if it is not present locally.
If you do not set IMAGE, it pulls and runs
the default image, intel/stream-manager:latest.
make docker-run publishes the container’s port 8080 to a free host port.
It prints the assigned port and the application and API documentation URLs after it starts.
See Container run options for configuration file and data mount options.
Stop and remove the running container:
make docker-stop
Remove built host binaries (keeps the ./bin directory):
make clean
See Get Started for how to use the running application, and API Reference for all endpoints.