Skip to content
Snippets Groups Projects
Select Git revision
  • ac5cafed67cde8a06cac9aaabfeec0f18b3cb16b
  • master default protected
  • dev_moritz
  • 0.2.0
  • 0.1.0
5 results

Dockerfile

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    Dockerfile 2.17 KiB
    # SPDX-License-Identifier: AGPL-3.0-or-later
    FROM git.imp.fu-berlin.de:5000/bioroboticslab/robofish/docker:current-base-windows
    
    LABEL maintainer="Moritz Maxeiner <moritz.maxeiner@fu-berlin.de>"
    LABEL authors="Moritz Maxeiner <moritz.maxeiner@fu-berlin.de>"
    
    RUN [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; \
        (New-Object Net.WebClient).DownloadFile('https://developer.download.nvidia.com/compute/cuda/10.1/Prod/network_installers/cuda_10.1.243_win10_network.exe', 'C:/cuda_10.1.243_win10_network.exe'); \
        (New-Object Net.WebClient).DownloadFile('https://developer.download.nvidia.com/compute/redist/cudnn/v7.6.1/cudnn-10.1-windows10-x64-v7.6.1.34.zip', 'C:/cudnn-10.1-windows10-x64-v7.6.1.34.zip'); \
        Start-Process C:/cuda_10.1.243_win10_network.exe -NoNewWindow -Wait -ArgumentList '-s nvcc_10.1 cublas_10.1 cublas_dev_10.1 cudart_10.1 cufft_10.1 cufft_dev_10.1 curand_10.1 curand_dev_10.1 cusolver_10.1 cusolver_dev_10.1 cusparse_10.1 cusparse_dev_10.1 npp_10.1 npp_dev_10.1 nvrtc_10.1 nvrtc_dev_10.1 nvml_dev_10.1'; \
        Remove-Item -Force C:/cuda_10.1.243_win10_network.exe; \
        7z x C:/cudnn-10.1-windows10-x64-v7.6.1.34.zip; \
        Copy-Item -Force -Recurse "./cuda/*" "$([Environment]::GetEnvironmentVariable('CUDA_PATH', [EnvironmentVariableTarget]::Machine))"; \
        Remove-Item -Force -Recurse "./cuda"; \
        Remove-Item -Force C:/cudnn-10.1-windows10-x64-v7.6.1.34.zip
    
    RUN cd $env:VCPKG_DIR; \
        ./vcpkg install --triplet "$env:VCPKG_TARGET_TRIPLET" \
            "\"ffmpeg[nvcodec,avresample]\"" \
            "\"opencv4[cuda,ffmpeg,ximea,opengl,contrib,ipp,dnn]\""; \
        Remove-Item -Force -Recurse ./downloads; \
        Remove-Item -Force -Recurse ./buildtrees; \
        Remove-Item -Force -Recurse ./packages;
    
    COPY opengl32.dll C:/Windows/System32/opengl32.dll
    COPY glu32.dll C:/Windows/System32/glu32.dll
    COPY ddraw.dll C:/Windows/System32/ddraw.dll
    COPY nvcuda.dll C:/Windows/System32/nvcuda.dll
    RUN cd $env:VCPKG_DIR; \
        ./vcpkg install --triplet "$env:VCPKG_TARGET_TRIPLET" \
            "\"mxnet[cpp,opencv,cuda,cudnn]\""; \
        Remove-Item -Force -Recurse ./downloads; \
        Remove-Item -Force -Recurse ./buildtrees; \
        Remove-Item -Force -Recurse ./packages;