Signed-off-by: John Howard <jhoward@microsoft.com>
John Howard authored on 2016/04/06 08:25:43... | ... |
@@ -19,21 +19,15 @@ |
19 | 19 |
# Important notes: |
20 | 20 |
# --------------- |
21 | 21 |
# |
22 |
-# 'Start-Sleep' is a deliberate workaround for a current problem on containers in Windows |
|
23 |
-# Server 2016. It ensures that the network is up and available for when the command is |
|
24 |
-# network related. This bug is being tracked internally at Microsoft and exists in TP4. |
|
25 |
-# Generally sleep 1 or 2 is probably enough, but making it 5 to make the build file |
|
26 |
-# as bullet proof as possible. This isn't a big deal as this only runs the first time. |
|
27 |
-# |
|
28 |
-# The cygwin posix utilities from GIT aren't usable interactively as at January 2016. This |
|
22 |
+# The posix utilities from GIT aren't usable interactively as at January 2016. This |
|
29 | 23 |
# is because they require a console window which isn't present in a container in Windows. |
30 | 24 |
# See the example at the top of this file. Do NOT use -it in that docker run!!! |
31 | 25 |
# |
32 |
-# Don't try to use a volume for passing the source through. The cygwin posix utilities will |
|
26 |
+# Don't try to use a volume for passing the source through. The posix utilities will |
|
33 | 27 |
# balk at reparse points. Again, see the example at the top of this file on how use a volume |
34 | 28 |
# to get the built binary out of the container. |
35 | 29 |
# |
36 |
-# The steps are minimised dramatically to improve performance (TP4 is slow on commit) |
|
30 |
+# The steps are minimised dramatically to improve performance |
|
37 | 31 |
|
38 | 32 |
FROM windowsservercore |
39 | 33 |
|
... | ... |
@@ -54,7 +48,6 @@ RUN \ |
54 | 54 |
setx GOROOT "c:\go" && \ |
55 | 55 |
powershell -command \ |
56 | 56 |
$ErrorActionPreference = 'Stop'; \ |
57 |
- Start-Sleep -Seconds 5; \ |
|
58 | 57 |
Function Download-File([string] $source, [string] $target) { \ |
59 | 58 |
$wc = New-Object net.webclient; $wc.Downloadfile($source, $target) \ |
60 | 59 |
} \ |