Skip to content

Commit 54c776a

Browse files
authored
Merge pull request #50 from infosiftr/1.6.0-beta1
Add 1.6.0-beta1
2 parents 1a43a63 + fff19ae commit 54c776a

File tree

4 files changed

+153
-1
lines changed

4 files changed

+153
-1
lines changed

1.6-rc/buster/Dockerfile

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
FROM debian:buster-slim
2+
3+
RUN set -eux; \
4+
apt-get update; \
5+
apt-get install -y --no-install-recommends \
6+
ca-certificates \
7+
# ERROR: no download agent available; install curl, wget, or fetch
8+
curl \
9+
; \
10+
rm -rf /var/lib/apt/lists/*
11+
12+
ENV JULIA_PATH /usr/local/julia
13+
ENV PATH $JULIA_PATH/bin:$PATH
14+
15+
# https://julialang.org/juliareleases.asc
16+
# Julia (Binary signing key) <[email protected]>
17+
ENV JULIA_GPG 3673DF529D9049477F76B37566E3C7DC03D6E495
18+
19+
# https://julialang.org/downloads/
20+
ENV JULIA_VERSION 1.6.0-beta1
21+
22+
RUN set -eux; \
23+
\
24+
savedAptMark="$(apt-mark showmanual)"; \
25+
if ! command -v gpg > /dev/null; then \
26+
apt-get update; \
27+
apt-get install -y --no-install-recommends \
28+
gnupg \
29+
dirmngr \
30+
; \
31+
rm -rf /var/lib/apt/lists/*; \
32+
fi; \
33+
\
34+
# https://julialang.org/downloads/#julia-command-line-version
35+
# https://julialang-s3.julialang.org/bin/checksums/julia-1.6.0-beta1.sha256
36+
# this "case" statement is generated via "update.sh"
37+
dpkgArch="$(dpkg --print-architecture)"; \
38+
case "${dpkgArch##*-}" in \
39+
# amd64
40+
amd64) tarArch='x86_64'; dirArch='x64'; sha256='30b214c7f544c6589a20104eaa6764eb368cadac5fa834b7454b747043e5a2b8' ;; \
41+
# arm64v8
42+
arm64) tarArch='aarch64'; dirArch='aarch64'; sha256='6f4a0d63c7bc69b5e649710c31affe7e39a554c895235df50eddc9d26bcc3910' ;; \
43+
# i386
44+
i386) tarArch='i686'; dirArch='x86'; sha256='de8c8e3560974196c09b4a01c91591ce4faf8c77daf080fb37b9e2759c5df29d' ;; \
45+
# ppc64le
46+
ppc64el) tarArch='ppc64le'; dirArch='ppc64le'; sha256='13f6192990d1c44039444707d8753d80b299c3fa05625ee9ca1680413ae344cd' ;; \
47+
*) echo >&2 "error: current architecture ($dpkgArch) does not have a corresponding Julia binary release"; exit 1 ;; \
48+
esac; \
49+
\
50+
folder="$(echo "$JULIA_VERSION" | cut -d. -f1-2)"; \
51+
curl -fL -o julia.tar.gz.asc "https://julialang-s3.julialang.org/bin/linux/${dirArch}/${folder}/julia-${JULIA_VERSION}-linux-${tarArch}.tar.gz.asc"; \
52+
curl -fL -o julia.tar.gz "https://julialang-s3.julialang.org/bin/linux/${dirArch}/${folder}/julia-${JULIA_VERSION}-linux-${tarArch}.tar.gz"; \
53+
\
54+
echo "${sha256} *julia.tar.gz" | sha256sum -c -; \
55+
\
56+
export GNUPGHOME="$(mktemp -d)"; \
57+
gpg --batch --keyserver ha.pool.sks-keyservers.net --recv-keys "$JULIA_GPG"; \
58+
gpg --batch --verify julia.tar.gz.asc julia.tar.gz; \
59+
command -v gpgconf > /dev/null && gpgconf --kill all; \
60+
rm -rf "$GNUPGHOME" julia.tar.gz.asc; \
61+
\
62+
mkdir "$JULIA_PATH"; \
63+
tar -xzf julia.tar.gz -C "$JULIA_PATH" --strip-components 1; \
64+
rm julia.tar.gz; \
65+
\
66+
apt-mark auto '.*' > /dev/null; \
67+
[ -z "$savedAptMark" ] || apt-mark manual $savedAptMark; \
68+
apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; \
69+
\
70+
# smoke test
71+
julia --version
72+
73+
CMD ["julia"]
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
FROM mcr.microsoft.com/windows/servercore:1809
2+
3+
# $ProgressPreference: https://github.com/PowerShell/PowerShell/issues/2138#issuecomment-251261324
4+
SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"]
5+
6+
ENV JULIA_VERSION 1.6.0-beta1
7+
ENV JULIA_SHA256 f308a7b7e877a232a19d47d78b4bf55a974c9c24052ab867f346a151a8a91f90
8+
9+
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 '.')); \
10+
Write-Host ('Downloading {0} ...' -f $url); \
11+
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; \
12+
Invoke-WebRequest -Uri $url -OutFile 'julia.exe'; \
13+
\
14+
Write-Host ('Verifying sha256 ({0}) ...' -f $env:JULIA_SHA256); \
15+
if ((Get-FileHash julia.exe -Algorithm sha256).Hash -ne $env:JULIA_SHA256) { \
16+
Write-Host 'FAILED!'; \
17+
exit 1; \
18+
}; \
19+
\
20+
Write-Host 'Installing ...'; \
21+
Start-Process -Wait -NoNewWindow \
22+
-FilePath '.\julia.exe' \
23+
-ArgumentList @( \
24+
'/SILENT', \
25+
'/DIR=C:\julia' \
26+
); \
27+
\
28+
Write-Host 'Updating PATH ...'; \
29+
$env:PATH = 'C:\julia\bin;' + $env:PATH; \
30+
[Environment]::SetEnvironmentVariable('PATH', $env:PATH, [EnvironmentVariableTarget]::Machine); \
31+
\
32+
Write-Host 'Verifying install ("julia --version") ...'; \
33+
julia --version; \
34+
\
35+
Write-Host 'Removing ...'; \
36+
Remove-Item julia.exe -Force; \
37+
\
38+
Write-Host 'Complete.'
39+
40+
CMD ["julia"]
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
FROM mcr.microsoft.com/windows/servercore:ltsc2016
2+
3+
# $ProgressPreference: https://github.com/PowerShell/PowerShell/issues/2138#issuecomment-251261324
4+
SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"]
5+
6+
ENV JULIA_VERSION 1.6.0-beta1
7+
ENV JULIA_SHA256 f308a7b7e877a232a19d47d78b4bf55a974c9c24052ab867f346a151a8a91f90
8+
9+
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 '.')); \
10+
Write-Host ('Downloading {0} ...' -f $url); \
11+
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; \
12+
Invoke-WebRequest -Uri $url -OutFile 'julia.exe'; \
13+
\
14+
Write-Host ('Verifying sha256 ({0}) ...' -f $env:JULIA_SHA256); \
15+
if ((Get-FileHash julia.exe -Algorithm sha256).Hash -ne $env:JULIA_SHA256) { \
16+
Write-Host 'FAILED!'; \
17+
exit 1; \
18+
}; \
19+
\
20+
Write-Host 'Installing ...'; \
21+
Start-Process -Wait -NoNewWindow \
22+
-FilePath '.\julia.exe' \
23+
-ArgumentList @( \
24+
'/SILENT', \
25+
'/DIR=C:\julia' \
26+
); \
27+
\
28+
Write-Host 'Updating PATH ...'; \
29+
$env:PATH = 'C:\julia\bin;' + $env:PATH; \
30+
[Environment]::SetEnvironmentVariable('PATH', $env:PATH, [EnvironmentVariableTarget]::Machine); \
31+
\
32+
Write-Host 'Verifying install ("julia --version") ...'; \
33+
julia --version; \
34+
\
35+
Write-Host 'Removing ...'; \
36+
Remove-Item julia.exe -Force; \
37+
\
38+
Write-Host 'Complete.'
39+
40+
CMD ["julia"]

generate-stackbrew-library.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ set -Eeuo pipefail
33

44
declare -A aliases=(
55
[1.5]='1 latest'
6-
[1.6-rc]='rc'
76
)
87
defaultDebianVariant='buster'
98
defaultAlpineVariant='alpine3.12'

0 commit comments

Comments
 (0)