Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker - CentOS 7/8 MIVisionX Support Updates #591

Merged
merged 9 commits into from
Aug 10, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions docker/centos7/level-1.dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
FROM centos:centos7

ENV MIVISIONX_DEPS_ROOT=/opt/mivisionx-deps
WORKDIR $MIVISIONX_DEPS_ROOT

# install mivisionx base dependencies - Level 1
RUN yum -y update && yum -y install http://repo.okay.com.mx/centos/7/x86_64/release/okay-release-1-1.noarch.rpm && \
yum -y install gcc gcc-c++ kernel-devel make && yum -y install cmake3 && yum -y install git
RUN yum -y update --nogpgcheck && yum -y install --nogpgcheck http://repo.okay.com.mx/centos/7/x86_64/release/okay-release-1-1.noarch.rpm && \
yum -y install --nogpgcheck gcc gcc-c++ kernel-devel make && yum -y install --nogpgcheck cmake3 && yum -y install --nogpgcheck git

WORKDIR /workspace
11 changes: 7 additions & 4 deletions docker/centos7/level-2.dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
FROM centos:centos7

ENV MIVISIONX_DEPS_ROOT=/opt/mivisionx-deps
WORKDIR $MIVISIONX_DEPS_ROOT

# install mivisionx base dependencies - Level 1
RUN yum -y update && yum -y install http://repo.okay.com.mx/centos/7/x86_64/release/okay-release-1-1.noarch.rpm && \
yum -y install gcc gcc-c++ kernel-devel make && yum -y install cmake3 && yum -y install git
RUN yum -y update --nogpgcheck && yum -y install --nogpgcheck http://repo.okay.com.mx/centos/7/x86_64/release/okay-release-1-1.noarch.rpm && \
yum -y install --nogpgcheck gcc gcc-c++ kernel-devel make && yum -y install --nogpgcheck cmake3 && yum -y install --nogpgcheck git
# install ROCm for mivisionx OpenCL dependency - Level 2
RUN yum-config-manager --enable rhel-server-rhscl-7-rpms && yum -y install centos-release-scl && yum -y install devtoolset-7 && \
RUN yum-config-manager --enable rhel-server-rhscl-7-rpms && yum -y install --nogpgcheck centos-release-scl && yum -y install --nogpgcheck devtoolset-7 && \
echo -e "[ROCm]\nname=ROCm\nbaseurl=https://repo.radeon.com/rocm/yum/rpm\nenabled=1\ngpgcheck=1\ngpgkey=https://repo.radeon.com/rocm/rocm.gpg.key" > \
/etc/yum.repos.d/rocm.repo && yum -y install rocm-dev
/etc/yum.repos.d/rocm.repo && yum -y install --nogpgcheck rocm-dev
# Enable Developer Toolset 7
SHELL [ "/usr/bin/scl", "enable", "devtoolset-7" ]

Expand Down
8 changes: 4 additions & 4 deletions docker/centos7/level-3.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ ENV MIVISIONX_DEPS_ROOT=/opt/mivisionx-deps
WORKDIR $MIVISIONX_DEPS_ROOT

# install mivisionx base dependencies - Level 1
RUN yum -y update && yum -y install http://repo.okay.com.mx/centos/7/x86_64/release/okay-release-1-1.noarch.rpm && \
yum -y install gcc gcc-c++ kernel-devel make && yum -y install cmake3 && yum -y install git
RUN yum -y update --nogpgcheck && yum -y install --nogpgcheck http://repo.okay.com.mx/centos/7/x86_64/release/okay-release-1-1.noarch.rpm && \
yum -y install --nogpgcheck gcc gcc-c++ kernel-devel make && yum -y install --nogpgcheck cmake3 && yum -y install --nogpgcheck git
# install ROCm for mivisionx OpenCL dependency - Level 2
RUN yum-config-manager --enable rhel-server-rhscl-7-rpms && yum -y install centos-release-scl && yum -y install devtoolset-7 && \
RUN yum-config-manager --enable rhel-server-rhscl-7-rpms && yum -y install --nogpgcheck centos-release-scl && yum -y install --nogpgcheck devtoolset-7 && \
echo -e "[ROCm]\nname=ROCm\nbaseurl=https://repo.radeon.com/rocm/yum/rpm\nenabled=1\ngpgcheck=1\ngpgkey=https://repo.radeon.com/rocm/rocm.gpg.key" > \
/etc/yum.repos.d/rocm.repo && yum -y install rocm-dev
/etc/yum.repos.d/rocm.repo && yum -y install --nogpgcheck rocm-dev
# Enable Developer Toolset 7
SHELL [ "/usr/bin/scl", "enable", "devtoolset-7" ]
# install OpenCV & FFMPEG - Level 3
Expand Down
8 changes: 4 additions & 4 deletions docker/centos7/level-4.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ ENV MIVISIONX_DEPS_ROOT=/opt/mivisionx-deps
WORKDIR $MIVISIONX_DEPS_ROOT

