forked from dusty-nv/jetson-containers
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
41 lines (36 loc) · 1.83 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#---
# name: zed
# group: hardware
# config: config.py
# depends: [cuda, cudnn, tensorrt, python]
# test: test.py
# notes: https://github.com/stereolabs/zed-docker/blob/master/4.X/l4t/py-devel/Dockerfile
#---
ARG BASE_IMAGE
FROM ${BASE_IMAGE}
ARG L4T_MAJOR_VERSION
ARG L4T_MINOR_VERSION
ARG L4T_PATCH_VERSION
ARG ZED_SDK_MAJOR
ARG ZED_SDK_MINOR
#This environment variable is needed to use the streaming features on Jetson inside a container
ENV LOGNAME root
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update -y || true ; apt-get install --no-install-recommends lsb-release wget less zstd udev sudo apt-transport-https -y && \
echo "# R${L4T_MAJOR_VERSION} (release), REVISION: ${L4T_MINOR_VERSION}.${L4T_PATCH_VERSION}" > /etc/nv_tegra_release ; \
wget -q --no-check-certificate -O ZED_SDK_Linux.run https://download.stereolabs.com/zedsdk/${ZED_SDK_MAJOR}.${ZED_SDK_MINOR}/l4t${L4T_MAJOR_VERSION}.${L4T_MINOR_VERSION}/jetsons && \
chmod +x ZED_SDK_Linux.run ; ./ZED_SDK_Linux.run silent skip_drivers && \
rm -rf /usr/local/zed/resources/* \
rm -rf ZED_SDK_Linux.run && \
rm -rf /var/lib/apt/lists/* && \
apt-get clean
# ZED Python API
RUN apt-get update -y || true ; apt-get install --no-install-recommends python3 python3-pip python3-dev python3-setuptools build-essential -y && \
wget download.stereolabs.com/zedsdk/pyzed -O /usr/local/zed/get_python_api.py && \
python3 /usr/local/zed/get_python_api.py && \
python3 -m pip install cython wheel && \
python3 -m pip install numpy pyopengl *.whl && \
#apt-get remove --purge build-essential -y && apt-get autoremove -y && \
rm *.whl ; rm -rf /var/lib/apt/lists/* && apt-get clean
#This symbolic link is needed to use the streaming features on Jetson inside a container
RUN ln -sf /usr/lib/aarch64-linux-gnu/tegra/libv4l2.so.0 /usr/lib/aarch64-linux-gnu/libv4l2.so