Skip to content

Commit 963918c

Browse files
authored
Merge pull request #302 from thaJeztah/Dockerfile_nits
Windows: improve consistency in install verify steps
2 parents e52dbc6 + 3a993b6 commit 963918c

File tree

7 files changed

+35
-35
lines changed

7 files changed

+35
-35
lines changed

1.12/windows/windowsservercore-1803/Dockerfile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ RUN Write-Host ('Downloading {0} ...' -f $env:GIT_DOWNLOAD_URL); \
3232
$env:PATH = 'C:\git\cmd;C:\git\mingw64\bin;C:\git\usr\bin;' + $env:PATH; \
3333
[Environment]::SetEnvironmentVariable('PATH', $env:PATH, [EnvironmentVariableTarget]::Machine); \
3434
\
35-
Write-Host 'Verifying install ...'; \
36-
Write-Host ' git --version'; git --version; \
35+
Write-Host 'Verifying install ("git version") ...'; \
36+
git version; \
3737
\
3838
Write-Host 'Complete.';
3939

@@ -62,12 +62,12 @@ RUN $url = ('https://golang.org/dl/go{0}.windows-amd64.zip' -f $env:GOLANG_VERSI
6262
Write-Host 'Expanding ...'; \
6363
Expand-Archive go.zip -DestinationPath C:\; \
6464
\
65-
Write-Host 'Verifying install ("go version") ...'; \
66-
go version; \
67-
\
6865
Write-Host 'Removing ...'; \
6966
Remove-Item go.zip -Force; \
7067
\
68+
Write-Host 'Verifying install ("go version") ...'; \
69+
go version; \
70+
\
7171
Write-Host 'Complete.';
7272

7373
WORKDIR $GOPATH

1.12/windows/windowsservercore-1809/Dockerfile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ RUN Write-Host ('Downloading {0} ...' -f $env:GIT_DOWNLOAD_URL); \
3232
$env:PATH = 'C:\git\cmd;C:\git\mingw64\bin;C:\git\usr\bin;' + $env:PATH; \
3333
[Environment]::SetEnvironmentVariable('PATH', $env:PATH, [EnvironmentVariableTarget]::Machine); \
3434
\
35-
Write-Host 'Verifying install ...'; \
36-
Write-Host ' git --version'; git --version; \
35+
Write-Host 'Verifying install ("git version") ...'; \
36+
git version; \
3737
\
3838
Write-Host 'Complete.';
3939

@@ -62,12 +62,12 @@ RUN $url = ('https://golang.org/dl/go{0}.windows-amd64.zip' -f $env:GOLANG_VERSI
6262
Write-Host 'Expanding ...'; \
6363
Expand-Archive go.zip -DestinationPath C:\; \
6464
\
65-
Write-Host 'Verifying install ("go version") ...'; \
66-
go version; \
67-
\
6865
Write-Host 'Removing ...'; \
6966
Remove-Item go.zip -Force; \
7067
\
68+
Write-Host 'Verifying install ("go version") ...'; \
69+
go version; \
70+
\
7171
Write-Host 'Complete.';
7272

7373
WORKDIR $GOPATH

1.12/windows/windowsservercore-ltsc2016/Dockerfile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ RUN Write-Host ('Downloading {0} ...' -f $env:GIT_DOWNLOAD_URL); \
3232
$env:PATH = 'C:\git\cmd;C:\git\mingw64\bin;C:\git\usr\bin;' + $env:PATH; \
3333
[Environment]::SetEnvironmentVariable('PATH', $env:PATH, [EnvironmentVariableTarget]::Machine); \
3434
\
35-
Write-Host 'Verifying install ...'; \
36-
Write-Host ' git --version'; git --version; \
35+
Write-Host 'Verifying install ("git version") ...'; \
36+
git version; \
3737
\
3838
Write-Host 'Complete.';
3939

@@ -62,12 +62,12 @@ RUN $url = ('https://golang.org/dl/go{0}.windows-amd64.zip' -f $env:GOLANG_VERSI
6262
Write-Host 'Expanding ...'; \
6363
Expand-Archive go.zip -DestinationPath C:\; \
6464
\
65-
Write-Host 'Verifying install ("go version") ...'; \
66-
go version; \
67-
\
6865
Write-Host 'Removing ...'; \
6966
Remove-Item go.zip -Force; \
7067
\
68+
Write-Host 'Verifying install ("go version") ...'; \
69+
go version; \
70+
\
7171
Write-Host 'Complete.';
7272

7373
WORKDIR $GOPATH

1.13/windows/windowsservercore-1803/Dockerfile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ RUN Write-Host ('Downloading {0} ...' -f $env:GIT_DOWNLOAD_URL); \
3232
$env:PATH = 'C:\git\cmd;C:\git\mingw64\bin;C:\git\usr\bin;' + $env:PATH; \
3333
[Environment]::SetEnvironmentVariable('PATH', $env:PATH, [EnvironmentVariableTarget]::Machine); \
3434
\
35-
Write-Host 'Verifying install ...'; \
36-
Write-Host ' git --version'; git --version; \
35+
Write-Host 'Verifying install ("git version") ...'; \
36+
git version; \
3737
\
3838
Write-Host 'Complete.';
3939

@@ -62,12 +62,12 @@ RUN $url = ('https://golang.org/dl/go{0}.windows-amd64.zip' -f $env:GOLANG_VERSI
6262
Write-Host 'Expanding ...'; \
6363
Expand-Archive go.zip -DestinationPath C:\; \
6464
\
65-
Write-Host 'Verifying install ("go version") ...'; \
66-
go version; \
67-
\
6865
Write-Host 'Removing ...'; \
6966
Remove-Item go.zip -Force; \
7067
\
68+
Write-Host 'Verifying install ("go version") ...'; \
69+
go version; \
70+
\
7171
Write-Host 'Complete.';
7272

7373
WORKDIR $GOPATH

1.13/windows/windowsservercore-1809/Dockerfile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ RUN Write-Host ('Downloading {0} ...' -f $env:GIT_DOWNLOAD_URL); \
3232
$env:PATH = 'C:\git\cmd;C:\git\mingw64\bin;C:\git\usr\bin;' + $env:PATH; \
3333
[Environment]::SetEnvironmentVariable('PATH', $env:PATH, [EnvironmentVariableTarget]::Machine); \
3434
\
35-
Write-Host 'Verifying install ...'; \
36-
Write-Host ' git --version'; git --version; \
35+
Write-Host 'Verifying install ("git version") ...'; \
36+
git version; \
3737
\
3838
Write-Host 'Complete.';
3939

@@ -62,12 +62,12 @@ RUN $url = ('https://golang.org/dl/go{0}.windows-amd64.zip' -f $env:GOLANG_VERSI
6262
Write-Host 'Expanding ...'; \
6363
Expand-Archive go.zip -DestinationPath C:\; \
6464
\
65-
Write-Host 'Verifying install ("go version") ...'; \
66-
go version; \
67-
\
6865
Write-Host 'Removing ...'; \
6966
Remove-Item go.zip -Force; \
7067
\
68+
Write-Host 'Verifying install ("go version") ...'; \
69+
go version; \
70+
\
7171
Write-Host 'Complete.';
7272

7373
WORKDIR $GOPATH

1.13/windows/windowsservercore-ltsc2016/Dockerfile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ RUN Write-Host ('Downloading {0} ...' -f $env:GIT_DOWNLOAD_URL); \
3232
$env:PATH = 'C:\git\cmd;C:\git\mingw64\bin;C:\git\usr\bin;' + $env:PATH; \
3333
[Environment]::SetEnvironmentVariable('PATH', $env:PATH, [EnvironmentVariableTarget]::Machine); \
3434
\
35-
Write-Host 'Verifying install ...'; \
36-
Write-Host ' git --version'; git --version; \
35+
Write-Host 'Verifying install ("git version") ...'; \
36+
git version; \
3737
\
3838
Write-Host 'Complete.';
3939

@@ -62,12 +62,12 @@ RUN $url = ('https://golang.org/dl/go{0}.windows-amd64.zip' -f $env:GOLANG_VERSI
6262
Write-Host 'Expanding ...'; \
6363
Expand-Archive go.zip -DestinationPath C:\; \
6464
\
65-
Write-Host 'Verifying install ("go version") ...'; \
66-
go version; \
67-
\
6865
Write-Host 'Removing ...'; \
6966
Remove-Item go.zip -Force; \
7067
\
68+
Write-Host 'Verifying install ("go version") ...'; \
69+
go version; \
70+
\
7171
Write-Host 'Complete.';
7272

7373
WORKDIR $GOPATH

Dockerfile-windows-windowsservercore.template

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ RUN Write-Host ('Downloading {0} ...' -f $env:GIT_DOWNLOAD_URL); \
3232
$env:PATH = 'C:\git\cmd;C:\git\mingw64\bin;C:\git\usr\bin;' + $env:PATH; \
3333
[Environment]::SetEnvironmentVariable('PATH', $env:PATH, [EnvironmentVariableTarget]::Machine); \
3434
\
35-
Write-Host 'Verifying install ...'; \
36-
Write-Host ' git --version'; git --version; \
35+
Write-Host 'Verifying install ("git version") ...'; \
36+
git version; \
3737
\
3838
Write-Host 'Complete.';
3939

@@ -62,12 +62,12 @@ RUN $url = ('https://golang.org/dl/go{0}.windows-amd64.zip' -f $env:GOLANG_VERSI
6262
Write-Host 'Expanding ...'; \
6363
Expand-Archive go.zip -DestinationPath C:\; \
6464
\
65-
Write-Host 'Verifying install ("go version") ...'; \
66-
go version; \
67-
\
6865
Write-Host 'Removing ...'; \
6966
Remove-Item go.zip -Force; \
7067
\
68+
Write-Host 'Verifying install ("go version") ...'; \
69+
go version; \
70+
\
7171
Write-Host 'Complete.';
7272

7373
WORKDIR $GOPATH

0 commit comments

Comments
 (0)