Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
111 additions
and
22 deletions.
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
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
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
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,40 @@ | ||
FROM microsoft/windowsservercore:1803 | ||
|
||
# $ProgressPreference: https://github.com/PowerShell/PowerShell/issues/2138#issuecomment-251261324 | ||
SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"] | ||
|
||
ENV JULIA_VERSION 1.3.0-rc1 | ||
ENV JULIA_SHA256 31a7acb889f22518e6c7db2ced7720363373c48ab0f9e27a409a3213adfa0570 | ||
|
||
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"] |
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,40 @@ | ||
FROM microsoft/windowsservercore:ltsc2016 | ||
|
||
# $ProgressPreference: https://github.com/PowerShell/PowerShell/issues/2138#issuecomment-251261324 | ||
SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"] | ||
|
||
ENV JULIA_VERSION 1.3.0-rc1 | ||
ENV JULIA_SHA256 31a7acb889f22518e6c7db2ced7720363373c48ab0f9e27a409a3213adfa0570 | ||
|
||
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"] |
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