Julia 1.6 vs 1.5.3 Docker image error

I’m trying to create a Docker image for a web app. It works using Julia 1.5.3, but fails with Julia 1.6 with the following(truncated) error:

#6 96.06     Building WebIO ───→ `~/.julia/scratchspaces/44cfe95a-1eb2-52ea-b672-e2afdf69b78f/adc25e225bc334c7df6eec3b39496edfc451cc38/build.log`
#6 109.0     Building Blink ───→ `~/.julia/scratchspaces/44cfe95a-1eb2-52ea-b672-e2afdf69b78f/08d0b679fd7caa49e2bca9214b131289e19808c0/build.log`
#6 153.8 ERROR: Error building `Blink`:
#6 155.1   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
#6 155.1                                  Dload  Upload   Total   Spent    Left  Speed
100   633  100   633    0     0    136      0  0:00:04  0:00:04 --:--:--   136
100 71.6M  100 71.6M    0     0  1945k      0  0:00:37  0:00:37 --:--:-- 2682k
#6 155.1 ERROR: LoadError: IOError: could not spawn `unzip -q electron-v4.0.4-linux-x64.zip -d atom`: no such file or directory (ENOENT)

The dockerfile is the following:

FROM julia:1.6.0

RUN julia -e 'using Pkg;Pkg.REPLMode.pkgstr("add Dash, DashCoreComponents, DashHtmlComponents, MAT, PlotlyJS, Statistics ;precompile");using Dash,  DashCoreComponents, DashHtmlComponents, MAT, PlotlyJS, Statistics'

WORKDIR  /root/code
ADD . /root/code

CMD julia -i startup.jl

Im getting the same error. Any solution?

You need the unzip app. I added it to dockerfile like this:

FROM julia:1.6.2

ENV JULIA_DEPOT_PATH /home/.julia

RUN apt-get update \
    && apt-get install -y \
    unzip \
    && apt-get clean

RUN julia -e 'using Pkg;Pkg.REPLMode.pkgstr("add JSON, Dash, DashHtmlComponents, DashCoreComponents, DashTable, DashBootstrapComponents ;precompile");using JSON, Dash, DashHtmlComponents, DashCoreComponents, DashTable, DashBootstrapComponents'

2 Likes

Thank you @Iulian.Cioarca. It works!

1 Like

Julia 1.6.3 docker image is ready: docker pull julia:1.6.3
https://hub.docker.com/_/julia?tab=tags&page=1&ordering=last_updated&name=1.6.3

3 Likes