-
-
Notifications
You must be signed in to change notification settings - Fork 75
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Blink.jl does not build in Docker Julia images #289
Comments
I have isolated the issue to Docker. With the Dockerfile: FROM julia:1.6.5
CMD ["bash"] Building the file with: docker build -t jul165 . Then
yields: Installing known registries into `~/.julia`
Added registry `General` to `~/.julia/registries/General`
Resolving package versions...
Installed Pidfile ───────────────────── v1.2.0
Installed Lazy ──────────────────────── v0.15.1
Installed Mux ───────────────────────── v0.7.6
Installed Mustache ──────────────────── v1.0.12
Installed TableTraits ───────────────── v1.0.1
Installed Tables ────────────────────── v1.6.1
Installed WebSockets ────────────────── v1.5.9
Installed DataValueInterfaces ───────── v1.0.0
Installed IteratorInterfaceExtensions ─ v1.0.0
Installed Blink ─────────────────────── v0.12.5
Installed IniFile ───────────────────── v0.5.0
Installed JSExpr ────────────────────── v0.5.3
Installed URIParser ─────────────────── v0.4.1
Installed JSON ──────────────────────── v0.21.2
Installed MbedTLS ───────────────────── v1.0.3
Installed MacroTools ────────────────── v0.5.9
Installed URIs ──────────────────────── v1.3.0
Installed FunctionalCollections ─────── v0.5.0
Installed Parsers ───────────────────── v2.2.1
Installed OrderedCollections ────────── v1.4.1
Installed Hiccup ────────────────────── v0.2.2
Installed AssetRegistry ─────────────── v0.1.0
Installed Widgets ───────────────────── v0.6.4
Installed Observables ───────────────── v0.4.0
Installed BinDeps ───────────────────── v1.0.2
Installed ColorTypes ────────────────── v0.11.0
Installed Requires ──────────────────── v1.3.0
Installed HTTP ──────────────────────── v0.9.17
Installed Colors ────────────────────── v0.12.8
Installed DataAPI ───────────────────── v1.9.0
Installed FixedPointNumbers ─────────── v0.8.4
Installed Reexport ──────────────────── v1.2.2
Installed WebIO ─────────────────────── v0.8.16
Updating `~/.julia/environments/v1.6/Project.toml`
[ad839575] + Blink v0.12.5
Updating `~/.julia/environments/v1.6/Manifest.toml`
[bf4720bc] + AssetRegistry v0.1.0
[9e28174c] + BinDeps v1.0.2
[ad839575] + Blink v0.12.5
[3da002f7] + ColorTypes v0.11.0
[5ae59095] + Colors v0.12.8
[9a962f9c] + DataAPI v1.9.0
[e2d170a0] + DataValueInterfaces v1.0.0
[53c48c17] + FixedPointNumbers v0.8.4
[de31a74c] + FunctionalCollections v0.5.0
[cd3eb016] + HTTP v0.9.17
[9fb69e20] + Hiccup v0.2.2
[83e8ac13] + IniFile v0.5.0
[82899510] + IteratorInterfaceExtensions v1.0.0
[97c1335a] + JSExpr v0.5.3
[682c06a0] + JSON v0.21.2
[50d2b5c4] + Lazy v0.15.1
[1914dd2f] + MacroTools v0.5.9
[739be429] + MbedTLS v1.0.3
[ffc61752] + Mustache v1.0.12
[a975b10e] + Mux v0.7.6
[510215fc] + Observables v0.4.0
[bac558e1] + OrderedCollections v1.4.1
[69de0a69] + Parsers v2.2.1
[fa939f87] + Pidfile v1.2.0
[189a3867] + Reexport v1.2.2
[ae029012] + Requires v1.3.0
[3783bdb8] + TableTraits v1.0.1
[bd369af6] + Tables v1.6.1
[30578b45] + URIParser v0.4.1
[5c2747f8] + URIs v1.3.0
[0f1e0344] + WebIO v0.8.16
[104b5d7c] + WebSockets v1.5.9
[cc8bc4a8] + Widgets v0.6.4
[0dad84c5] + ArgTools
[56f22d72] + Artifacts
[2a0f44e3] + Base64
[ade2ca70] + Dates
[8ba89e20] + Distributed
[f43a241f] + Downloads
[7b1f6079] + FileWatching
[b77e0a4c] + InteractiveUtils
[b27032c2] + LibCURL
[76f85450] + LibGit2
[8f399da3] + Libdl
[37e2e46d] + LinearAlgebra
[56ddb016] + Logging
[d6f4376e] + Markdown
[a63ad114] + Mmap
[ca575930] + NetworkOptions
[44cfe95a] + Pkg
[de0858da] + Printf
[3fa0cd96] + REPL
[9a3f8284] + Random
[ea8e919c] + SHA
[9e88b42a] + Serialization
[6462fe0b] + Sockets
[2f01184e] + SparseArrays
[10745b16] + Statistics
[fa267f1f] + TOML
[a4e569a6] + Tar
[8dfed614] + Test
[cf7118a7] + UUIDs
[4ec0a83e] + Unicode
[deac9b47] + LibCURL_jll
[29816b5a] + LibSSH2_jll
[c8ffd9c3] + MbedTLS_jll
[14a3606d] + MozillaCACerts_jll
[83775a58] + Zlib_jll
[8e850ede] + nghttp2_jll
[3f19e933] + p7zip_jll
Building WebIO → `~/.julia/scratchspaces/44cfe95a-1eb2-52ea-b672-e2afdf69b78f/5fe32e4086d49f7ab9b087296742859f3ae6d62a/build.log`
Building Blink → `~/.julia/scratchspaces/44cfe95a-1eb2-52ea-b672-e2afdf69b78f/08d0b679fd7caa49e2bca9214b131289e19808c0/build.log`
ERROR: Error building `Blink`:
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 664 100 664 0 0 2813 0 --:--:-- --:--:-- --:--:-- 2813
100 71.6M 100 71.6M 0 0 3446k 0 0:00:21 0:00:21 --:--:-- 2876k
ERROR: LoadError: IOError: could not spawn `unzip -q electron-v4.0.4-linux-x64.zip -d atom`: no such file or directory (ENOENT)
Stacktrace:
[1] _spawn_primitive(file::String, cmd::Cmd, stdio::Vector{Any})
@ Base ./process.jl:99
[2] #637
@ ./process.jl:112 [inlined]
[3] setup_stdios(f::Base.var"#637#638"{Cmd}, stdios::Vector{Any})
@ Base ./process.jl:196
[4] _spawn
@ ./process.jl:111 [inlined]
[5] run(::Cmd; wait::Bool)
@ Base ./process.jl:439
[6] run
@ ./process.jl:438 [inlined]
[7] (::Main.BuildBlink.var"#1#2")()
@ Main.BuildBlink ~/.julia/packages/Blink/mwJC9/src/AtomShell/install.jl:66
[8] cd(f::Main.BuildBlink.var"#1#2", dir::String)
@ Base.Filesystem ./file.jl:106
[9] install()
@ Main.BuildBlink ~/.julia/packages/Blink/mwJC9/src/AtomShell/install.jl:27
[10] top-level scope
@ ~/.julia/packages/Blink/mwJC9/deps/build.jl:14
[11] include(fname::String)
@ Base.MainInclude ./client.jl:444
[12] top-level scope
@ none:5
in expression starting at /root/.julia/packages/Blink/mwJC9/deps/build.jl:1
Stacktrace:
[1] pkgerror(msg::String)
@ Pkg.Types /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/Pkg/src/Types.jl:55
[2] (::Pkg.Operations.var"#82#87"{Bool, Pkg.Types.Context, String, Pkg.Types.PackageSpec})()
@ Pkg.Operations /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/Pkg/src/Operations.jl:1049
[3] withenv(::Pkg.Operations.var"#82#87"{Bool, Pkg.Types.Context, String, Pkg.Types.PackageSpec}, ::Pair{String, String}, ::Vararg{Pair{String, B} where B, N} where N)
@ Base ./env.jl:161
[4] (::Pkg.Operations.var"#109#113"{String, Pkg.Operations.var"#82#87"{Bool, Pkg.Types.Context, String, Pkg.Types.PackageSpec}, Pkg.Types.PackageSpec})()
@ Pkg.Operations /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/Pkg/src/Operations.jl:1547
[5] with_temp_env(fn::Pkg.Operations.var"#109#113"{String, Pkg.Operations.var"#82#87"{Bool, Pkg.Types.Context, String, Pkg.Types.PackageSpec}, Pkg.Types.PackageSpec}, temp_env::String)
@ Pkg.Operations /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/Pkg/src/Operations.jl:1449
[6] (::Pkg.Operations.var"#108#112"{Pkg.Operations.var"#82#87"{Bool, Pkg.Types.Context, String, Pkg.Types.PackageSpec}, Pkg.Types.Context, Pkg.Types.PackageSpec, String, Pkg.Types.Project, String})(tmp::String)
@ Pkg.Operations /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/Pkg/src/Operations.jl:1522
[7] mktempdir(fn::Pkg.Operations.var"#108#112"{Pkg.Operations.var"#82#87"{Bool, Pkg.Types.Context, String, Pkg.Types.PackageSpec}, Pkg.Types.Context, Pkg.Types.PackageSpec, String, Pkg.Types.Project, String}, parent::String; prefix::String)
@ Base.Filesystem ./file.jl:729
[8] mktempdir(fn::Function, parent::String) (repeats 2 times)
@ Base.Filesystem ./file.jl:727
[9] sandbox(fn::Function, ctx::Pkg.Types.Context, target::Pkg.Types.PackageSpec, target_path::String, sandbox_path::String, sandbox_project_override::Pkg.Types.Project)
@ Pkg.Operations /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/Pkg/src/Operations.jl:1488
[10] build_versions(ctx::Pkg.Types.Context, uuids::Vector{Base.UUID}; verbose::Bool)
@ Pkg.Operations /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/Pkg/src/Operations.jl:1030
[11] build_versions
@ /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/Pkg/src/Operations.jl:957 [inlined]
[12] add(ctx::Pkg.Types.Context, pkgs::Vector{Pkg.Types.PackageSpec}, new_git::Vector{Base.UUID}; preserve::Pkg.Types.PreserveLevel, platform::Base.BinaryPlatforms.Platform)
@ Pkg.Operations /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/Pkg/src/Operations.jl:1246
[13] add(ctx::Pkg.Types.Context, pkgs::Vector{Pkg.Types.PackageSpec}; preserve::Pkg.Types.PreserveLevel, platform::Base.BinaryPlatforms.Platform, kwargs::Base.Iterators.Pairs{Symbol, Base.TTY, Tuple{Symbol}, NamedTuple{(:io,), Tuple{Base.TTY}}})
@ Pkg.API /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/Pkg/src/API.jl:204
[14] add(pkgs::Vector{Pkg.Types.PackageSpec}; io::Base.TTY, kwargs::Base.Iterators.Pairs{Union{}, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
@ Pkg.API /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/Pkg/src/API.jl:80
[15] add(pkgs::Vector{Pkg.Types.PackageSpec})
@ Pkg.API /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/Pkg/src/API.jl:78
[16] #add#23
@ /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/Pkg/src/API.jl:76 [inlined]
[17] add
@ /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/Pkg/src/API.jl:76 [inlined]
[18] #add#22
@ /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/Pkg/src/API.jl:75 [inlined]
[19] add(pkg::String)
@ Pkg.API /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/Pkg/src/API.jl:75
[20] top-level scope
@ none:1
|
also does not build in Julia 1.7 image |
In a custom image, I fixed this error with: |
I guess this is operating system dependent, but whatever OS the official Julia images are built on do not include nlaws-> docker build -t jul173 .
[+] Building 1.8s (6/6) FINISHED
=> [internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 107B 0.0s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> [internal] load metadata for docker.io/library/julia:1.7.3 1.1s
=> [auth] library/julia:pull token for registry-1.docker.io 0.0s
=> CACHED [1/2] FROM docker.io/library/julia:1.7.3@sha256:3bb787d5131372f0a451d1c3f611d808d6134a11ec29ffb1dc9f49de15a0b3c4 0.0s
=> ERROR [2/2] RUN apt-get install -y unzip 0.4s
------
> [2/2] RUN apt-get install -y unzip:
#6 0.389 Reading package lists...
#6 0.405 Building dependency tree...
#6 0.407 Reading state information...
#6 0.413 E: Unable to locate package unzip
------
executor failed running [/bin/sh -c apt-get install -y unzip]: exit code: 100 Maybe the most sustainable solution to this issue is to remove the need for |
What about: |
@francoislaurent Yep that fixed it. Thank you! |
As a complementary note, you may run into permission issues on instantiating a Blink I solved this issue similarly installing dependencies for electron: I must mention I also previously installed |
I have added PlotlyJS.jl to my package dependencies (which has Blink.jl as a dependency) and I am not able to get Blink.jl to build in a Docker container from Ubuntu 18 or 20/latest. The issue may be Docker and/or Actions specific, I'm not sure. Here is the trace back, which is on Actions for my package here:
The text was updated successfully, but these errors were encountered: