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

[windows] Move shared packages into base, build FFmpeg with Nvidia hardware...

[windows] Move shared packages into base, build FFmpeg with Nvidia hardware encoding capability in gpu image
parent c11b1835
Branches
No related tags found
No related merge requests found
...@@ -50,4 +50,31 @@ RUN $vcpkg_dir = 'C:/ProgramData/vcpkg'; \ ...@@ -50,4 +50,31 @@ RUN $vcpkg_dir = 'C:/ProgramData/vcpkg'; \
cd $vcpkg_dir; \ cd $vcpkg_dir; \
git checkout d61d47c5cac2198bf0262d75742e8a4a38e573d6; \ git checkout d61d47c5cac2198bf0262d75742e8a4a38e573d6; \
./scripts/bootstrap.ps1 -disableMetrics; \ ./scripts/bootstrap.ps1 -disableMetrics; \
[Environment]::SetEnvironmentVariable('VCPKG_DIR', "\"$vcpkg_dir\"", [EnvironmentVariableTarget]::Machine); $vcpkg_target_triplet = 'x64-windows-14.16'; \
[Environment]::SetEnvironmentVariable('VCPKG_DIR', "\"$vcpkg_dir\"", [EnvironmentVariableTarget]::Machine); \
[Environment]::SetEnvironmentVariable('VCPKG_TRIPLET', "\"$vcpkg_target_triplet\"", [EnvironmentVariableTarget]::Machine); \
[Environment]::SetEnvironmentVariable('VCPKG_TARGET_TRIPLET', "\"$vcpkg_target_triplet\"", [EnvironmentVariableTarget]::Machine); \
[Environment]::SetEnvironmentVariable('CMAKE_TOOLCHAIN_FILE', "\"$vcpkg_dir/scripts/buildsystems/vcpkg.cmake\"", [EnvironmentVariableTarget]::Machine); \
[Environment]::SetEnvironmentVariable('VCPKG_INSTALL_DIR', "\"$vcpkg_dir/installed/$vcpkg_triplet\"", [EnvironmentVariableTarget]::Machine);
ADD powershell/30-Vcpkg-CMake.ps1 /Windows/System32/WindowsPowerShell/v1.0/profile.d/30-Vcpkg-CMake.ps1
RUN cd $env:VCPKG_DIR; \
Must-Run ./vcpkg install --triplet "$env:VCPKG_TARGET_TRIPLET" \
libepoxy \
glm \
cgal \
"\"hdf5[cpp]\"" \
pybind11 \
boost-program-options \
boost-property-tree \
boost-circular-buffer \
boost-timer \
jsoncpp \
websocketpp \
freetype \
harfbuzz \
rpclib \
eigen3; \
Remove-Item -Force -Recurse ./downloads; \
Remove-Item -Force -Recurse ./buildtrees; \
Remove-Item -Force -Recurse ./packages;
...@@ -14,35 +14,21 @@ RUN [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tl ...@@ -14,35 +14,21 @@ RUN [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tl
Remove-Item -Force -Recurse "./cuda"; \ Remove-Item -Force -Recurse "./cuda"; \
Remove-Item -Force C:/cudnn-10.1-windows10-x64-v7.6.1.34.zip 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,core]\"" \
"\"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 opengl32.dll C:/Windows/System32/opengl32.dll
COPY glu32.dll C:/Windows/System32/glu32.dll COPY glu32.dll C:/Windows/System32/glu32.dll
COPY ddraw.dll C:/Windows/System32/ddraw.dll COPY ddraw.dll C:/Windows/System32/ddraw.dll
COPY nvcuda.dll C:/Windows/System32/nvcuda.dll COPY nvcuda.dll C:/Windows/System32/nvcuda.dll
RUN cd $env:VCPKG_DIR; \ RUN cd $env:VCPKG_DIR; \
$vcpkg_triplet = 'x64-windows-14.16'; \ ./vcpkg install --triplet "$env:VCPKG_TARGET_TRIPLET" \
Must-Run ./vcpkg install --triplet "$vcpkg_triplet" \
libepoxy \
glm \
cgal \
"\"hdf5[cpp]\"" \
pybind11 \
boost-program-options \
boost-property-tree \
boost-circular-buffer \
boost-timer \
jsoncpp \
websocketpp \
freetype \
harfbuzz \
rpclib \
eigen3 \
"\"opencv4[cuda,ffmpeg,ximea,opengl,contrib,ipp,dnn]\"" \
"\"mxnet[cpp,opencv,cuda,cudnn]\""; \ "\"mxnet[cpp,opencv,cuda,cudnn]\""; \
[Environment]::SetEnvironmentVariable('VCPKG_TRIPLET', "\"$vcpkg_triplet\"", [EnvironmentVariableTarget]::Machine); \
[Environment]::SetEnvironmentVariable('CMAKE_TOOLCHAIN_FILE', "\"$env:VCPKG_DIR/scripts/buildsystems/vcpkg.cmake\"", [EnvironmentVariableTarget]::Machine); \
[Environment]::SetEnvironmentVariable('VCPKG_TARGET_TRIPLET', "\"$vcpkg_triplet\"", [EnvironmentVariableTarget]::Machine); \
[Environment]::SetEnvironmentVariable('VCPKG_INSTALL_DIR', "\"$env:VCPKG_DIR/installed/$vcpkg_triplet\"", [EnvironmentVariableTarget]::Machine); \
Remove-Item -Force -Recurse ./downloads; \ Remove-Item -Force -Recurse ./downloads; \
Remove-Item -Force -Recurse ./buildtrees; \ Remove-Item -Force -Recurse ./buildtrees; \
Remove-Item -Force -Recurse ./packages; Remove-Item -Force -Recurse ./packages;
ADD powershell/30-Vcpkg-CMake.ps1 /Windows/System32/WindowsPowerShell/v1.0/profile.d/30-Vcpkg-CMake.ps1
...@@ -4,34 +4,20 @@ FROM git.imp.fu-berlin.de:5000/bioroboticslab/robofish/docker:base-windows-1809 ...@@ -4,34 +4,20 @@ FROM git.imp.fu-berlin.de:5000/bioroboticslab/robofish/docker:base-windows-1809
LABEL maintainer="Moritz Maxeiner <moritz.maxeiner@fu-berlin.de>" LABEL maintainer="Moritz Maxeiner <moritz.maxeiner@fu-berlin.de>"
LABEL authors="Moritz Maxeiner <moritz.maxeiner@fu-berlin.de>" LABEL authors="Moritz Maxeiner <moritz.maxeiner@fu-berlin.de>"
RUN cd $env:VCPKG_DIR; \
./vcpkg install --triplet "$env:VCPKG_TARGET_TRIPLET" \
"\"ffmpeg[avresample,core]\"" \
"\"opencv4[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 opengl32.dll C:/Windows/System32/opengl32.dll
COPY glu32.dll C:/Windows/System32/glu32.dll COPY glu32.dll C:/Windows/System32/glu32.dll
COPY ddraw.dll C:/Windows/System32/ddraw.dll COPY ddraw.dll C:/Windows/System32/ddraw.dll
RUN cd $env:VCPKG_DIR; \ RUN cd $env:VCPKG_DIR; \
$vcpkg_triplet = 'x64-windows-14.16'; \ ./vcpkg install --triplet "$env:VCPKG_TARGET_TRIPLET" \
Must-Run ./vcpkg install --triplet "$vcpkg_triplet" \
libepoxy \
glm \
cgal \
"\"hdf5[cpp]\"" \
pybind11 \
boost-program-options \
boost-property-tree \
boost-circular-buffer \
boost-timer \
jsoncpp \
websocketpp \
freetype \
harfbuzz \
rpclib \
eigen3 \
"\"opencv4[ffmpeg,ximea,opengl,contrib,ipp,dnn]\"" \
"\"mxnet[cpp,opencv]\""; \ "\"mxnet[cpp,opencv]\""; \
[Environment]::SetEnvironmentVariable('VCPKG_TRIPLET', "\"$vcpkg_triplet\"", [EnvironmentVariableTarget]::Machine); \
[Environment]::SetEnvironmentVariable('CMAKE_TOOLCHAIN_FILE', "\"$env:VCPKG_DIR/scripts/buildsystems/vcpkg.cmake\"", [EnvironmentVariableTarget]::Machine); \
[Environment]::SetEnvironmentVariable('VCPKG_TARGET_TRIPLET', "\"$vcpkg_triplet\"", [EnvironmentVariableTarget]::Machine); \
[Environment]::SetEnvironmentVariable('VCPKG_INSTALL_DIR', "\"$env:VCPKG_DIR/installed/$vcpkg_triplet\"", [EnvironmentVariableTarget]::Machine); \
Remove-Item -Force -Recurse ./downloads; \ Remove-Item -Force -Recurse ./downloads; \
Remove-Item -Force -Recurse ./buildtrees; \ Remove-Item -Force -Recurse ./buildtrees; \
Remove-Item -Force -Recurse ./packages; Remove-Item -Force -Recurse ./packages;
ADD powershell/30-Vcpkg-CMake.ps1 /Windows/System32/WindowsPowerShell/v1.0/profile.d/30-Vcpkg-CMake.ps1
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment