piiswrong closed pull request #8161: Creating sim-link to raw1394 file URL: https://github.com/apache/incubator-mxnet/pull/8161
This is a PR merged from a forked repository. As GitHub hides the original diff on merge, it is displayed below for the sake of provenance: As this is a foreign pull request (from a fork), the diff is supplied below (as it won't show otherwise due to GitHub magic): diff --git a/tests/ci_build/Dockerfile.caffe_gpu b/tests/ci_build/Dockerfile.caffe_gpu index 4f6522dab8..dddfb110b4 100644 --- a/tests/ci_build/Dockerfile.caffe_gpu +++ b/tests/ci_build/Dockerfile.caffe_gpu @@ -23,3 +23,5 @@ RUN cd caffe; make all pycaffe -j$(nproc) RUN cd caffe/python; for req in $(cat requirements.txt); do pip2 install $req; done ENV PYTHONPATH=${PYTHONPATH}:/caffe/python + +RUN ln /dev/null /dev/raw1394 diff --git a/tests/ci_build/Dockerfile.gpu b/tests/ci_build/Dockerfile.gpu index a2893a9fb4..fa215bea00 100644 --- a/tests/ci_build/Dockerfile.gpu +++ b/tests/ci_build/Dockerfile.gpu @@ -10,3 +10,8 @@ COPY install/ubuntu_install_r.sh /install/ RUN /install/ubuntu_install_r.sh COPY install/ubuntu_install_perl.sh /install/ RUN /install/ubuntu_install_perl.sh +# Note: ln -s /dev/null /dev/raw1394 is to prevent error on python's +# cv2 during import: "libdc1394 error: Failed to initialize libdc1394" +# So, if you want to run another command, just update your CMD to start +# with this script, followed by whatever you want. (Not cute, but works) +RUN ln /dev/null /dev/raw1394 diff --git a/tests/ci_build/Dockerfile.mklml_gpu b/tests/ci_build/Dockerfile.mklml_gpu index 36f51c2f13..cdef9d6bd9 100644 --- a/tests/ci_build/Dockerfile.mklml_gpu +++ b/tests/ci_build/Dockerfile.mklml_gpu @@ -13,3 +13,9 @@ RUN wget --no-check-certificate -O /tmp/mklml.tgz https://github.com/01org/mkl-d RUN tar -zxvf /tmp/mklml.tgz && cp -rf mklml_*/* /usr/local/ && rm -rf mklml_* ENV LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/usr/local/lib + +# Note: ln -s /dev/null /dev/raw1394 is to prevent error on python's +# cv2 during import: "libdc1394 error: Failed to initialize libdc1394" +# So, if you want to run another command, just update your CMD to start +# with this script, followed by whatever you want. (Not cute, but works) +RUN ln /dev/null /dev/raw1394 diff --git a/tests/ci_build/Dockerfile.ubuntu1404_cuda75_cudnn5 b/tests/ci_build/Dockerfile.ubuntu1404_cuda75_cudnn5 index 88fd7cea6f..334ec80c22 100644 --- a/tests/ci_build/Dockerfile.ubuntu1404_cuda75_cudnn5 +++ b/tests/ci_build/Dockerfile.ubuntu1404_cuda75_cudnn5 @@ -38,3 +38,9 @@ RUN add-apt-repository -y ppa:marutter/rdev RUN apt-get update && apt-get -y upgrade RUN DEBIAN_FRONTEND=noninteractive apt-get -y -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confnew" install r-base r-base-dev RUN Rscript -e "install.packages('devtools', repo = 'https://cran.rstudio.com')" + +# Note: ln -s /dev/null /dev/raw1394 is to prevent error on python's +# cv2 during import: "libdc1394 error: Failed to initialize libdc1394" +# So, if you want to run another command, just update your CMD to start +# with this script, followed by whatever you want. (Not cute, but works) +RUN ln /dev/null /dev/raw1394 ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services