Remove ltsc2016 variants (EOL)
See https://docs.microsoft.com/en-us/virtualization/windowscontainers/deploy-containers/base-image-lifecycle and https://github.com/docker-library/official-images/pull/11661
This commit is contained in:
parent
37e7c4dbca
commit
fe407643a5
|
|
@ -1,46 +0,0 @@
|
|||
#
|
||||
# NOTE: THIS DOCKERFILE IS GENERATED VIA "apply-templates.sh"
|
||||
#
|
||||
# PLEASE DO NOT EDIT IT DIRECTLY.
|
||||
#
|
||||
|
||||
FROM mcr.microsoft.com/windows/servercore:ltsc2016
|
||||
|
||||
# $ProgressPreference: https://github.com/PowerShell/PowerShell/issues/2138#issuecomment-251261324
|
||||
SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"]
|
||||
|
||||
ENV JULIA_VERSION 1.6.5
|
||||
ENV JULIA_URL https://julialang-s3.julialang.org/bin/winnt/x64/1.6/julia-1.6.5-win64.exe
|
||||
ENV JULIA_SHA256 dd2e0404c6ad332b47cfea13796b7826b5d0df0aae6450b976bab8f848bdf948
|
||||
|
||||
RUN Write-Host ('Downloading {0} ...' -f $env:JULIA_URL); \
|
||||
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; \
|
||||
Invoke-WebRequest -Uri $env:JULIA_URL -OutFile 'julia.exe'; \
|
||||
\
|
||||
Write-Host ('Verifying sha256 ({0}) ...' -f $env:JULIA_SHA256); \
|
||||
if ((Get-FileHash julia.exe -Algorithm sha256).Hash -ne $env:JULIA_SHA256) { \
|
||||
Write-Host 'FAILED!'; \
|
||||
exit 1; \
|
||||
}; \
|
||||
\
|
||||
Write-Host 'Installing ...'; \
|
||||
Start-Process -Wait -NoNewWindow \
|
||||
-FilePath '.\julia.exe' \
|
||||
-ArgumentList @( \
|
||||
'/SILENT', \
|
||||
'/DIR=C:\julia' \
|
||||
); \
|
||||
\
|
||||
Write-Host 'Removing ...'; \
|
||||
Remove-Item julia.exe -Force; \
|
||||
\
|
||||
Write-Host 'Updating PATH ...'; \
|
||||
$env:PATH = 'C:\julia\bin;' + $env:PATH; \
|
||||
[Environment]::SetEnvironmentVariable('PATH', $env:PATH, [EnvironmentVariableTarget]::Machine); \
|
||||
\
|
||||
Write-Host 'Verifying install ("julia --version") ...'; \
|
||||
julia --version; \
|
||||
\
|
||||
Write-Host 'Complete.'
|
||||
|
||||
CMD ["julia"]
|
||||
|
|
@ -1,46 +0,0 @@
|
|||
#
|
||||
# NOTE: THIS DOCKERFILE IS GENERATED VIA "apply-templates.sh"
|
||||
#
|
||||
# PLEASE DO NOT EDIT IT DIRECTLY.
|
||||
#
|
||||
|
||||
FROM mcr.microsoft.com/windows/servercore:ltsc2016
|
||||
|
||||
# $ProgressPreference: https://github.com/PowerShell/PowerShell/issues/2138#issuecomment-251261324
|
||||
SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"]
|
||||
|
||||
ENV JULIA_VERSION 1.7.1
|
||||
ENV JULIA_URL https://julialang-s3.julialang.org/bin/winnt/x64/1.7/julia-1.7.1-win64.exe
|
||||
ENV JULIA_SHA256 820f31de28d409ae8fda2ea01d39c67564fc6138d010e8b7e5d3d883d7daee23
|
||||
|
||||
RUN Write-Host ('Downloading {0} ...' -f $env:JULIA_URL); \
|
||||
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; \
|
||||
Invoke-WebRequest -Uri $env:JULIA_URL -OutFile 'julia.exe'; \
|
||||
\
|
||||
Write-Host ('Verifying sha256 ({0}) ...' -f $env:JULIA_SHA256); \
|
||||
if ((Get-FileHash julia.exe -Algorithm sha256).Hash -ne $env:JULIA_SHA256) { \
|
||||
Write-Host 'FAILED!'; \
|
||||
exit 1; \
|
||||
}; \
|
||||
\
|
||||
Write-Host 'Installing ...'; \
|
||||
Start-Process -Wait -NoNewWindow \
|
||||
-FilePath '.\julia.exe' \
|
||||
-ArgumentList @( \
|
||||
'/SILENT', \
|
||||
'/DIR=C:\julia' \
|
||||
); \
|
||||
\
|
||||
Write-Host 'Removing ...'; \
|
||||
Remove-Item julia.exe -Force; \
|
||||
\
|
||||
Write-Host 'Updating PATH ...'; \
|
||||
$env:PATH = 'C:\julia\bin;' + $env:PATH; \
|
||||
[Environment]::SetEnvironmentVariable('PATH', $env:PATH, [EnvironmentVariableTarget]::Machine); \
|
||||
\
|
||||
Write-Host 'Verifying install ("julia --version") ...'; \
|
||||
julia --version; \
|
||||
\
|
||||
Write-Host 'Complete.'
|
||||
|
||||
CMD ["julia"]
|
||||
|
|
@ -44,7 +44,7 @@ for version; do
|
|||
case "$dir" in
|
||||
windows/*)
|
||||
windowsVariant="${variant%%-*}" # "windowsservercore", "nanoserver"
|
||||
windowsRelease="${variant#$windowsVariant-}" # "1809", "ltsc2016", etc
|
||||
windowsRelease="${variant#$windowsVariant-}" # "ltsc2022", "1809", etc
|
||||
windowsVariant="${windowsVariant#windows}" # "servercore", "nanoserver"
|
||||
export windowsVariant windowsRelease
|
||||
template="Dockerfile-windows-$windowsVariant.template"
|
||||
|
|
|
|||
|
|
@ -44,8 +44,7 @@
|
|||
"alpine3.15",
|
||||
"alpine3.14",
|
||||
"windows/windowsservercore-ltsc2022",
|
||||
"windows/windowsservercore-1809",
|
||||
"windows/windowsservercore-ltsc2016"
|
||||
"windows/windowsservercore-1809"
|
||||
],
|
||||
"version": "1.6.5"
|
||||
},
|
||||
|
|
@ -94,8 +93,7 @@
|
|||
"alpine3.15",
|
||||
"alpine3.14",
|
||||
"windows/windowsservercore-ltsc2022",
|
||||
"windows/windowsservercore-1809",
|
||||
"windows/windowsservercore-ltsc2016"
|
||||
"windows/windowsservercore-1809"
|
||||
],
|
||||
"version": "1.7.1"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -97,8 +97,7 @@ for version in "${versions[@]}"; do
|
|||
else empty end,
|
||||
if .arches | has("windows-amd64") then
|
||||
"ltsc2022",
|
||||
"1809",
|
||||
"ltsc2016"
|
||||
"1809"
|
||||
| "windows/windowsservercore-" + .
|
||||
else empty end
|
||||
])
|
||||
|
|
|
|||
Loading…
Reference in New Issue