Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
monticore
EmbeddedMontiArc
generators
EMADL2CPP
Commits
d5ba1b8a
Commit
d5ba1b8a
authored
Dec 06, 2019
by
Christian Fuß
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added Dockerfile for OpenCV
parent
aaa8331f
Pipeline
#215613
failed with stages
in 7 minutes and 50 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
52 additions
and
0 deletions
+52
-0
src/test/resources/docker/OpenCV/Dockerfile
src/test/resources/docker/OpenCV/Dockerfile
+52
-0
No files found.
src/test/resources/docker/OpenCV/Dockerfile
0 → 100644
View file @
d5ba1b8a
FROM
python:3.7
RUN
apt-get update
\
&&
apt-get
install
-y
\
build-essential
\
cmake
\
git
\
wget
\
unzip
\
yasm
\
pkg-config
\
libswscale-dev
\
libtbb2
\
libtbb-dev
\
libjpeg-dev
\
libpng-dev
\
libtiff-dev
\
libavformat-dev
\
libpq-dev
\
&&
rm
-rf
/var/lib/apt/lists/
*
RUN
pip
install
numpy
WORKDIR
/
ENV
OPENCV_VERSION="4.1.1"
RUN
wget https://github.com/opencv/opencv/archive/
${
OPENCV_VERSION
}
.zip
\
&&
unzip
${
OPENCV_VERSION
}
.zip
\
&&
mkdir
/opencv-
${
OPENCV_VERSION
}
/cmake_binary
\
&&
cd
/opencv-
${
OPENCV_VERSION
}
/cmake_binary
\
&&
cmake
-DBUILD_TIFF
=
ON
\
-DBUILD_opencv_java
=
OFF
\
-DWITH_CUDA
=
OFF
\
-DWITH_OPENGL
=
ON
\
-DWITH_OPENCL
=
ON
\
-DWITH_IPP
=
ON
\
-DWITH_TBB
=
ON
\
-DWITH_EIGEN
=
ON
\
-DWITH_V4L
=
ON
\
-DBUILD_TESTS
=
OFF
\
-DBUILD_PERF_TESTS
=
OFF
\
-DCMAKE_BUILD_TYPE
=
RELEASE
\
-DCMAKE_INSTALL_PREFIX
=
$(
python3.7
-c
"import sys; print(sys.prefix)"
)
\
-DPYTHON_EXECUTABLE
=
$(
which python3.7
)
\
-DPYTHON_INCLUDE_DIR
=
$(
python3.7
-c
"from distutils.sysconfig import get_python_inc; print(get_python_inc())"
)
\
-DPYTHON_PACKAGES_PATH
=
$(
python3.7
-c
"from distutils.sysconfig import get_python_lib; print(get_python_lib())"
)
\
..
\
&&
make
install
\
&&
rm
/
${
OPENCV_VERSION
}
.zip
\
&&
rm
-r
/opencv-
${
OPENCV_VERSION
}
RUN
ln
-s
\
/usr/local/python/cv2/python-3.7/cv2.cpython-37m-x86_64-linux-gnu.so
\
/usr/local/lib/python3.7/site-packages/cv2.so
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment