Skip to content

Commit 426d361

Browse files
committed
automatically install docker when it's not present
1 parent 5f7f7fa commit 426d361

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

CMakeLists.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,10 @@ if (NBL_WITH_DOCKER)
201201
if (DOCKER_EXECUTABLE)
202202
message(STATUS "Found docker executable: ${DOCKER_EXECUTABLE}")
203203
else()
204-
# TODO: Install docker
204+
execute_process(COMMAND powershell -Command "& {
205+
Invoke-WebRequest -Uri https://desktop.docker.com/win/main/amd64/Docker%20Desktop%20Installer.exe -OutFile DockerDesktopInstaller.exe;
206+
Start-Process -FilePath .\\DockerDesktopInstaller.exe -ArgumentList 'install','--quiet','--accept-license','--backend=wsl-2'
207+
}")
205208
endif()
206209
endif()
207210

0 commit comments

Comments
 (0)