From cc990ebc99e7e197856ec2511b9c986071bc4798 Mon Sep 17 00:00:00 2001 From: rystidia <107563420+rystidia@users.noreply.github.com> Date: Mon, 29 Apr 2024 18:07:37 +0200 Subject: [PATCH] Add Docker image for Julia (PR #1) --- .github/workflows/build.yml | 2 ++ src/julia/1.9-linux-x86_64/Dockerfile | 15 +++++++++++++++ src/julia/1.9-linux-x86_64/build | 1 + src/julia/1.9-linux-x86_64/run-it | 1 + 4 files changed, 19 insertions(+) create mode 100644 src/julia/1.9-linux-x86_64/Dockerfile create mode 120000 src/julia/1.9-linux-x86_64/build create mode 120000 src/julia/1.9-linux-x86_64/run-it diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f3282df..cf10e2b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -54,6 +54,8 @@ jobs: implementation: nodejs12 - target: javascript implementation: nodejs20 + - target: julia + implementation: 1.9 - target: lua implementation: 5.3 - target: nim diff --git a/src/julia/1.9-linux-x86_64/Dockerfile b/src/julia/1.9-linux-x86_64/Dockerfile new file mode 100644 index 0000000..f87da86 --- /dev/null +++ b/src/julia/1.9-linux-x86_64/Dockerfile @@ -0,0 +1,15 @@ +FROM julia:1.9 + +# Copy files common for all images +COPY 4img/* ./ + +# Ruby is needed to run partial builder +RUN ./prepare-apt-ruby && \ + ./prepare-apt-uninit + +WORKDIR /env + +# Install dependencies +RUN julia -e 'using Pkg; Pkg.activate("."); Pkg.add(["TestReports", "Test", "StringEncodings", "CodecZlib"]);' +# Precompile dependencies +RUN julia -e 'using Pkg; Pkg.instantiate();' diff --git a/src/julia/1.9-linux-x86_64/build b/src/julia/1.9-linux-x86_64/build new file mode 120000 index 0000000..552d52a --- /dev/null +++ b/src/julia/1.9-linux-x86_64/build @@ -0,0 +1 @@ +../../generic-build \ No newline at end of file diff --git a/src/julia/1.9-linux-x86_64/run-it b/src/julia/1.9-linux-x86_64/run-it new file mode 120000 index 0000000..7461764 --- /dev/null +++ b/src/julia/1.9-linux-x86_64/run-it @@ -0,0 +1 @@ +../../generic-run-it \ No newline at end of file