# install mivisionx base dependencies - Level 1
RUN yum -y update && yum -y install http://repo.okay.com.mx/centos/7/x86_64/release/okay-release-1-1.noarch.rpm && \
yum -y install gcc gcc-c++ kernel-devel make && yum -y install cmake3 && yum -y install git
RUN yum -y update --nogpgcheck && yum -y install --nogpgcheck http://repo.okay.com.mx/centos/7/x86_64/release/okay-release-1-1.noarch.rpm && \
yum -y install --nogpgcheck gcc gcc-c++ kernel-devel make && yum -y install --nogpgcheck cmake3 && yum -y install --nogpgcheck git
# install ROCm for mivisionx OpenCL dependency - Level 2
RUN yum-config-manager --enable rhel-server-rhscl-7-rpms && yum -y install centos-release-scl && yum -y install devtoolset-7 && \
RUN yum-config-manager --enable rhel-server-rhscl-7-rpms && yum -y install --nogpgcheck centos-release-scl && yum -y install --nogpgcheck devtoolset-7 && \
echo -e "[ROCm]\nname=ROCm\nbaseurl=https://repo.radeon.com/rocm/yum/rpm\nenabled=1\ngpgcheck=1\ngpgkey=https://repo.radeon.com/rocm/rocm.gpg.key" > \
/etc/yum.repos.d/rocm.repo && yum -y install rocm-dev
/etc/yum.repos.d/rocm.repo && yum -y install --nogpgcheck rocm-dev
# Enable Developer Toolset 7
SHELL [ "/usr/bin/scl", "enable", "devtoolset-7" ]
# install OpenCV & FFMPEG - Level 3
Expand Down
5 changes: 4 additions & 1 deletion docker/centos8/level-1.dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
FROM centos:centos8

ENV MIVISIONX_DEPS_ROOT=/opt/mivisionx-deps
WORKDIR $MIVISIONX_DEPS_ROOT

# install mivisionx base dependencies - Level 1
RUN yum -y update && yum -y install gcc gcc-c++ kernel-devel make cmake git
RUN yum -y update --nogpgcheck && yum -y install --nogpgcheck gcc gcc-c++ kernel-devel make cmake git

WORKDIR /workspace
9 changes: 6 additions & 3 deletions docker/centos8/level-2.dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
FROM centos:centos8

ENV MIVISIONX_DEPS_ROOT=/opt/mivisionx-deps
WORKDIR $MIVISIONX_DEPS_ROOT

# install mivisionx base dependencies - Level 1
RUN yum -y update && yum -y install gcc gcc-c++ kernel-devel make cmake git
RUN yum -y update --nogpgcheck && yum -y install --nogpgcheck gcc gcc-c++ kernel-devel make cmake git
# install ROCm for mivisionx OpenCL dependency - Level 2
RUN echo -e "[ROCm]\nname=ROCm\nbaseurl=https://repo.radeon.com/rocm/yum/rpm\nenabled=1\ngpgcheck=1\ngpgkey=https://repo.radeon.com/rocm/rocm.gpg.key" > \
/etc/yum.repos.d/rocm.repo && yum -y install rocm-dev
RUN echo -e "[ROCm]\nname=ROCm\nbaseurl=https://repo.radeon.com/rocm/centos8/rpm\nenabled=1\ngpgcheck=1\ngpgkey=https://repo.radeon.com/rocm/rocm.gpg.key" > \
/etc/yum.repos.d/rocm.repo && yum -y update --nogpgcheck && yum -y install --nogpgcheck rocm-dev

WORKDIR /workspace
16 changes: 8 additions & 8 deletions docker/centos8/level-3.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,19 @@ ENV MIVISIONX_DEPS_ROOT=/opt/mivisionx-deps
WORKDIR $MIVISIONX_DEPS_ROOT

# install mivisionx base dependencies - Level 1
RUN yum -y update && yum -y install gcc gcc-c++ kernel-devel make cmake git
RUN yum -y update --nogpgcheck && yum -y install --nogpgcheck gcc gcc-c++ kernel-devel make cmake git
# install ROCm for mivisionx OpenCL dependency - Level 2
RUN echo -e "[ROCm]\nname=ROCm\nbaseurl=https://repo.radeon.com/rocm/yum/rpm\nenabled=1\ngpgcheck=1\ngpgkey=https://repo.radeon.com/rocm/rocm.gpg.key" > \
/etc/yum.repos.d/rocm.repo && yum -y install rocm-dev
RUN echo -e "[ROCm]\nname=ROCm\nbaseurl=https://repo.radeon.com/rocm/centos8/rpm/\nenabled=1\ngpgcheck=1\ngpgkey=https://repo.radeon.com/rocm/rocm.gpg.key" > \
/etc/yum.repos.d/rocm.repo && yum -y update --nogpgcheck && yum -y install --nogpgcheck rocm-dev
# install OpenCV & FFMPEG - Level 3
RUN yum -y groupinstall 'Development Tools' && yum -y install gtk2-devel libjpeg-devel libpng-devel libtiff-devel libavc1394 wget unzip && \
RUN yum -y groupinstall 'Development Tools' --nogpgcheck && yum -y install --nogpgcheck gtk2-devel libjpeg-devel libpng-devel libtiff-devel libavc1394 wget unzip && \
mkdir opencv && cd opencv && wget https://github.com/opencv/opencv/archive/3.4.0.zip && unzip 3.4.0.zip && \
mkdir build && cd build && \
cmake -DWITH_OPENCL=OFF -DWITH_OPENCLAMDFFT=OFF -DWITH_OPENCLAMDBLAS=OFF -DWITH_VA_INTEL=OFF -DWITH_OPENCL_SVM=OFF ../opencv-3.4.0 && \
make -j8 && make install
RUN yum -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm && \
yum -y install https://download1.rpmfusion.org/free/el/rpmfusion-free-release-8.noarch.rpm https://download1.rpmfusion.org/nonfree/el/rpmfusion-nonfree-release-8.noarch.rpm && \
yum -y install http://mirror.centos.org/centos/8/PowerTools/x86_64/os/Packages/SDL2-2.0.10-2.el8.x86_64.rpm && \
yum -y install ffmpeg ffmpeg-devel
RUN yum -y install --nogpgcheck https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm && \
yum -y install --nogpgcheck https://download1.rpmfusion.org/free/el/rpmfusion-free-release-8.noarch.rpm https://download1.rpmfusion.org/nonfree/el/rpmfusion-nonfree-release-8.noarch.rpm && \
yum -y install --nogpgcheck http://mirror.centos.org/centos/8/PowerTools/x86_64/os/Packages/SDL2-2.0.10-2.el8.x86_64.rpm && \
yum -y install --nogpgcheck ffmpeg ffmpeg-devel

WORKDIR /workspace
18 changes: 9 additions & 9 deletions docker/centos8/level-4.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,22 @@ ENV MIVISIONX_DEPS_ROOT=/opt/mivisionx-deps
WORKDIR $MIVISIONX_DEPS_ROOT

