diff --git a/.appveyor.yml b/.appveyor.yml index 8ff7462..68f9185 100644 --- a/.appveyor.yml +++ b/.appveyor.yml @@ -3,6 +3,12 @@ image: Visual Studio 2017 environment: matrix: + - version: 1.4-rc + variant: windowsservercore-1809 + APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019 + - version: 1.4-rc + variant: windowsservercore-ltsc2016 + APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017 - version: 1.3 variant: windowsservercore-1809 APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019 diff --git a/.travis.yml b/.travis.yml index c0182d7..e0bc448 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,6 +3,10 @@ services: docker matrix: include: + - os: linux + env: VERSION=1.4-rc VARIANT=buster ARCH= + - os: linux + env: VERSION=1.4-rc VARIANT=buster ARCH=i386 - os: linux env: VERSION=1.3 VARIANT=buster ARCH= - os: linux diff --git a/1.0/windows/windowsservercore-1809/Dockerfile b/1.0/windows/windowsservercore-1809/Dockerfile index 842ff9e..45f7fbd 100644 --- a/1.0/windows/windowsservercore-1809/Dockerfile +++ b/1.0/windows/windowsservercore-1809/Dockerfile @@ -7,34 +7,34 @@ 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.' + 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"] diff --git a/1.0/windows/windowsservercore-ltsc2016/Dockerfile b/1.0/windows/windowsservercore-ltsc2016/Dockerfile index ef01691..fdce374 100644 --- a/1.0/windows/windowsservercore-ltsc2016/Dockerfile +++ b/1.0/windows/windowsservercore-ltsc2016/Dockerfile @@ -7,34 +7,34 @@ 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.' + 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"] diff --git a/1.3/windows/windowsservercore-1809/Dockerfile b/1.3/windows/windowsservercore-1809/Dockerfile index c4cd99f..08000b7 100644 --- a/1.3/windows/windowsservercore-1809/Dockerfile +++ b/1.3/windows/windowsservercore-1809/Dockerfile @@ -7,34 +7,34 @@ ENV JULIA_VERSION 1.3.1 ENV JULIA_SHA256 8350ca66f80484c5ca6f7341ffbdb9d5182f8d4231762d585e229567b227ef7f 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.' + 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"] diff --git a/1.3/windows/windowsservercore-ltsc2016/Dockerfile b/1.3/windows/windowsservercore-ltsc2016/Dockerfile index 89dbf3e..8117e20 100644 --- a/1.3/windows/windowsservercore-ltsc2016/Dockerfile +++ b/1.3/windows/windowsservercore-ltsc2016/Dockerfile @@ -7,34 +7,34 @@ ENV JULIA_VERSION 1.3.1 ENV JULIA_SHA256 8350ca66f80484c5ca6f7341ffbdb9d5182f8d4231762d585e229567b227ef7f 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.' + 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"] diff --git a/1.4-rc/buster/Dockerfile b/1.4-rc/buster/Dockerfile new file mode 100644 index 0000000..373b05d --- /dev/null +++ b/1.4-rc/buster/Dockerfile @@ -0,0 +1,73 @@ +FROM debian:buster-slim + +RUN set -eux; \ + apt-get update; \ + apt-get install -y --no-install-recommends \ + ca-certificates \ +# ERROR: no download agent available; install curl, wget, or fetch + curl \ + ; \ + rm -rf /var/lib/apt/lists/* + +ENV JULIA_PATH /usr/local/julia +ENV PATH $JULIA_PATH/bin:$PATH + +# https://julialang.org/juliareleases.asc +# Julia (Binary signing key) +ENV JULIA_GPG 3673DF529D9049477F76B37566E3C7DC03D6E495 + +# https://julialang.org/downloads/ +ENV JULIA_VERSION 1.4.0-rc1 + +RUN set -eux; \ + \ + savedAptMark="$(apt-mark showmanual)"; \ + if ! command -v gpg > /dev/null; then \ + apt-get update; \ + apt-get install -y --no-install-recommends \ + gnupg \ + dirmngr \ + ; \ + rm -rf /var/lib/apt/lists/*; \ + fi; \ + \ +# https://julialang.org/downloads/#julia-command-line-version +# https://julialang-s3.julialang.org/bin/checksums/julia-1.4.0-rc1.sha256 +# this "case" statement is generated via "update.sh" + dpkgArch="$(dpkg --print-architecture)"; \ + case "${dpkgArch##*-}" in \ +# amd64 + amd64) tarArch='x86_64'; dirArch='x64'; sha256='9996a9dc0547a97da5157536354645f9a2729b22f35c3d0d9cb42190e6fe3c64' ;; \ +# arm32v7 + armhf) tarArch='armv7l'; dirArch='armv7l'; sha256='a23f735c44f2d5bd60107a6f14c06c528aaffce8dc97a635e5f60f30c8ea7eaf' ;; \ +# arm64v8 + arm64) tarArch='aarch64'; dirArch='aarch64'; sha256='9d1a9c5616b35dc8363cf57833b4538a0825429d18cf7287ffe80edf72b4c884' ;; \ +# i386 + i386) tarArch='i686'; dirArch='x86'; sha256='7f6b7888bb77d2959035ffbb27bd7fc91fc2da77e5c678c74bb0723acf730e1d' ;; \ + *) echo >&2 "error: current architecture ($dpkgArch) does not have a corresponding Julia binary release"; exit 1 ;; \ + esac; \ + \ + folder="$(echo "$JULIA_VERSION" | cut -d. -f1-2)"; \ + curl -fL -o julia.tar.gz.asc "https://julialang-s3.julialang.org/bin/linux/${dirArch}/${folder}/julia-${JULIA_VERSION}-linux-${tarArch}.tar.gz.asc"; \ + curl -fL -o julia.tar.gz "https://julialang-s3.julialang.org/bin/linux/${dirArch}/${folder}/julia-${JULIA_VERSION}-linux-${tarArch}.tar.gz"; \ + \ + echo "${sha256} *julia.tar.gz" | sha256sum -c -; \ + \ + export GNUPGHOME="$(mktemp -d)"; \ + gpg --batch --keyserver ha.pool.sks-keyservers.net --recv-keys "$JULIA_GPG"; \ + gpg --batch --verify julia.tar.gz.asc julia.tar.gz; \ + command -v gpgconf > /dev/null && gpgconf --kill all; \ + rm -rf "$GNUPGHOME" julia.tar.gz.asc; \ + \ + mkdir "$JULIA_PATH"; \ + tar -xzf julia.tar.gz -C "$JULIA_PATH" --strip-components 1; \ + rm julia.tar.gz; \ + \ + apt-mark auto '.*' > /dev/null; \ + [ -z "$savedAptMark" ] || apt-mark manual $savedAptMark; \ + apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; \ + \ +# smoke test + julia --version + +CMD ["julia"] diff --git a/1.4-rc/windows/windowsservercore-1809/Dockerfile b/1.4-rc/windows/windowsservercore-1809/Dockerfile new file mode 100644 index 0000000..500fc42 --- /dev/null +++ b/1.4-rc/windows/windowsservercore-1809/Dockerfile @@ -0,0 +1,40 @@ +FROM mcr.microsoft.com/windows/servercore:1809 + +# $ProgressPreference: https://github.com/PowerShell/PowerShell/issues/2138#issuecomment-251261324 +SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"] + +ENV JULIA_VERSION 1.4.0-rc1 +ENV JULIA_SHA256 fc718bfd1fa9da9c306376c8994d3dee4b08131d3198036c33f878cf469f7567 + +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"] diff --git a/1.4-rc/windows/windowsservercore-ltsc2016/Dockerfile b/1.4-rc/windows/windowsservercore-ltsc2016/Dockerfile new file mode 100644 index 0000000..82dcf04 --- /dev/null +++ b/1.4-rc/windows/windowsservercore-ltsc2016/Dockerfile @@ -0,0 +1,40 @@ +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.4.0-rc1 +ENV JULIA_SHA256 fc718bfd1fa9da9c306376c8994d3dee4b08131d3198036c33f878cf469f7567 + +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"] diff --git a/Dockerfile-windowsservercore.template b/Dockerfile-windowsservercore.template index 3010c90..1ed8fd4 100644 --- a/Dockerfile-windowsservercore.template +++ b/Dockerfile-windowsservercore.template @@ -7,34 +7,34 @@ ENV JULIA_VERSION %%JULIA_VERSION%% ENV JULIA_SHA256 %%JULIA_WINDOWS_SHA256%% 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.' + 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"] diff --git a/generate-stackbrew-library.sh b/generate-stackbrew-library.sh index 84d61c5..34ce2a8 100755 --- a/generate-stackbrew-library.sh +++ b/generate-stackbrew-library.sh @@ -3,6 +3,7 @@ set -Eeuo pipefail declare -A aliases=( [1.3]='1 latest' + [1.4-rc]='rc' ) defaultDebianVariant='buster' diff --git a/update.sh b/update.sh index 899233c..585970f 100755 --- a/update.sh +++ b/update.sh @@ -90,6 +90,16 @@ for version in "${versions[@]}"; do -e 's!%%ARCH-CASE%%!'"$(sed_escape_rhs "$linuxArchCase")"'!g' \ "Dockerfile-$template.template" > "$dir/Dockerfile" + case "$dir" in + 1.0/windows/* | 1.3/windows/*) + # https://github.com/JuliaLang/julia/blob/v1.4.0-rc1/NEWS.md#build-system-changes + sed -ri \ + -e 's!/SILENT!/S!g' \ + -e 's!/DIR=!/D=!g' \ + "$dir/Dockerfile" + ;; + esac + case "$v" in # https://www.appveyor.com/docs/windows-images-software/ windows/*-1809)