-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Introduce windows images #362
Closed
Closed
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
FROM microsoft/windowsservercore as download | ||
|
||
SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"] | ||
|
||
ENV GPG_VERSION 2.3.4 | ||
|
||
RUN Invoke-WebRequest $('https://files.gpg4win.org/gpg4win-vanilla-{0}.exe' -f $env:GPG_VERSION) -OutFile 'gpg4win.exe' -UseBasicParsing ; \ | ||
Start-Process .\gpg4win.exe -ArgumentList '/S' -NoNewWindow -Wait | ||
|
||
RUN @( \ | ||
'9554F04D7259F04124DE6B476D5A82AC7E37093B', \ | ||
'94AE36675C464D64BAFA68DD7434390BDBE9B9C5', \ | ||
'FD3A5288F042B6850C66B31F09FE44734EB7990E', \ | ||
'71DCFD284A79C3B38668286BC97EC7A07EDE3FC1', \ | ||
'DD8F2338BAE7501E3DD5AC78C273792F7D83545D', \ | ||
'B9AE9905FFD7803F25714661B63B535A4C206CA9', \ | ||
'C4F0DFFF4E8C1A8236409D08E73BC641CC11F4C8', \ | ||
'56730D5401028683275BD23C23EFEFE93C4CFFFE' \ | ||
) | foreach { \ | ||
gpg --keyserver ha.pool.sks-keyservers.net --recv-keys $_ ; \ | ||
} | ||
|
||
ENV NODE_VERSION 4.8.4 | ||
|
||
RUN Invoke-WebRequest $('https://nodejs.org/dist/v{0}/SHASUMS256.txt.asc' -f $env:NODE_VERSION) -OutFile 'SHASUMS256.txt.asc' -UseBasicParsing ; \ | ||
gpg --batch --decrypt --output SHASUMS256.txt SHASUMS256.txt.asc | ||
|
||
RUN Invoke-WebRequest $('https://nodejs.org/dist/v{0}/node-v{0}-win-x64.zip' -f $env:NODE_VERSION) -OutFile 'node.zip' -UseBasicParsing ; \ | ||
$sum = $(cat SHASUMS256.txt.asc | sls $(' node-v{0}-win-x64.zip' -f $env:NODE_VERSION)) -Split ' ' ; \ | ||
if ((Get-FileHash node.zip -Algorithm sha256).Hash -ne $sum[0]) { Write-Error 'SHA256 mismatch' } ; \ | ||
Expand-Archive node.zip -DestinationPath C:\ ; \ | ||
Rename-Item -Path $('C:\node-v{0}-win-x64' -f $env:NODE_VERSION) -NewName 'C:\nodejs' | ||
|
||
ENV YARN_VERSION 0.27.5 | ||
|
||
RUN Invoke-WebRequest $('https://yarnpkg.com/downloads/{0}/yarn-{0}.msi' -f $env:YARN_VERSION) -OutFile yarn.msi -UseBasicParsing ; \ | ||
$sig = Get-AuthenticodeSignature yarn.msi ; \ | ||
if ($sig.Status -ne 'Valid') { Write-Error 'Authenticode signature is not valid' } ; \ | ||
if (@( \ | ||
'7E253367F8A102A91D04829E37F3410F14B68A5F' \ | ||
) -notcontains $sig.SignerCertificate.Thumbprint) { Write-Error 'Unknown signer certificate' } ; \ | ||
Start-Process msiexec.exe -ArgumentList '/i', 'yarn.msi', '/quiet', '/norestart' -NoNewWindow -Wait | ||
|
||
FROM microsoft/nanoserver | ||
|
||
SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"] | ||
This comment was marked as off-topic.
Sorry, something went wrong.
This comment was marked as off-topic.
Sorry, something went wrong. |
||
|
||
ENV NPM_CONFIG_LOGLEVEL info | ||
|
||
COPY --from=download /nodejs /nodejs | ||
COPY --from=download [ "/Program Files (x86)/yarn", "/yarn" ] | ||
|
||
RUN New-Item $($env:APPDATA + '\npm') -Type Directory ; \ | ||
$env:PATH = 'C:\nodejs;{0}\npm;C:\yarn\bin;{1}' -f $env:APPDATA, $env:PATH ; \ | ||
Set-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\Session Manager\Environment\' -Name Path -Value $env:PATH | ||
|
||
CMD [ "node.exe" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
FROM microsoft/windowsservercore as download | ||
|
||
SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"] | ||
|
||
ENV GPG_VERSION 2.3.4 | ||
|
||
RUN Invoke-WebRequest $('https://files.gpg4win.org/gpg4win-vanilla-{0}.exe' -f $env:GPG_VERSION) -OutFile 'gpg4win.exe' -UseBasicParsing ; \ | ||
Start-Process .\gpg4win.exe -ArgumentList '/S' -NoNewWindow -Wait | ||
|
||
RUN @( \ | ||
'9554F04D7259F04124DE6B476D5A82AC7E37093B', \ | ||
'94AE36675C464D64BAFA68DD7434390BDBE9B9C5', \ | ||
'FD3A5288F042B6850C66B31F09FE44734EB7990E', \ | ||
'71DCFD284A79C3B38668286BC97EC7A07EDE3FC1', \ | ||
'DD8F2338BAE7501E3DD5AC78C273792F7D83545D', \ | ||
'B9AE9905FFD7803F25714661B63B535A4C206CA9', \ | ||
'C4F0DFFF4E8C1A8236409D08E73BC641CC11F4C8', \ | ||
'56730D5401028683275BD23C23EFEFE93C4CFFFE' \ | ||
) | foreach { \ | ||
gpg --keyserver ha.pool.sks-keyservers.net --recv-keys $_ ; \ | ||
} | ||
|
||
ENV NODE_VERSION 4.8.4 | ||
|
||
RUN Invoke-WebRequest $('https://nodejs.org/dist/v{0}/SHASUMS256.txt.asc' -f $env:NODE_VERSION) -OutFile 'SHASUMS256.txt.asc' -UseBasicParsing ; \ | ||
gpg --batch --decrypt --output SHASUMS256.txt SHASUMS256.txt.asc | ||
|
||
RUN Invoke-WebRequest $('https://nodejs.org/dist/v{0}/node-v{0}-win-x64.zip' -f $env:NODE_VERSION) -OutFile 'node.zip' -UseBasicParsing ; \ | ||
$sum = $(cat SHASUMS256.txt.asc | sls $(' node-v{0}-win-x64.zip' -f $env:NODE_VERSION)) -Split ' ' ; \ | ||
if ((Get-FileHash node.zip -Algorithm sha256).Hash -ne $sum[0]) { Write-Error 'SHA256 mismatch' } ; \ | ||
Expand-Archive node.zip -DestinationPath C:\ ; \ | ||
Rename-Item -Path $('C:\node-v{0}-win-x64' -f $env:NODE_VERSION) -NewName 'C:\nodejs' | ||
|
||
ENV YARN_VERSION 0.27.5 | ||
|
||
RUN Invoke-WebRequest $('https://yarnpkg.com/downloads/{0}/yarn-{0}.msi' -f $env:YARN_VERSION) -OutFile yarn.msi -UseBasicParsing ; \ | ||
$sig = Get-AuthenticodeSignature yarn.msi ; \ | ||
if ($sig.Status -ne 'Valid') { Write-Error 'Authenticode signature is not valid' } ; \ | ||
if (@( \ | ||
'7E253367F8A102A91D04829E37F3410F14B68A5F' \ | ||
) -notcontains $sig.SignerCertificate.Thumbprint) { Write-Error 'Unknown signer certificate' } ; \ | ||
Start-Process msiexec.exe -ArgumentList '/i', 'yarn.msi', '/quiet', '/norestart' -NoNewWindow -Wait | ||
|
||
FROM microsoft/windowsservercore | ||
|
||
SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"] | ||
|
||
ENV NPM_CONFIG_LOGLEVEL info | ||
|
||
COPY --from=download /nodejs /nodejs | ||
COPY --from=download [ "/Program Files (x86)/yarn", "/yarn" ] | ||
|
||
RUN New-Item $($env:APPDATA + '\npm') -Type Directory ; \ | ||
$env:PATH = 'C:\nodejs;{0}\npm;C:\yarn\bin;{1}' -f $env:APPDATA, $env:PATH ; \ | ||
[Environment]::SetEnvironmentVariable('PATH', $env:PATH, [EnvironmentVariableTarget]::Machine) | ||
|
||
CMD [ "node.exe" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
FROM microsoft/windowsservercore as download | ||
|
||
SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"] | ||
|
||
ENV GPG_VERSION 2.3.4 | ||
|
||
RUN Invoke-WebRequest $('https://files.gpg4win.org/gpg4win-vanilla-{0}.exe' -f $env:GPG_VERSION) -OutFile 'gpg4win.exe' -UseBasicParsing ; \ | ||
Start-Process .\gpg4win.exe -ArgumentList '/S' -NoNewWindow -Wait | ||
|
||
RUN @( \ | ||
'9554F04D7259F04124DE6B476D5A82AC7E37093B', \ | ||
'94AE36675C464D64BAFA68DD7434390BDBE9B9C5', \ | ||
'FD3A5288F042B6850C66B31F09FE44734EB7990E', \ | ||
'71DCFD284A79C3B38668286BC97EC7A07EDE3FC1', \ | ||
'DD8F2338BAE7501E3DD5AC78C273792F7D83545D', \ | ||
'B9AE9905FFD7803F25714661B63B535A4C206CA9', \ | ||
'C4F0DFFF4E8C1A8236409D08E73BC641CC11F4C8', \ | ||
'56730D5401028683275BD23C23EFEFE93C4CFFFE' \ | ||
) | foreach { \ | ||
gpg --keyserver ha.pool.sks-keyservers.net --recv-keys $_ ; \ | ||
} | ||
|
||
ENV NODE_VERSION 6.11.1 | ||
|
||
RUN Invoke-WebRequest $('https://nodejs.org/dist/v{0}/SHASUMS256.txt.asc' -f $env:NODE_VERSION) -OutFile 'SHASUMS256.txt.asc' -UseBasicParsing ; \ | ||
gpg --batch --decrypt --output SHASUMS256.txt SHASUMS256.txt.asc | ||
|
||
RUN Invoke-WebRequest $('https://nodejs.org/dist/v{0}/node-v{0}-win-x64.zip' -f $env:NODE_VERSION) -OutFile 'node.zip' -UseBasicParsing ; \ | ||
$sum = $(cat SHASUMS256.txt.asc | sls $(' node-v{0}-win-x64.zip' -f $env:NODE_VERSION)) -Split ' ' ; \ | ||
if ((Get-FileHash node.zip -Algorithm sha256).Hash -ne $sum[0]) { Write-Error 'SHA256 mismatch' } ; \ | ||
Expand-Archive node.zip -DestinationPath C:\ ; \ | ||
Rename-Item -Path $('C:\node-v{0}-win-x64' -f $env:NODE_VERSION) -NewName 'C:\nodejs' | ||
|
||
ENV YARN_VERSION 0.27.5 | ||
|
||
RUN Invoke-WebRequest $('https://yarnpkg.com/downloads/{0}/yarn-{0}.msi' -f $env:YARN_VERSION) -OutFile yarn.msi -UseBasicParsing ; \ | ||
$sig = Get-AuthenticodeSignature yarn.msi ; \ | ||
if ($sig.Status -ne 'Valid') { Write-Error 'Authenticode signature is not valid' } ; \ | ||
if (@( \ | ||
'7E253367F8A102A91D04829E37F3410F14B68A5F' \ | ||
) -notcontains $sig.SignerCertificate.Thumbprint) { Write-Error 'Unknown signer certificate' } ; \ | ||
Start-Process msiexec.exe -ArgumentList '/i', 'yarn.msi', '/quiet', '/norestart' -NoNewWindow -Wait | ||
|
||
FROM microsoft/nanoserver | ||
|
||
SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"] | ||
|
||
ENV NPM_CONFIG_LOGLEVEL info | ||
|
||
COPY --from=download /nodejs /nodejs | ||
COPY --from=download [ "/Program Files (x86)/yarn", "/yarn" ] | ||
|
||
RUN New-Item $($env:APPDATA + '\npm') -Type Directory ; \ | ||
$env:PATH = 'C:\nodejs;{0}\npm;C:\yarn\bin;{1}' -f $env:APPDATA, $env:PATH ; \ | ||
Set-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\Session Manager\Environment\' -Name Path -Value $env:PATH | ||
|
||
CMD [ "node.exe" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
FROM microsoft/windowsservercore as download | ||
|
||
SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"] | ||
|
||
ENV GPG_VERSION 2.3.4 | ||
|
||
RUN Invoke-WebRequest $('https://files.gpg4win.org/gpg4win-vanilla-{0}.exe' -f $env:GPG_VERSION) -OutFile 'gpg4win.exe' -UseBasicParsing ; \ | ||
Start-Process .\gpg4win.exe -ArgumentList '/S' -NoNewWindow -Wait | ||
|
||
RUN @( \ | ||
'9554F04D7259F04124DE6B476D5A82AC7E37093B', \ | ||
'94AE36675C464D64BAFA68DD7434390BDBE9B9C5', \ | ||
'FD3A5288F042B6850C66B31F09FE44734EB7990E', \ | ||
'71DCFD284A79C3B38668286BC97EC7A07EDE3FC1', \ | ||
'DD8F2338BAE7501E3DD5AC78C273792F7D83545D', \ | ||
'B9AE9905FFD7803F25714661B63B535A4C206CA9', \ | ||
'C4F0DFFF4E8C1A8236409D08E73BC641CC11F4C8', \ | ||
'56730D5401028683275BD23C23EFEFE93C4CFFFE' \ | ||
) | foreach { \ | ||
gpg --keyserver ha.pool.sks-keyservers.net --recv-keys $_ ; \ | ||
} | ||
|
||
ENV NODE_VERSION 6.11.1 | ||
|
||
RUN Invoke-WebRequest $('https://nodejs.org/dist/v{0}/SHASUMS256.txt.asc' -f $env:NODE_VERSION) -OutFile 'SHASUMS256.txt.asc' -UseBasicParsing ; \ | ||
gpg --batch --decrypt --output SHASUMS256.txt SHASUMS256.txt.asc | ||
|
||
RUN Invoke-WebRequest $('https://nodejs.org/dist/v{0}/node-v{0}-win-x64.zip' -f $env:NODE_VERSION) -OutFile 'node.zip' -UseBasicParsing ; \ | ||
$sum = $(cat SHASUMS256.txt.asc | sls $(' node-v{0}-win-x64.zip' -f $env:NODE_VERSION)) -Split ' ' ; \ | ||
if ((Get-FileHash node.zip -Algorithm sha256).Hash -ne $sum[0]) { Write-Error 'SHA256 mismatch' } ; \ | ||
Expand-Archive node.zip -DestinationPath C:\ ; \ | ||
Rename-Item -Path $('C:\node-v{0}-win-x64' -f $env:NODE_VERSION) -NewName 'C:\nodejs' | ||
|
||
ENV YARN_VERSION 0.27.5 | ||
|
||
RUN Invoke-WebRequest $('https://yarnpkg.com/downloads/{0}/yarn-{0}.msi' -f $env:YARN_VERSION) -OutFile yarn.msi -UseBasicParsing ; \ | ||
$sig = Get-AuthenticodeSignature yarn.msi ; \ | ||
if ($sig.Status -ne 'Valid') { Write-Error 'Authenticode signature is not valid' } ; \ | ||
if (@( \ | ||
'7E253367F8A102A91D04829E37F3410F14B68A5F' \ | ||
) -notcontains $sig.SignerCertificate.Thumbprint) { Write-Error 'Unknown signer certificate' } ; \ | ||
Start-Process msiexec.exe -ArgumentList '/i', 'yarn.msi', '/quiet', '/norestart' -NoNewWindow -Wait | ||
|
||
FROM microsoft/windowsservercore | ||
|
||
SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"] | ||
|
||
ENV NPM_CONFIG_LOGLEVEL info | ||
|
||
COPY --from=download /nodejs /nodejs | ||
COPY --from=download [ "/Program Files (x86)/yarn", "/yarn" ] | ||
|
||
RUN New-Item $($env:APPDATA + '\npm') -Type Directory ; \ | ||
$env:PATH = 'C:\nodejs;{0}\npm;C:\yarn\bin;{1}' -f $env:APPDATA, $env:PATH ; \ | ||
[Environment]::SetEnvironmentVariable('PATH', $env:PATH, [EnvironmentVariableTarget]::Machine) | ||
|
||
CMD [ "node.exe" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
FROM microsoft/windowsservercore as download | ||
|
||
SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"] | ||
|
||
ENV GPG_VERSION 2.3.4 | ||
|
||
RUN Invoke-WebRequest $('https://files.gpg4win.org/gpg4win-vanilla-{0}.exe' -f $env:GPG_VERSION) -OutFile 'gpg4win.exe' -UseBasicParsing ; \ | ||
Start-Process .\gpg4win.exe -ArgumentList '/S' -NoNewWindow -Wait | ||
|
||
RUN @( \ | ||
'9554F04D7259F04124DE6B476D5A82AC7E37093B', \ | ||
'94AE36675C464D64BAFA68DD7434390BDBE9B9C5', \ | ||
'FD3A5288F042B6850C66B31F09FE44734EB7990E', \ | ||
'71DCFD284A79C3B38668286BC97EC7A07EDE3FC1', \ | ||
'DD8F2338BAE7501E3DD5AC78C273792F7D83545D', \ | ||
'B9AE9905FFD7803F25714661B63B535A4C206CA9', \ | ||
'C4F0DFFF4E8C1A8236409D08E73BC641CC11F4C8', \ | ||
'56730D5401028683275BD23C23EFEFE93C4CFFFE' \ | ||
) | foreach { \ | ||
gpg --keyserver ha.pool.sks-keyservers.net --recv-keys $_ ; \ | ||
} | ||
|
||
ENV NODE_VERSION 7.10.1 | ||
|
||
RUN Invoke-WebRequest $('https://nodejs.org/dist/v{0}/SHASUMS256.txt.asc' -f $env:NODE_VERSION) -OutFile 'SHASUMS256.txt.asc' -UseBasicParsing ; \ | ||
gpg --batch --decrypt --output SHASUMS256.txt SHASUMS256.txt.asc | ||
|
||
RUN Invoke-WebRequest $('https://nodejs.org/dist/v{0}/node-v{0}-win-x64.zip' -f $env:NODE_VERSION) -OutFile 'node.zip' -UseBasicParsing ; \ | ||
$sum = $(cat SHASUMS256.txt.asc | sls $(' node-v{0}-win-x64.zip' -f $env:NODE_VERSION)) -Split ' ' ; \ | ||
if ((Get-FileHash node.zip -Algorithm sha256).Hash -ne $sum[0]) { Write-Error 'SHA256 mismatch' } ; \ | ||
Expand-Archive node.zip -DestinationPath C:\ ; \ | ||
Rename-Item -Path $('C:\node-v{0}-win-x64' -f $env:NODE_VERSION) -NewName 'C:\nodejs' | ||
|
||
ENV YARN_VERSION 0.27.5 | ||
|
||
RUN Invoke-WebRequest $('https://yarnpkg.com/downloads/{0}/yarn-{0}.msi' -f $env:YARN_VERSION) -OutFile yarn.msi -UseBasicParsing ; \ | ||
$sig = Get-AuthenticodeSignature yarn.msi ; \ | ||
if ($sig.Status -ne 'Valid') { Write-Error 'Authenticode signature is not valid' } ; \ | ||
if (@( \ | ||
'7E253367F8A102A91D04829E37F3410F14B68A5F' \ | ||
) -notcontains $sig.SignerCertificate.Thumbprint) { Write-Error 'Unknown signer certificate' } ; \ | ||
Start-Process msiexec.exe -ArgumentList '/i', 'yarn.msi', '/quiet', '/norestart' -NoNewWindow -Wait | ||
|
||
FROM microsoft/nanoserver | ||
|
||
SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"] | ||
|
||
ENV NPM_CONFIG_LOGLEVEL info | ||
|
||
COPY --from=download /nodejs /nodejs | ||
COPY --from=download [ "/Program Files (x86)/yarn", "/yarn" ] | ||
|
||
RUN New-Item $($env:APPDATA + '\npm') -Type Directory ; \ | ||
$env:PATH = 'C:\nodejs;{0}\npm;C:\yarn\bin;{1}' -f $env:APPDATA, $env:PATH ; \ | ||
Set-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\Session Manager\Environment\' -Name Path -Value $env:PATH | ||
|
||
CMD [ "node.exe" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
FROM microsoft/windowsservercore as download | ||
|
||
SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"] | ||
|
||
ENV GPG_VERSION 2.3.4 | ||
|
||
RUN Invoke-WebRequest $('https://files.gpg4win.org/gpg4win-vanilla-{0}.exe' -f $env:GPG_VERSION) -OutFile 'gpg4win.exe' -UseBasicParsing ; \ | ||
Start-Process .\gpg4win.exe -ArgumentList '/S' -NoNewWindow -Wait | ||
|
||
RUN @( \ | ||
'9554F04D7259F04124DE6B476D5A82AC7E37093B', \ | ||
'94AE36675C464D64BAFA68DD7434390BDBE9B9C5', \ | ||
'FD3A5288F042B6850C66B31F09FE44734EB7990E', \ | ||
'71DCFD284A79C3B38668286BC97EC7A07EDE3FC1', \ | ||
'DD8F2338BAE7501E3DD5AC78C273792F7D83545D', \ | ||
'B9AE9905FFD7803F25714661B63B535A4C206CA9', \ | ||
'C4F0DFFF4E8C1A8236409D08E73BC641CC11F4C8', \ | ||
'56730D5401028683275BD23C23EFEFE93C4CFFFE' \ | ||
) | foreach { \ | ||
gpg --keyserver ha.pool.sks-keyservers.net --recv-keys $_ ; \ | ||
} | ||
|
||
ENV NODE_VERSION 7.10.1 | ||
|
||
RUN Invoke-WebRequest $('https://nodejs.org/dist/v{0}/SHASUMS256.txt.asc' -f $env:NODE_VERSION) -OutFile 'SHASUMS256.txt.asc' -UseBasicParsing ; \ | ||
gpg --batch --decrypt --output SHASUMS256.txt SHASUMS256.txt.asc | ||
|
||
RUN Invoke-WebRequest $('https://nodejs.org/dist/v{0}/node-v{0}-win-x64.zip' -f $env:NODE_VERSION) -OutFile 'node.zip' -UseBasicParsing ; \ | ||
$sum = $(cat SHASUMS256.txt.asc | sls $(' node-v{0}-win-x64.zip' -f $env:NODE_VERSION)) -Split ' ' ; \ | ||
if ((Get-FileHash node.zip -Algorithm sha256).Hash -ne $sum[0]) { Write-Error 'SHA256 mismatch' } ; \ | ||
Expand-Archive node.zip -DestinationPath C:\ ; \ | ||
Rename-Item -Path $('C:\node-v{0}-win-x64' -f $env:NODE_VERSION) -NewName 'C:\nodejs' | ||
|
||
ENV YARN_VERSION 0.27.5 | ||
|
||
RUN Invoke-WebRequest $('https://yarnpkg.com/downloads/{0}/yarn-{0}.msi' -f $env:YARN_VERSION) -OutFile yarn.msi -UseBasicParsing ; \ | ||
$sig = Get-AuthenticodeSignature yarn.msi ; \ | ||
if ($sig.Status -ne 'Valid') { Write-Error 'Authenticode signature is not valid' } ; \ | ||
if (@( \ | ||
'7E253367F8A102A91D04829E37F3410F14B68A5F' \ | ||
) -notcontains $sig.SignerCertificate.Thumbprint) { Write-Error 'Unknown signer certificate' } ; \ | ||
Start-Process msiexec.exe -ArgumentList '/i', 'yarn.msi', '/quiet', '/norestart' -NoNewWindow -Wait | ||
|
||
FROM microsoft/windowsservercore | ||
|
||
SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"] | ||
|
||
ENV NPM_CONFIG_LOGLEVEL info | ||
|
||
COPY --from=download /nodejs /nodejs | ||
COPY --from=download [ "/Program Files (x86)/yarn", "/yarn" ] | ||
|
||
RUN New-Item $($env:APPDATA + '\npm') -Type Directory ; \ | ||
$env:PATH = 'C:\nodejs;{0}\npm;C:\yarn\bin;{1}' -f $env:APPDATA, $env:PATH ; \ | ||
[Environment]::SetEnvironmentVariable('PATH', $env:PATH, [EnvironmentVariableTarget]::Machine) | ||
|
||
CMD [ "node.exe" ] |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This comment was marked as off-topic.
Sorry, something went wrong.