Skip to content

Commit c77f154

Browse files
committed
Add Official Support for Windows Docker Images
1 parent d5e9215 commit c77f154

File tree

3 files changed

+22
-13
lines changed

3 files changed

+22
-13
lines changed

22/windows-2019/Dockerfile

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,15 @@ RUN $newPath = ('C:\Program Files (x86)\GnuPG\bin;{0}' -f $env:PATH); \
88
[Environment]::SetEnvironmentVariable('PATH', $newPath, [EnvironmentVariableTarget]::Machine)
99
# doing this first to share cache across versions more aggressively
1010

11-
ENV NODE_VERSION 22.7.0
12-
ENV NODE_CHECKSUM 3fc638727974262b4f65a6b1b43c22fb2d80671cdcb50e1237e0b05d1330aaf7
11+
ENV NODE_VERSION 22.8.0
12+
ENV NODE_CHECKSUM d6e1c4fca93997224cac0bec09b4201aa018f50171d38c6b85abe483012839c9
1313

14-
ENV GPG_VERSION 2.4.5_20240307
14+
# Version and checksum of the GPG installer (Source: https://lists.gnupg.org/pipermail/gnupg-announce/2024q3/000484.html)
15+
ENV GPG_VERSION 2.5.0_20240705
16+
ENV GPG_CHECKSUM 35caef9965b10eed53b8d09b48fba5d1479f3512
1517

1618
RUN Invoke-WebRequest $('https://www.gnupg.org/ftp/gcrypt/binary/gnupg-w32-{0}.exe' -f $env:GPG_VERSION) -OutFile 'gpg-installer.exe'; \
19+
if ((Get-FileHash gpg-installer.exe -Algorithm sha1).Hash -ne $env:GPG_CHECKSUM) { Write-Error 'GPG checksum mismatch' }; \
1720
Start-Process -FilePath 'gpg-installer.exe' -ArgumentList '/S' -Wait; \
1821
gpg --version;
1922

@@ -58,5 +61,5 @@ ENTRYPOINT [ "powershell.exe" , "C:/docker-entrypoint.ps1" ]
5861
# Smoke test
5962
RUN node --version; \
6063
npm --version;
61-
62-
CMD [ "node.exe" ]
64+
65+
CMD [ "node.exe" ]

22/windows-2022/Dockerfile

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,15 @@ RUN $newPath = ('C:\Program Files (x86)\GnuPG\bin;{0}' -f $env:PATH); \
88
[Environment]::SetEnvironmentVariable('PATH', $newPath, [EnvironmentVariableTarget]::Machine)
99
# doing this first to share cache across versions more aggressively
1010

11-
ENV NODE_VERSION 22.7.0
12-
ENV NODE_CHECKSUM 3fc638727974262b4f65a6b1b43c22fb2d80671cdcb50e1237e0b05d1330aaf7
11+
ENV NODE_VERSION 22.8.0
12+
ENV NODE_CHECKSUM d6e1c4fca93997224cac0bec09b4201aa018f50171d38c6b85abe483012839c9
1313

14-
ENV GPG_VERSION 2.4.5_20240307
14+
# Version and checksum of the GPG installer (Source: https://lists.gnupg.org/pipermail/gnupg-announce/2024q3/000484.html)
15+
ENV GPG_VERSION 2.5.0_20240705
16+
ENV GPG_CHECKSUM 35caef9965b10eed53b8d09b48fba5d1479f3512
1517

1618
RUN Invoke-WebRequest $('https://www.gnupg.org/ftp/gcrypt/binary/gnupg-w32-{0}.exe' -f $env:GPG_VERSION) -OutFile 'gpg-installer.exe'; \
19+
if ((Get-FileHash gpg-installer.exe -Algorithm sha1).Hash -ne $env:GPG_CHECKSUM) { Write-Error 'GPG checksum mismatch' }; \
1720
Start-Process -FilePath 'gpg-installer.exe' -ArgumentList '/S' -Wait; \
1821
gpg --version;
1922

@@ -58,5 +61,5 @@ ENTRYPOINT [ "powershell.exe" , "C:/docker-entrypoint.ps1" ]
5861
# Smoke test
5962
RUN node --version; \
6063
npm --version;
61-
62-
CMD [ "node.exe" ]
64+
65+
CMD [ "node.exe" ]

Dockerfile-windows.template

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,12 @@ RUN $newPath = ('C:\Program Files (x86)\GnuPG\bin;{0}' -f $env:PATH); \
1111
ENV NODE_VERSION 0.0.0
1212
ENV NODE_CHECKSUM CHECKSUM_x64
1313

14-
ENV GPG_VERSION 2.4.5_20240307
14+
# Version and checksum of the GPG installer (Source: https://lists.gnupg.org/pipermail/gnupg-announce/2024q3/000484.html)
15+
ENV GPG_VERSION 2.5.0_20240705
16+
ENV GPG_CHECKSUM 35caef9965b10eed53b8d09b48fba5d1479f3512
1517

1618
RUN Invoke-WebRequest $('https://www.gnupg.org/ftp/gcrypt/binary/gnupg-w32-{0}.exe' -f $env:GPG_VERSION) -OutFile 'gpg-installer.exe'; \
19+
if ((Get-FileHash gpg-installer.exe -Algorithm sha1).Hash -ne $env:GPG_CHECKSUM) { Write-Error 'GPG checksum mismatch' }; \
1720
Start-Process -FilePath 'gpg-installer.exe' -ArgumentList '/S' -Wait; \
1821
gpg --version;
1922

@@ -47,5 +50,5 @@ ENTRYPOINT [ "powershell.exe" , "C:/docker-entrypoint.ps1" ]
4750
# Smoke test
4851
RUN node --version; \
4952
npm --version;
50-
51-
CMD [ "node.exe" ]
53+
54+
CMD [ "node.exe" ]

0 commit comments

Comments
 (0)