-
Notifications
You must be signed in to change notification settings - Fork 2
/
centos-negativo17-intel.Dockerfile
42 lines (32 loc) · 1.33 KB
/
centos-negativo17-intel.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
42
ARG ver=centos8
FROM docker.io/centos:${ver} AS base
LABEL Name=opencv:${ver} Version=0.0.1
USER root
WORKDIR /
# Intel distribution of GPGPU drivers: https://dgpu-docs.intel.com/
RUN dnf install -y 'dnf-command(config-manager)'
RUN dnf config-manager --add-repo https://repositories.intel.com/graphics/rhel/8.1/intel-graphics.repo
RUN dnf -y update --refresh
# Development Tools
RUN dnf install -y cmake pkg-config
RUN yum groupinstall -y 'Development Tools'
# VAAPI
RUN dnf install -y intel-media libva-devel libva-utils
# MFX
RUN dnf install -y intel-mediasdk intel-mediasdk-devel
# OpenCL
RUN dnf install -y intel-opencl intel-igc-opencl-devel
# negativo17.org (for FFMPEG and GStreamer)
RUN dnf -y update --refresh
RUN dnf install -y epel-release dnf-utils
RUN yum-config-manager --set-enabled powertools
RUN yum-config-manager --add-repo=https://negativo17.org/repos/epel-multimedia.repo
# FFMPEG
RUN dnf install -y ffmpeg ffmpeg-devel
# GStreamer
RUN yum install -y gstreamer1-devel gstreamer1-plugins-base-devel gstreamer1-plugins-good gstreamer1-plugins-ugly gstreamer1-plugins-bad-free gstreamer1-plugins-bad-free-devel
# Build OpenCV-Debug
COPY . /root/opencv
RUN cd /root/opencv && rm -rf build && mkdir -p build && cd build && \
cmake -DCMAKE_BUILD_TYPE=Debug .. && make -j20
CMD ["/bin/bash"]