Skip to content
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

[DNM] Add windowsservercore with MSI installers #827

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions 10/windowsservercore/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
FROM microsoft/windowsservercore:1803

SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"]

ENV NODE_VERSION 10.7.0

RUN [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 ; \
Invoke-WebRequest $('https://nodejs.org/dist/v{0}/node-v{0}-x64.msi' -f $env:NODE_VERSION) -OutFile "$env:Temp\node.msi" -UseBasicParsing ; \
$sig = Get-AuthenticodeSignature -filepath "$env:Temp\node.msi" ; \
if ($sig.Status -ne 'Valid') { Write-Error 'Authenticode signature is not valid' } ; \
if (@( \
'db2f847aed75d4586000c83cad0607fdc12aa2bd' \
) -notcontains $sig.SignerCertificate.Thumbprint) { Write-Error 'Unknown signer certificate' } ; \
Start-Process msiexec.exe -ArgumentList '/i', "$env:Temp\node.msi", '/quiet', '/norestart' -NoNewWindow -Wait; \
Remove-Item -Path "$env:Temp\node.msi"

ENV YARN_VERSION 1.7.0

RUN [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 ; \
Invoke-WebRequest $('https://yarnpkg.com/downloads/{0}/yarn-{0}.msi' -f $env:YARN_VERSION) -OutFile "$env:Temp\yarn.msi" -UseBasicParsing ; \
$sig = Get-AuthenticodeSignature -filepath "$env:Temp\yarn.msi" ; \
if ($sig.Status -ne 'Valid') { Write-Error 'Authenticode signature is not valid' } ; \
if (@( \
'AF764E1EA56C762617BDC757C8B0F3780A0CF5F9' \
) -notcontains $sig.SignerCertificate.Thumbprint) { Write-Error 'Unknown signer certificate' } ; \
Start-Process msiexec.exe -ArgumentList '/i', "$env:Temp\yarn.msi", '/quiet', '/norestart' -NoNewWindow -Wait; \
Remove-Item -Path "$env:Temp\yarn.msi"

CMD [ "node.exe" ]
29 changes: 29 additions & 0 deletions 6/windowsservercore/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
FROM microsoft/windowsservercore:1803

SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"]

ENV NODE_VERSION 6.14.3

RUN [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 ; \
Invoke-WebRequest $('https://nodejs.org/dist/v{0}/node-v{0}-x64.msi' -f $env:NODE_VERSION) -OutFile "$env:Temp\node.msi" -UseBasicParsing ; \
$sig = Get-AuthenticodeSignature -filepath "$env:Temp\node.msi" ; \
if ($sig.Status -ne 'Valid') { Write-Error 'Authenticode signature is not valid' } ; \
if (@( \
'db2f847aed75d4586000c83cad0607fdc12aa2bd' \
) -notcontains $sig.SignerCertificate.Thumbprint) { Write-Error 'Unknown signer certificate' } ; \
Start-Process msiexec.exe -ArgumentList '/i', "$env:Temp\node.msi", '/quiet', '/norestart' -NoNewWindow -Wait; \
Remove-Item -Path "$env:Temp\node.msi"

ENV YARN_VERSION 1.6.0

RUN [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 ; \
Invoke-WebRequest $('https://yarnpkg.com/downloads/{0}/yarn-{0}.msi' -f $env:YARN_VERSION) -OutFile "$env:Temp\yarn.msi" -UseBasicParsing ; \
$sig = Get-AuthenticodeSignature -filepath "$env:Temp\yarn.msi" ; \
if ($sig.Status -ne 'Valid') { Write-Error 'Authenticode signature is not valid' } ; \
if (@( \
'AF764E1EA56C762617BDC757C8B0F3780A0CF5F9' \
) -notcontains $sig.SignerCertificate.Thumbprint) { Write-Error 'Unknown signer certificate' } ; \
Start-Process msiexec.exe -ArgumentList '/i', "$env:Temp\yarn.msi", '/quiet', '/norestart' -NoNewWindow -Wait; \
Remove-Item -Path "$env:Temp\yarn.msi"

CMD [ "node.exe" ]
29 changes: 29 additions & 0 deletions 8/windowsservercore/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
FROM microsoft/windowsservercore:1803

SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"]

ENV NODE_VERSION 8.11.3

RUN [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 ; \
Invoke-WebRequest $('https://nodejs.org/dist/v{0}/node-v{0}-x64.msi' -f $env:NODE_VERSION) -OutFile "$env:Temp\node.msi" -UseBasicParsing ; \
$sig = Get-AuthenticodeSignature -filepath "$env:Temp\node.msi" ; \
if ($sig.Status -ne 'Valid') { Write-Error 'Authenticode signature is not valid' } ; \
if (@( \
'db2f847aed75d4586000c83cad0607fdc12aa2bd' \
) -notcontains $sig.SignerCertificate.Thumbprint) { Write-Error 'Unknown signer certificate' } ; \
Start-Process msiexec.exe -ArgumentList '/i', "$env:Temp\node.msi", '/quiet', '/norestart' -NoNewWindow -Wait; \
Remove-Item -Path "$env:Temp\node.msi"

ENV YARN_VERSION 1.6.0

RUN [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 ; \
Invoke-WebRequest $('https://yarnpkg.com/downloads/{0}/yarn-{0}.msi' -f $env:YARN_VERSION) -OutFile "$env:Temp\yarn.msi" -UseBasicParsing ; \
$sig = Get-AuthenticodeSignature -filepath "$env:Temp\yarn.msi" ; \
if ($sig.Status -ne 'Valid') { Write-Error 'Authenticode signature is not valid' } ; \
if (@( \
'AF764E1EA56C762617BDC757C8B0F3780A0CF5F9' \
) -notcontains $sig.SignerCertificate.Thumbprint) { Write-Error 'Unknown signer certificate' } ; \
Start-Process msiexec.exe -ArgumentList '/i', "$env:Temp\yarn.msi", '/quiet', '/norestart' -NoNewWindow -Wait; \
Remove-Item -Path "$env:Temp\yarn.msi"

CMD [ "node.exe" ]
29 changes: 29 additions & 0 deletions Dockerfile-windowsservercore.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
FROM microsoft/windowsservercore:1803

SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"]

ENV NODE_VERSION 0.0.0

RUN [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 ; \
Invoke-WebRequest $('https://nodejs.org/dist/v{0}/node-v{0}-x64.msi' -f $env:NODE_VERSION) -OutFile "$env:Temp\node.msi" -UseBasicParsing ; \
$sig = Get-AuthenticodeSignature -filepath "$env:Temp\node.msi" ; \
if ($sig.Status -ne 'Valid') { Write-Error 'Authenticode signature is not valid' } ; \
if (@( \
'db2f847aed75d4586000c83cad0607fdc12aa2bd' \
) -notcontains $sig.SignerCertificate.Thumbprint) { Write-Error 'Unknown signer certificate' } ; \
Start-Process msiexec.exe -ArgumentList '/i', "$env:Temp\node.msi", '/quiet', '/norestart' -NoNewWindow -Wait; \
Remove-Item -Path "$env:Temp\node.msi"

ENV YARN_VERSION 0.0.0

RUN [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 ; \
Invoke-WebRequest $('https://yarnpkg.com/downloads/{0}/yarn-{0}.msi' -f $env:YARN_VERSION) -OutFile "$env:Temp\yarn.msi" -UseBasicParsing ; \
$sig = Get-AuthenticodeSignature -filepath "$env:Temp\yarn.msi" ; \
if ($sig.Status -ne 'Valid') { Write-Error 'Authenticode signature is not valid' } ; \
if (@( \
'AF764E1EA56C762617BDC757C8B0F3780A0CF5F9' \
) -notcontains $sig.SignerCertificate.Thumbprint) { Write-Error 'Unknown signer certificate' } ; \
Start-Process msiexec.exe -ArgumentList '/i', "$env:Temp\yarn.msi", '/quiet', '/norestart' -NoNewWindow -Wait; \
Remove-Item -Path "$env:Temp\yarn.msi"

CMD [ "node.exe" ]
1 change: 1 addition & 0 deletions architectures
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ amd64 jessie,alpine,onbuild,slim,stretch
i386 jessie,alpine,onbuild,slim,stretch
ppc64le jessie,alpine,onbuild,slim,stretch
s390x jessie,alpine,onbuild,slim,stretch
windows-amd64 windowsservercore