From 716e0a0f8b6ee183790d3f81beccf3d6409f6f15 Mon Sep 17 00:00:00 2001 From: Tianon Gravi Date: Mon, 28 Feb 2022 09:15:02 -0800 Subject: [PATCH] Add 1.8.0-beta1 --- 1.8-rc/alpine3.14/Dockerfile | 57 +++++++++++++ 1.8-rc/alpine3.15/Dockerfile | 57 +++++++++++++ 1.8-rc/bullseye/Dockerfile | 84 +++++++++++++++++++ 1.8-rc/buster/Dockerfile | 84 +++++++++++++++++++ .../windows/windowsservercore-1809/Dockerfile | 46 ++++++++++ .../windowsservercore-ltsc2022/Dockerfile | 46 ++++++++++ versions.json | 49 +++++++++++ 7 files changed, 423 insertions(+) create mode 100644 1.8-rc/alpine3.14/Dockerfile create mode 100644 1.8-rc/alpine3.15/Dockerfile create mode 100644 1.8-rc/bullseye/Dockerfile create mode 100644 1.8-rc/buster/Dockerfile create mode 100644 1.8-rc/windows/windowsservercore-1809/Dockerfile create mode 100644 1.8-rc/windows/windowsservercore-ltsc2022/Dockerfile diff --git a/1.8-rc/alpine3.14/Dockerfile b/1.8-rc/alpine3.14/Dockerfile new file mode 100644 index 00000000..d2b79d2d --- /dev/null +++ b/1.8-rc/alpine3.14/Dockerfile @@ -0,0 +1,57 @@ +# +# NOTE: THIS DOCKERFILE IS GENERATED VIA "apply-templates.sh" +# +# PLEASE DO NOT EDIT IT DIRECTLY. +# + +FROM alpine:3.14 + +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.8.0-beta1 + +RUN set -eux; \ + \ + apk add --no-cache --virtual .fetch-deps gnupg; \ + \ +# https://julialang.org/downloads/#julia-command-line-version +# https://julialang-s3.julialang.org/bin/checksums/julia-1.8.0-beta1.sha256 + arch="$(apk --print-arch)"; \ + case "$arch" in \ + 'x86_64') \ + url='https://julialang-s3.julialang.org/bin/musl/x64/1.8/julia-1.8.0-beta1-musl-x86_64.tar.gz'; \ + sha256='b77765be768fb180ea6f02a9f0048385551c386fdf483aa8915017ce2b08870f'; \ + ;; \ + *) \ + echo >&2 "error: current architecture ($arch) does not have a corresponding Julia binary release"; \ + exit 1; \ + ;; \ + esac; \ + \ + wget -O julia.tar.gz.asc "$url.asc"; \ + wget -O julia.tar.gz "$url"; \ + \ + echo "$sha256 *julia.tar.gz" | sha256sum -w -c -; \ + \ + export GNUPGHOME="$(mktemp -d)"; \ + gpg --batch --keyserver keyserver.ubuntu.com --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; \ + \ + apk del --no-network .fetch-deps; \ + \ +# smoke test + julia --version + +CMD ["julia"] diff --git a/1.8-rc/alpine3.15/Dockerfile b/1.8-rc/alpine3.15/Dockerfile new file mode 100644 index 00000000..d0e70be4 --- /dev/null +++ b/1.8-rc/alpine3.15/Dockerfile @@ -0,0 +1,57 @@ +# +# NOTE: THIS DOCKERFILE IS GENERATED VIA "apply-templates.sh" +# +# PLEASE DO NOT EDIT IT DIRECTLY. +# + +FROM alpine:3.15 + +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.8.0-beta1 + +RUN set -eux; \ + \ + apk add --no-cache --virtual .fetch-deps gnupg; \ + \ +# https://julialang.org/downloads/#julia-command-line-version +# https://julialang-s3.julialang.org/bin/checksums/julia-1.8.0-beta1.sha256 + arch="$(apk --print-arch)"; \ + case "$arch" in \ + 'x86_64') \ + url='https://julialang-s3.julialang.org/bin/musl/x64/1.8/julia-1.8.0-beta1-musl-x86_64.tar.gz'; \ + sha256='b77765be768fb180ea6f02a9f0048385551c386fdf483aa8915017ce2b08870f'; \ + ;; \ + *) \ + echo >&2 "error: current architecture ($arch) does not have a corresponding Julia binary release"; \ + exit 1; \ + ;; \ + esac; \ + \ + wget -O julia.tar.gz.asc "$url.asc"; \ + wget -O julia.tar.gz "$url"; \ + \ + echo "$sha256 *julia.tar.gz" | sha256sum -w -c -; \ + \ + export GNUPGHOME="$(mktemp -d)"; \ + gpg --batch --keyserver keyserver.ubuntu.com --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; \ + \ + apk del --no-network .fetch-deps; \ + \ +# smoke test + julia --version + +CMD ["julia"] diff --git a/1.8-rc/bullseye/Dockerfile b/1.8-rc/bullseye/Dockerfile new file mode 100644 index 00000000..3a8555d2 --- /dev/null +++ b/1.8-rc/bullseye/Dockerfile @@ -0,0 +1,84 @@ +# +# NOTE: THIS DOCKERFILE IS GENERATED VIA "apply-templates.sh" +# +# PLEASE DO NOT EDIT IT DIRECTLY. +# + +FROM debian:bullseye-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.8.0-beta1 + +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.8.0-beta1.sha256 + arch="$(dpkg --print-architecture)"; \ + case "$arch" in \ + 'amd64') \ + url='https://julialang-s3.julialang.org/bin/linux/x64/1.8/julia-1.8.0-beta1-linux-x86_64.tar.gz'; \ + sha256='3fd0aa9756bea0be6f91f7eaa52d31dd3fa9568ae3125737e6c795c7b8735509'; \ + ;; \ + 'arm64') \ + url='https://julialang-s3.julialang.org/bin/linux/aarch64/1.8/julia-1.8.0-beta1-linux-aarch64.tar.gz'; \ + sha256='8384065af2864d1159a054c65958880dc5e7dccf68d6013dc9d87e9d50b5ab5f'; \ + ;; \ + 'i386') \ + url='https://julialang-s3.julialang.org/bin/linux/x86/1.8/julia-1.8.0-beta1-linux-i686.tar.gz'; \ + sha256='88bd2e0059ddbf9af1f3b103f60bc92906bada758c9ef36a7e3894f351d60eca'; \ + ;; \ + *) \ + echo >&2 "error: current architecture ($arch) does not have a corresponding Julia binary release"; \ + exit 1; \ + ;; \ + esac; \ + \ + curl -fL -o julia.tar.gz.asc "$url.asc"; \ + curl -fL -o julia.tar.gz "$url"; \ + \ + echo "$sha256 *julia.tar.gz" | sha256sum --strict --check -; \ + \ + export GNUPGHOME="$(mktemp -d)"; \ + gpg --batch --keyserver keyserver.ubuntu.com --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.8-rc/buster/Dockerfile b/1.8-rc/buster/Dockerfile new file mode 100644 index 00000000..da9b206b --- /dev/null +++ b/1.8-rc/buster/Dockerfile @@ -0,0 +1,84 @@ +# +# NOTE: THIS DOCKERFILE IS GENERATED VIA "apply-templates.sh" +# +# PLEASE DO NOT EDIT IT DIRECTLY. +# + +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.8.0-beta1 + +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.8.0-beta1.sha256 + arch="$(dpkg --print-architecture)"; \ + case "$arch" in \ + 'amd64') \ + url='https://julialang-s3.julialang.org/bin/linux/x64/1.8/julia-1.8.0-beta1-linux-x86_64.tar.gz'; \ + sha256='3fd0aa9756bea0be6f91f7eaa52d31dd3fa9568ae3125737e6c795c7b8735509'; \ + ;; \ + 'arm64') \ + url='https://julialang-s3.julialang.org/bin/linux/aarch64/1.8/julia-1.8.0-beta1-linux-aarch64.tar.gz'; \ + sha256='8384065af2864d1159a054c65958880dc5e7dccf68d6013dc9d87e9d50b5ab5f'; \ + ;; \ + 'i386') \ + url='https://julialang-s3.julialang.org/bin/linux/x86/1.8/julia-1.8.0-beta1-linux-i686.tar.gz'; \ + sha256='88bd2e0059ddbf9af1f3b103f60bc92906bada758c9ef36a7e3894f351d60eca'; \ + ;; \ + *) \ + echo >&2 "error: current architecture ($arch) does not have a corresponding Julia binary release"; \ + exit 1; \ + ;; \ + esac; \ + \ + curl -fL -o julia.tar.gz.asc "$url.asc"; \ + curl -fL -o julia.tar.gz "$url"; \ + \ + echo "$sha256 *julia.tar.gz" | sha256sum --strict --check -; \ + \ + export GNUPGHOME="$(mktemp -d)"; \ + gpg --batch --keyserver keyserver.ubuntu.com --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.8-rc/windows/windowsservercore-1809/Dockerfile b/1.8-rc/windows/windowsservercore-1809/Dockerfile new file mode 100644 index 00000000..fc6aedc0 --- /dev/null +++ b/1.8-rc/windows/windowsservercore-1809/Dockerfile @@ -0,0 +1,46 @@ +# +# NOTE: THIS DOCKERFILE IS GENERATED VIA "apply-templates.sh" +# +# PLEASE DO NOT EDIT IT DIRECTLY. +# + +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.8.0-beta1 +ENV JULIA_URL https://julialang-s3.julialang.org/bin/winnt/x64/1.8/julia-1.8.0-beta1-win64.exe +ENV JULIA_SHA256 b1baccc3684e9e2ade37f3d3aa26c6431ab23f759d52489e7e3bae807972db8c + +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"] diff --git a/1.8-rc/windows/windowsservercore-ltsc2022/Dockerfile b/1.8-rc/windows/windowsservercore-ltsc2022/Dockerfile new file mode 100644 index 00000000..9516cf26 --- /dev/null +++ b/1.8-rc/windows/windowsservercore-ltsc2022/Dockerfile @@ -0,0 +1,46 @@ +# +# NOTE: THIS DOCKERFILE IS GENERATED VIA "apply-templates.sh" +# +# PLEASE DO NOT EDIT IT DIRECTLY. +# + +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.8.0-beta1 +ENV JULIA_URL https://julialang-s3.julialang.org/bin/winnt/x64/1.8/julia-1.8.0-beta1-win64.exe +ENV JULIA_SHA256 b1baccc3684e9e2ade37f3d3aa26c6431ab23f759d52489e7e3bae807972db8c + +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"] diff --git a/versions.json b/versions.json index 4202a77b..285dc6e8 100644 --- a/versions.json +++ b/versions.json @@ -100,5 +100,54 @@ "windows/windowsservercore-1809" ], "version": "1.7.2" + }, + "1.8-rc": { + "arches": { + "alpine-amd64": { + "sha256": "b77765be768fb180ea6f02a9f0048385551c386fdf483aa8915017ce2b08870f", + "url": "https://julialang-s3.julialang.org/bin/musl/x64/1.8/julia-1.8.0-beta1-musl-x86_64.tar.gz" + }, + "amd64": { + "sha256": "3fd0aa9756bea0be6f91f7eaa52d31dd3fa9568ae3125737e6c795c7b8735509", + "url": "https://julialang-s3.julialang.org/bin/linux/x64/1.8/julia-1.8.0-beta1-linux-x86_64.tar.gz" + }, + "arm64v8": { + "sha256": "8384065af2864d1159a054c65958880dc5e7dccf68d6013dc9d87e9d50b5ab5f", + "url": "https://julialang-s3.julialang.org/bin/linux/aarch64/1.8/julia-1.8.0-beta1-linux-aarch64.tar.gz" + }, + "darwin-amd64": { + "sha256": "8cff27130234a5a1f2f3549391605cce5e8ced8b5eac691de8d02f70618b4f63", + "url": "https://julialang-s3.julialang.org/bin/mac/x64/1.8/julia-1.8.0-beta1-mac64.dmg" + }, + "darwin-arm64v8": { + "sha256": "d40bdec16730645111230ea2d2ebb2ddd2da6652b07ca14b8d3c381dcb580bf0", + "url": "https://julialang-s3.julialang.org/bin/mac/aarch64/1.8/julia-1.8.0-beta1-macaarch64.dmg" + }, + "freebsd-amd64": { + "sha256": "7d400b72bcda0cd23d8ebcf0ef80211305275fe88524e14136cc3ebfd49e69e2", + "url": "https://julialang-s3.julialang.org/bin/freebsd/x64/1.8/julia-1.8.0-beta1-freebsd-x86_64.tar.gz" + }, + "i386": { + "sha256": "88bd2e0059ddbf9af1f3b103f60bc92906bada758c9ef36a7e3894f351d60eca", + "url": "https://julialang-s3.julialang.org/bin/linux/x86/1.8/julia-1.8.0-beta1-linux-i686.tar.gz" + }, + "windows-amd64": { + "sha256": "b1baccc3684e9e2ade37f3d3aa26c6431ab23f759d52489e7e3bae807972db8c", + "url": "https://julialang-s3.julialang.org/bin/winnt/x64/1.8/julia-1.8.0-beta1-win64.exe" + }, + "windows-i386": { + "sha256": "f677c66743abb71a11ee4eccfc74c892e61d0919284d22b87eca617c282336ca", + "url": "https://julialang-s3.julialang.org/bin/winnt/x86/1.8/julia-1.8.0-beta1-win32.exe" + } + }, + "variants": [ + "bullseye", + "buster", + "alpine3.15", + "alpine3.14", + "windows/windowsservercore-ltsc2022", + "windows/windowsservercore-1809" + ], + "version": "1.8.0-beta1" } }