Skip to content

Commit 803439a

Browse files
committed
Add "$ProgressPreference = 'SilentlyContinue';" to Windows-based variants
1 parent 7a5e33e commit 803439a

File tree

6 files changed

+12
-6
lines changed

6 files changed

+12
-6
lines changed

1.6/windows/nanoserver/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
FROM microsoft/nanoserver
22

3-
SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop';"]
3+
# $ProgressPreference: https://github.com/PowerShell/PowerShell/issues/2138#issuecomment-251261324
4+
SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"]
45

56
# no Git installed (intentionally)
67
# -- Nano Server is "Windows Slim"

1.6/windows/windowsservercore/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
FROM microsoft/windowsservercore
22

3-
SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop';"]
3+
# $ProgressPreference: https://github.com/PowerShell/PowerShell/issues/2138#issuecomment-251261324
4+
SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"]
45

56
# install Git (especially for "go get")
67
ENV GIT_VERSION 2.9.2

1.7/windows/nanoserver/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
FROM microsoft/nanoserver
22

3-
SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop';"]
3+
# $ProgressPreference: https://github.com/PowerShell/PowerShell/issues/2138#issuecomment-251261324
4+
SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"]
45

56
# no Git installed (intentionally)
67
# -- Nano Server is "Windows Slim"

1.7/windows/windowsservercore/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
FROM microsoft/windowsservercore
22

3-
SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop';"]
3+
# $ProgressPreference: https://github.com/PowerShell/PowerShell/issues/2138#issuecomment-251261324
4+
SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"]
45

56
# install Git (especially for "go get")
67
ENV GIT_VERSION 2.9.2

1.8/windows/nanoserver/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
FROM microsoft/nanoserver
22

3-
SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop';"]
3+
# $ProgressPreference: https://github.com/PowerShell/PowerShell/issues/2138#issuecomment-251261324
4+
SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"]
45

56
# no Git installed (intentionally)
67
# -- Nano Server is "Windows Slim"

1.8/windows/windowsservercore/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
FROM microsoft/windowsservercore
22

3-
SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop';"]
3+
# $ProgressPreference: https://github.com/PowerShell/PowerShell/issues/2138#issuecomment-251261324
4+
SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"]
45

56
# install Git (especially for "go get")
67
ENV GIT_VERSION 2.9.2

0 commit comments

Comments
 (0)