# install mivisionx base dependencies - Level 1
RUN yum -y update && yum -y install gcc gcc-c++ kernel-devel make cmake git
RUN yum -y update --nogpgcheck && yum -y install --nogpgcheck gcc gcc-c++ kernel-devel make cmake git
# install ROCm for mivisionx OpenCL dependency - Level 2
RUN echo -e "[ROCm]\nname=ROCm\nbaseurl=https://repo.radeon.com/rocm/yum/rpm\nenabled=1\ngpgcheck=1\ngpgkey=https://repo.radeon.com/rocm/rocm.gpg.key" > \
/etc/yum.repos.d/rocm.repo && yum -y install rocm-dev
RUN echo -e "[ROCm]\nname=ROCm\nbaseurl=https://repo.radeon.com/rocm/centos8/rpm/\nenabled=1\ngpgcheck=1\ngpgkey=https://repo.radeon.com/rocm/rocm.gpg.key" > \
/etc/yum.repos.d/rocm.repo && yum -y update --nogpgcheck && yum -y install --nogpgcheck rocm-dev
# install OpenCV & FFMPEG - Level 3
RUN yum -y groupinstall 'Development Tools' && yum -y install gtk2-devel libjpeg-devel libpng-devel libtiff-devel libavc1394 wget unzip && \
RUN yum -y groupinstall 'Development Tools' --nogpgcheck && yum -y install --nogpgcheck gtk2-devel libjpeg-devel libpng-devel libtiff-devel libavc1394 wget unzip && \
mkdir opencv && cd opencv && wget https://github.com/opencv/opencv/archive/3.4.0.zip && unzip 3.4.0.zip && \
mkdir build && cd build && \
cmake -DWITH_OPENCL=OFF -DWITH_OPENCLAMDFFT=OFF -DWITH_OPENCLAMDBLAS=OFF -DWITH_VA_INTEL=OFF -DWITH_OPENCL_SVM=OFF ../opencv-3.4.0 && \
make -j8 && make install
RUN yum -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm && \
yum -y install https://download1.rpmfusion.org/free/el/rpmfusion-free-release-8.noarch.rpm https://download1.rpmfusion.org/nonfree/el/rpmfusion-nonfree-release-8.noarch.rpm && \
yum -y install http://mirror.centos.org/centos/8/PowerTools/x86_64/os/Packages/SDL2-2.0.10-2.el8.x86_64.rpm && \
yum -y install ffmpeg ffmpeg-devel
RUN yum -y install --nogpgcheck https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm && \
yum -y install --nogpgcheck https://download1.rpmfusion.org/free/el/rpmfusion-free-release-8.noarch.rpm https://download1.rpmfusion.org/nonfree/el/rpmfusion-nonfree-release-8.noarch.rpm && \
yum -y install --nogpgcheck http://mirror.centos.org/centos/8/PowerTools/x86_64/os/Packages/SDL2-2.0.10-2.el8.x86_64.rpm && \
yum -y install --nogpgcheck ffmpeg ffmpeg-devel
# install MIVisionX neural net dependency - Level 4
RUN yum -y install libsqlite3x-devel bzip2-devel openssl-devel python3-devel autoconf automake libtool curl make gcc-c++ unzip && \
RUN yum -y install --nogpgcheck libsqlite3x-devel bzip2-devel openssl-devel python3-devel autoconf automake libtool curl make gcc-c++ unzip && \
mkdir neuralNet && cd neuralNet && wget https://sourceforge.net/projects/half/files/half/1.12.0/half-1.12.0.zip && \
unzip half-1.12.0.zip -d half-files && cp half-files/include/half.hpp /usr/local/include/ && \
git clone -b rocm-4.2.0 https://github.com/RadeonOpenCompute/rocm-cmake.git && cd rocm-cmake && mkdir build && cd build && \
Expand Down
8 changes: 4 additions & 4 deletions docker/mivisionx-on-centos7.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ ENV MIVISIONX_DEPS_ROOT=/opt/mivisionx-deps
WORKDIR $MIVISIONX_DEPS_ROOT

# install mivisionx base dependencies - Level 1
RUN yum -y update && yum -y install http://repo.okay.com.mx/centos/7/x86_64/release/okay-release-1-1.noarch.rpm && \
yum -y install gcc gcc-c++ kernel-devel make && yum -y install cmake3 && yum -y install git
RUN yum -y update --nogpgcheck && yum -y install --nogpgcheck http://repo.okay.com.mx/centos/7/x86_64/release/okay-release-1-1.noarch.rpm && \
yum -y install --nogpgcheck gcc gcc-c++ kernel-devel make && yum -y install --nogpgcheck cmake3 && yum -y install --nogpgcheck git
# install ROCm for mivisionx OpenCL dependency - Level 2
RUN yum-config-manager --enable rhel-server-rhscl-7-rpms && yum -y install centos-release-scl && yum -y install devtoolset-7 && \
RUN yum-config-manager --enable rhel-server-rhscl-7-rpms && yum -y install --nogpgcheck centos-release-scl && yum -y install --nogpgcheck devtoolset-7 && \
echo -e "[ROCm]\nname=ROCm\nbaseurl=https://repo.radeon.com/rocm/yum/rpm\nenabled=1\ngpgcheck=1\ngpgkey=https://repo.radeon.com/rocm/rocm.gpg.key" > \
/etc/yum.repos.d/rocm.repo && yum -y install rocm-dev
/etc/yum.repos.d/rocm.repo && yum -y install --nogpgcheck rocm-dev
# Enable Developer Toolset 7
SHELL [ "/usr/bin/scl", "enable", "devtoolset-7" ]
# install OpenCV & FFMPEG - Level 3
Expand Down
18 changes: 9 additions & 9 deletions docker/mivisionx-on-centos8.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,22 @@ ENV MIVISIONX_DEPS_ROOT=/opt/mivisionx-deps
WORKDIR $MIVISIONX_DEPS_ROOT

# install mivisionx base dependencies - Level 1
RUN yum -y update && yum -y install gcc gcc-c++ kernel-devel make cmake git
RUN yum -y update --nogpgcheck && yum -y install --nogpgcheck gcc gcc-c++ kernel-devel make cmake git
# install ROCm for mivisionx OpenCL dependency - Level 2
RUN echo -e "[ROCm]\nname=ROCm\nbaseurl=https://repo.radeon.com/rocm/yum/rpm\nenabled=1\ngpgcheck=1\ngpgkey=https://repo.radeon.com/rocm/rocm.gpg.key" > \
/etc/yum.repos.d/rocm.repo && yum -y install rocm-dev
RUN echo -e "[ROCm]\nname=ROCm\nbaseurl=https://repo.radeon.com/rocm/centos8/rpm/\nenabled=1\ngpgcheck=1\ngpgkey=https://repo.radeon.com/rocm/rocm.gpg.key" > \
/etc/yum.repos.d/rocm.repo && yum -y update --nogpgcheck && yum -y install --nogpgcheck rocm-dev
# install OpenCV & FFMPEG - Level 3
RUN yum -y groupinstall 'Development Tools' && yum -y install gtk2-devel libjpeg-devel libpng-devel libtiff-devel libavc1394 wget unzip && \
RUN yum -y groupinstall 'Development Tools' --nogpgcheck && yum -y install --nogpgcheck gtk2-devel libjpeg-devel libpng-devel libtiff-devel libavc1394 wget unzip && \
mkdir opencv && cd opencv && wget https://github.com/opencv/opencv/archive/3.4.0.zip && unzip 3.4.0.zip && \
mkdir build && cd build && \
cmake -DWITH_OPENCL=OFF -DWITH_OPENCLAMDFFT=OFF -DWITH_OPENCLAMDBLAS=OFF -DWITH_VA_INTEL=OFF -DWITH_OPENCL_SVM=OFF ../opencv-3.4.0 && \
make -j8 && make install
RUN yum -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm && \
yum -y install https://download1.rpmfusion.org/free/el/rpmfusion-free-release-8.noarch.rpm https://download1.rpmfusion.org/nonfree/el/rpmfusion-nonfree-release-8.noarch.rpm && \
yum -y install http://mirror.centos.org/centos/8/PowerTools/x86_64/os/Packages/SDL2-2.0.10-2.el8.x86_64.rpm && \
yum -y install ffmpeg ffmpeg-devel
RUN yum -y install --nogpgcheck https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm && \
yum -y install --nogpgcheck https://download1.rpmfusion.org/free/el/rpmfusion-free-release-8.noarch.rpm https://download1.rpmfusion.org/nonfree/el/rpmfusion-nonfree-release-8.noarch.rpm && \
yum -y install --nogpgcheck http://mirror.centos.org/centos/8/PowerTools/x86_64/os/Packages/SDL2-2.0.10-2.el8.x86_64.rpm && \
yum -y install --nogpgcheck ffmpeg ffmpeg-devel
# install MIVisionX neural net dependency - Level 4
RUN yum -y install libsqlite3x-devel bzip2-devel openssl-devel python3-devel autoconf automake libtool curl make gcc-c++ unzip && \
RUN yum -y install --nogpgcheck libsqlite3x-devel bzip2-devel openssl-devel python3-devel autoconf automake libtool curl make gcc-c++ unzip && \
mkdir neuralNet && cd neuralNet && wget https://sourceforge.net/projects/half/files/half/1.12.0/half-1.12.0.zip && \
unzip half-1.12.0.zip -d half-files && cp half-files/include/half.hpp /usr/local/include/ && \
git clone -b rocm-4.2.0 https://github.com/RadeonOpenCompute/rocm-cmake.git && cd rocm-cmake && mkdir build && cd build && \
Expand Down