Commit 5d3d0186 authored by Stefan Scherer's avatar Stefan Scherer
Browse files

Local download/shared folder

parent 1385a1e4
rem https://msdn.microsoft.com/virtualization/windowscontainers/quick_start/inplace_setup
powershell.exe -Command "wget -uri http://aka.ms/setupcontainers -OutFile C:\ContainerSetup.ps1"
rem set WIMPATH=http://192.168.254.1:8000/ContainerOSImage
set WIMPATH=http://192.168.254.1:8000/ContainerOSImage.wim
set LOCALWIMPATH=C:\Users\vagrant\ContainerOSImage.wim
if "%WIMPATH%x"=="x" (
powershell.exe -File "C:\ContainerSetup.ps1"
) else (
powershell.exe -Command "wget -uri %WIMPATH% -OutFile C:\ContainerOSImage"
if exist C:\ContainerOSImage (
powershell.exe -File "C:\ContainerSetup.ps1" -WimPath C:\ContainerOSImage
powershell.exe -Command "wget -uri %WIMPATH% -OutFile %LOCALWIMPATH%"
)
:waiting
if not exist %LOCALWIMPATH% (
echo Waiting for WimPath %LOCALWIMPATH%
ping 127.0.0.1 -n 5 > nul
goto waiting
)
if exist %LOCALWIMPATH% (
powershell.exe -File "C:\ContainerSetup.ps1" -WimPath %LOCALWIMPATH%
del %LOCALWIMPATH%
) else (
powershell.exe -File "C:\ContainerSetup.ps1"
)
del C:\ContainerOSImage
)
echo Done with %0
rem https://msdn.microsoft.com/virtualization/windowscontainers/quick_start/manage_docker
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment