- Install docker, docker-compose and nvidia-docker following the official instructions for your distribution. You can find your distribution as follows.
lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04.6 LTS
Release: 18.04
Codename: bionic
- Install dependencies
# the basics
sudo apt-get update
sudo apt-get install git build-essential python3 python3-pip python3-virtualenv
sudo apt-get install apt-transport-https ca-certificates curl gnupg-agent software-properties-common
# python poetry
curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/install-poetry.py | python3
- Set path to Video_Codec_SDK
# Done once
export VIDEO_CODEC_SDK=<path_to_your_Video_Codec_SDK>
export DOCKER_BUILDKIT=1
export COMPOSE_DOCKER_CLI_BUILD=1
cp -a $(VIDEO_CODEC_SDK) Video_Codec_SDK
注意这一步意思是把你下载的Video_Codec_SDK文件夹复制到VPF根目录里面去 名字一定叫Video_Codec_SDK 否则相关.h头文件找不到
X11 forwarding 需要打开
然后需要docker login账号密码
但是报错
https://stackoverflow.com/questions/50151833/cannot-login-to-docker-account
只执行了这一句就行了:sudo apt install gnupg2 pass
继续:
sudo docker compose -f docker/docker-compose.yml build vpf
方法:开代理….
-build-arg HTTP_PROXY=http://10.XXX.XXX.XX:XXXXX --build-arg HTTPS_PROXY=http://10.XXX.XXX.XX:XXXXX
最后cmake版本过低,docker里需要装3.17+…改dockerfile apt install的cmake换成pip3 install cmake