Commit c61948b0 authored by Stefan Scherer's avatar Stefan Scherer
Browse files

Clean up docker installation

parent c08b90e1
# http cache
Packer is able to start an HTTP server, but the variables for IP and port are only available while running the boot command.
So we have to run another HTTP server.
This http cache directory is used to speed up the installation of the
## Build the cache
$ curl -L -o ContainerOSImage
## Run the http cache server
$ python -m SimpleHTTPServer 8000
## Build the packer box
$ cd ..
$ packer build --only=vmware-iso windows_2016.json
powershell.exe -Command "Install-WindowsFeature -Name Containers"
shutdown /r /t 5 /f /d p:4:1 /c "Reboot for Containters"
net stop winrm
net stop OpenSSHd
echo Sleeping while restart in progress
ping -n 60 > nul
powershell.exe -Command "wget -uri -OutFile C:\ContainerSetup.ps1"
powershell.exe -File "C:\ContainerSetup.ps1"
echo ======= PAUSE ========
ping -n 3600 > nul
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
) else (
powershell.exe -File "C:\ContainerSetup.ps1"
del C:\ContainerOSImage
echo ======= PAUSE DONE ===
echo ======= Sleeping while restart ========
ping -n 30 > nul
......@@ -75,18 +75,7 @@
"type": "windows-restart"
"type": "shell",
"remote_path": "/tmp/script.bat",
"execute_command": "{{.Vars}} cmd /c C:/Windows/Temp/script.bat",
"scripts": [
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