Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
Bob Tanner
packer-windows
Commits
236bd190
Unverified
Commit
236bd190
authored
Jan 21, 2017
by
Stefan Scherer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Pull docker images in background, write minimal progress
Signed-off-by:
Stefan Scherer
<
scherer_stefan@icloud.com
>
parent
ed5eb7e0
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
20 additions
and
6 deletions
+20
-6
scripts/docker/docker-pull-async.ps1
scripts/docker/docker-pull-async.ps1
+16
-0
scripts/docker/install-docker.ps1
scripts/docker/install-docker.ps1
+0
-6
windows_2016_docker.json
windows_2016_docker.json
+1
-0
windows_2016_docker_azure.json
windows_2016_docker_azure.json
+2
-0
windows_2016_docker_core.json
windows_2016_docker_core.json
+1
-0
No files found.
scripts/docker/docker-pull-async.ps1
0 → 100755
View file @
236bd190
function
DockerPull
{
Param
([
string
]
$image
)
Write-Host
Installing
$image
...
$j
=
Start-Job
-ScriptBlock
{
docker
pull
$image
}
while
(
$j
.
JobStateInfo
.
state
-ne
"Completed"
)
{
Write-Host
$j
.
JobStateInfo
.
state
Start-Sleep
10
}
$results
=
Receive-Job
-Job
$j
$results
}
DockerPull
microsoft/windowsservercore
DockerPull
microsoft/nanoserver
scripts/docker/install-docker.ps1
View file @
236bd190
...
...
@@ -14,9 +14,3 @@ Write-Host "Fix --restart=always for reboot ..."
&
sc.exe
config
Docker
depend
=
LanmanWorkstation
Start-Service
Docker
Write-Host
"Installing WindowsServerCore container image..."
&
"C:\Program Files\docker\docker.exe"
pull
microsoft/windowsservercore
Write-Host
"Installing NanoServer container image..."
&
"C:\Program Files\docker\docker.exe"
pull
microsoft/nanoserver
windows_2016_docker.json
View file @
236bd190
...
...
@@ -142,6 +142,7 @@
"scripts"
:
[
"./scripts/docker/add-docker-group.ps1"
,
"./scripts/docker/install-docker.ps1"
,
"./scripts/docker/docker-pull-async.ps1"
,
"./scripts/docker/open-docker-insecure-port.ps1"
,
"./scripts/docker/remove-docker-key-json.ps1"
,
"./scripts/docker/disable-windows-defender.ps1"
...
...
windows_2016_docker_azure.json
View file @
236bd190
...
...
@@ -53,7 +53,9 @@
"type"
:
"powershell"
,
"scripts"
:
[
"./scripts/docker/add-docker-group.ps1"
,
"./scripts/docker/disable-windows-defender.ps1"
,
"./scripts/docker/install-docker.ps1"
,
"./scripts/docker/docker-pull-async.ps1"
,
"./scripts/docker/remove-docker-key-json.ps1"
]
}
...
...
windows_2016_docker_core.json
View file @
236bd190
...
...
@@ -61,6 +61,7 @@
"scripts"
:
[
"./scripts/docker/add-docker-group.ps1"
,
"./scripts/docker/install-docker.ps1"
,
"./scripts/docker/docker-pull-async.ps1"
,
"./scripts/docker/open-docker-insecure-port.ps1"
,
"./scripts/docker/remove-docker-key-json.ps1"
,
"./scripts/docker/disable-windows-defender.ps1"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment