forked from openvinotoolkit/openvino_contrib
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile.RPi32_stretch
104 lines (94 loc) · 3.12 KB
/
Dockerfile.RPi32_stretch
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
#This Dockerfile is for x86 and should be used for OpenVINO ARM plugin cross-compilation
#https://github.com/openvinotoolkit/openvino_contrib/tree/master/modules/arm_plugin#how-to-build
FROM debian:9
ENV DEBIAN_FRONTEND noninteractive
ENV PAKAGE_UPDATES_OF 20210215
#Prerequisite installation
RUN apt-get update && \
apt-get -y upgrade && \
apt-get install -y --no-install-recommends \
ca-certificates \
lsb-release \
nano \
wget \
curl \
nano \
tar \
bzip2 \
unzip \
cpio \
cifs-utils \
locales \
rsync \
apt-transport-https \
debian-archive-keyring \
sudo \
openssh-client \
default-jre \
p7zip-full \
software-properties-common \
dirmngr \
gnupg \
netcat-openbsd \
dh-autoreconf \
libcurl4-gnutls-dev \
libexpat1-dev \
gettext \
libz-dev \
libssl-dev \
build-essential \
&& \
locale-gen en_US.UTF-8 && \
rm -rf /var/lib/apt/lists/*
RUN dpkg --add-architecture armhf && \
apt-get update && \
apt-get install -y --no-install-recommends -f -o Dpkg::Options::="--force-confnew" \
build-essential \
libusb-1.0-0-dev:armhf \
software-properties-common \
crossbuild-essential-armhf \
zlib1g-dev \
libffi-dev \
libssl-dev \
chrpath \
libssl-dev \
libprotobuf-dev \
libprotoc-dev \
protobuf-compiler \
python3-dev \
python3-numpy \
python3-pip \
libpython3-dev:armhf \
libgtk-3-dev:armhf \
libavcodec-dev:armhf \
libavformat-dev:armhf \
libswscale-dev:armhf \
# For ARM CPU plugin
scons \
&& \
pip3 install cython && \
rm -rf /var/lib/apt/lists/*
RUN curl -sSf "https://packagecloud.io/install/repositories/github/git-lfs/config_file.list?os=debian&dist=stretch&source=script" > "/etc/apt/sources.list.d/github_git-lfs.list"
RUN curl -L "https://packagecloud.io/github/git-lfs/gpgkey" 2> /dev/null | apt-key add - &>/dev/null && \
apt-get update && \
apt-get install -y --no-install-recommends --allow-unauthenticated git-lfs && \
rm -rf /var/lib/apt/lists/*
#cmake 3.13 or higher is required to build OpenVINO. stretch-backports provide 3.16
RUN echo 'deb http://deb.debian.org/debian stretch-backports main' > /etc/apt/sources.list.d/backports.list && \
echo 'deb http://deb.debian.org/debian stretch-backports-sloppy main' >> /etc/apt/sources.list.d/backports.list && \
apt-get update && \
apt-get install -y --no-install-recommends \
libarchive13/stretch-backports-sloppy \
libuv1/stretch-backports \
cmake/stretch-backports \
&& \
rm -rf /var/lib/apt/lists/*
RUN git config --global user.name "Your Name" && \
git config --global user.email "[email protected]"
ENV ARCH_NAME arm-linux-gnueabihf
ENV TOOLCHAIN_DEFS arm.toolchain.cmake
COPY armplg_build.sh /armplg_build.sh
#configure paths
RUN mkdir -p /armcpu_plugin
WORKDIR /armcpu_plugin/
CMD ["sh", "/armplg_build.sh"]