From e1eb0e9729cbc24adc6591e06679605d4bb09c2a Mon Sep 17 00:00:00 2001 From: Branton Davis Date: Wed, 6 Oct 2021 18:10:20 -0500 Subject: [PATCH] Add local Dockerfile. --- Dockerfile.gpu.intel.local | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 Dockerfile.gpu.intel.local diff --git a/Dockerfile.gpu.intel.local b/Dockerfile.gpu.intel.local new file mode 100644 index 0000000..74ab784 --- /dev/null +++ b/Dockerfile.gpu.intel.local @@ -0,0 +1,37 @@ +FROM opendronemap/nodeodm:gpu + +EXPOSE 3000 + +ARG RENDER_GROUP_ID=0 + +USER root + +RUN apt-get remove --purge -y intel-opencl-icd && \ + apt-get autoremove -y + +RUN mkdir /tmp/opencl +WORKDIR /tmp/opencl +RUN apt-get update && \ + apt-get install -y --no-install-recommends ocl-icd-libopencl1 wget && \ + rm -rf /var/lib/apt/lists/* && \ + wget https://github.com/intel/compute-runtime/releases/download/21.38.21026/intel-gmmlib_21.2.1_amd64.deb && \ + wget https://github.com/intel/intel-graphics-compiler/releases/download/igc-1.0.8708/intel-igc-core_1.0.8708_amd64.deb && \ + wget https://github.com/intel/intel-graphics-compiler/releases/download/igc-1.0.8708/intel-igc-opencl_1.0.8708_amd64.deb && \ + wget https://github.com/intel/compute-runtime/releases/download/21.38.21026/intel-opencl_21.38.21026_amd64.deb && \ + wget https://github.com/intel/compute-runtime/releases/download/21.38.21026/intel-ocloc_21.38.21026_amd64.deb && \ + wget https://github.com/intel/compute-runtime/releases/download/21.38.21026/intel-level-zero-gpu_1.2.21026_amd64.deb && \ + dpkg -i /tmp/opencl/*.deb && \ + ldconfig && \ + rm -Rf /tmp/opencl + +RUN apt-get update && \ + apt-get install -y --no-install-recommends clinfo + +RUN usermod -aG video,users odm +RUN usermod -aG video,users,odm root +RUN if [ "${RENDER_GROUP_ID}" -ne 0 ]; then groupadd -g "${RENDER_GROUP_ID}" render; usermod -aG render odm; fi + +WORKDIR /var/www +USER odm + +ENTRYPOINT ["/usr/bin/node", "/var/www/index.js"]