Skip to content
Snippets Groups Projects
Commit 28e6fcc6 authored by calrama's avatar calrama
Browse files

[centos] use gcc 8 for opencv,mmxnet, and ffmpeg

parent 163786b1
No related branches found
No related tags found
No related merge requests found
...@@ -13,6 +13,7 @@ RUN yum install -y \ ...@@ -13,6 +13,7 @@ RUN yum install -y \
yum install -y \ yum install -y \
kernel && \ kernel && \
yum install -y \ yum install -y \
devtoolset-8 \
devtoolset-9 && \ devtoolset-9 && \
yum install -y \ yum install -y \
rh-git218-git \ rh-git218-git \
...@@ -76,6 +77,7 @@ RUN version=4.2.1 && \ ...@@ -76,6 +77,7 @@ RUN version=4.2.1 && \
&& \ && \
yum clean all && \ yum clean all && \
source /etc/profile && \ source /etc/profile && \
source scl_source enable devtoolset-8 && \
cd /tmp && \ cd /tmp && \
git clone https://git.videolan.org/git/ffmpeg/nv-codec-headers.git && \ git clone https://git.videolan.org/git/ffmpeg/nv-codec-headers.git && \
cd nv-codec-headers && \ cd nv-codec-headers && \
...@@ -165,6 +167,7 @@ RUN version=4.2.0 && \ ...@@ -165,6 +167,7 @@ RUN version=4.2.0 && \
&& \ && \
yum clean all && \ yum clean all && \
source /etc/profile && \ source /etc/profile && \
source scl_source enable devtoolset-8 && \
cd /tmp && \ cd /tmp && \
curl -sSL -o opencv-${version}.zip https://github.com/opencv/opencv/archive/${version}.zip && \ curl -sSL -o opencv-${version}.zip https://github.com/opencv/opencv/archive/${version}.zip && \
unzip opencv-${version}.zip && \ unzip opencv-${version}.zip && \
...@@ -223,6 +226,7 @@ ENV MXNet_DIR /opt/mxnet-1.6.0 ...@@ -223,6 +226,7 @@ ENV MXNet_DIR /opt/mxnet-1.6.0
ADD patches/mxnet-1.6.0-manual-cuda-arch-flags.patch /opt/mxnet-1.6.0-manual-cuda-arch-flags.patch ADD patches/mxnet-1.6.0-manual-cuda-arch-flags.patch /opt/mxnet-1.6.0-manual-cuda-arch-flags.patch
RUN version=1.6.0 && \ RUN version=1.6.0 && \
source /etc/profile && \ source /etc/profile && \
source scl_source enable devtoolset-8 && \
cd /opt && \ cd /opt && \
curl -sSLO https://github.com/apache/incubator-mxnet/releases/download/${version}/apache-mxnet-src-${version}-incubating.tar.gz && \ curl -sSLO https://github.com/apache/incubator-mxnet/releases/download/${version}/apache-mxnet-src-${version}-incubating.tar.gz && \
tar -xf apache-mxnet-src-${version}-incubating.tar.gz && \ tar -xf apache-mxnet-src-${version}-incubating.tar.gz && \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment