Add windowsservercore-ltsc2022 based images
This commit is contained in:
parent
241c1d647e
commit
f1b2846846
|
|
@ -0,0 +1,40 @@
|
|||
FROM mcr.microsoft.com/windows/servercore:ltsc2022
|
||||
|
||||
# $ProgressPreference: https://github.com/PowerShell/PowerShell/issues/2138#issuecomment-251261324
|
||||
SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"]
|
||||
|
||||
ENV JULIA_VERSION 1.0.5
|
||||
ENV JULIA_SHA256 83c04bdc264e7ab87f4e22be9f3dff8c5a62a49c8edea6a0c85f4645d4cbac7a
|
||||
|
||||
RUN $url = ('https://julialang-s3.julialang.org/bin/winnt/x64/{1}/julia-{0}-win64.exe' -f $env:JULIA_VERSION, ($env:JULIA_VERSION.Split('.')[0..1] -Join '.')); \
|
||||
Write-Host ('Downloading {0} ...' -f $url); \
|
||||
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; \
|
||||
Invoke-WebRequest -Uri $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 @( \
|
||||
'/S', \
|
||||
'/D=C:\julia' \
|
||||
); \
|
||||
\
|
||||
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 'Removing ...'; \
|
||||
Remove-Item julia.exe -Force; \
|
||||
\
|
||||
Write-Host 'Complete.'
|
||||
|
||||
CMD ["julia"]
|
||||
|
|
@ -0,0 +1,40 @@
|
|||
FROM mcr.microsoft.com/windows/servercore:ltsc2022
|
||||
|
||||
# $ProgressPreference: https://github.com/PowerShell/PowerShell/issues/2138#issuecomment-251261324
|
||||
SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"]
|
||||
|
||||
ENV JULIA_VERSION 1.6.2
|
||||
ENV JULIA_SHA256 380115d80e2f0bebe1885b80f67cf9330b659722f50608495962ab3a00e02977
|
||||
|
||||
RUN $url = ('https://julialang-s3.julialang.org/bin/winnt/x64/{1}/julia-{0}-win64.exe' -f $env:JULIA_VERSION, ($env:JULIA_VERSION.Split('.')[0..1] -Join '.')); \
|
||||
Write-Host ('Downloading {0} ...' -f $url); \
|
||||
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; \
|
||||
Invoke-WebRequest -Uri $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 '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 'Removing ...'; \
|
||||
Remove-Item julia.exe -Force; \
|
||||
\
|
||||
Write-Host 'Complete.'
|
||||
|
||||
CMD ["julia"]
|
||||
|
|
@ -0,0 +1,40 @@
|
|||
FROM mcr.microsoft.com/windows/servercore:ltsc2022
|
||||
|
||||
# $ProgressPreference: https://github.com/PowerShell/PowerShell/issues/2138#issuecomment-251261324
|
||||
SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"]
|
||||
|
||||
ENV JULIA_VERSION 1.7.0-beta4
|
||||
ENV JULIA_SHA256 fb6dcebf9d40c4fa855670fd20f31ecd830282720396c71f98d8ab92d32a94ad
|
||||
|
||||
RUN $url = ('https://julialang-s3.julialang.org/bin/winnt/x64/{1}/julia-{0}-win64.exe' -f $env:JULIA_VERSION, ($env:JULIA_VERSION.Split('.')[0..1] -Join '.')); \
|
||||
Write-Host ('Downloading {0} ...' -f $url); \
|
||||
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; \
|
||||
Invoke-WebRequest -Uri $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 '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 'Removing ...'; \
|
||||
Remove-Item julia.exe -Force; \
|
||||
\
|
||||
Write-Host 'Complete.'
|
||||
|
||||
CMD ["julia"]
|
||||
|
|
@ -91,7 +91,7 @@ for version in "${versions[@]}"; do
|
|||
for v in \
|
||||
{buster,stretch} \
|
||||
alpine{3.14,3.13} \
|
||||
windows/windowsservercore-{1809,ltsc2016} \
|
||||
windows/windowsservercore-{ltsc2022,1809,ltsc2016} \
|
||||
; do
|
||||
dir="$version/$v"
|
||||
dir="${dir#./}"
|
||||
|
|
|
|||
Loading…
Reference in New Issue