You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Related to #359. Having #390 would address your issue but not in the way you want as I'm sure you want all the application building to take place during the Docker image build and not at runtime.
I am trying to compile this minimal example package to an app
TestPackage.jl
Project.toml
Manifest.toml
However, when running the app, it gives the following error:
To compile the app I run Docker build using the following Dockerfile
Dockerfile
The output of Docker build command:
Docker build output
#1 [internal] load build definition from Dockerfile
#1 sha256:a83776a614dd23bbd63c4d2c4c60723431b8e0d90f31fd346553323385bebbb1
#1 transferring dockerfile: 553B 0.0s done
#1 DONE 0.5s
#2 [internal] load .dockerignore
#2 sha256:0b5b39a11ca4d40b2d4a20a7efdad921f8632984297c077c3f05c57f8b1fa21b
#2 transferring context:
#2 transferring context: 2B 0.3s done
#2 DONE 1.0s
#3 [internal] load metadata for docker.io/library/julia:1.7.3-bullseye
#3 sha256:a709d3decc38ca0fa431dc40cebe2f400b71b387c30624c46c675d14129c2314
#3 DONE 5.5s
#4 [builder 1/7] FROM docker.io/library/julia:1.7.3-bullseye@sha256:02866dcc4be5385c9b67d33926992054db8e70286f5b4b61dec9e7cb28b605f6
#4 sha256:e098eab13fb22e037da857637320111c6c64afba1ac38cca691bc111a3d1adfd
#4 resolve docker.io/library/julia:1.7.3-bullseye@sha256:02866dcc4be5385c9b67d33926992054db8e70286f5b4b61dec9e7cb28b605f6 0.0s done
#4 DONE 0.0s
#5 [builder 2/7] RUN dpkg-reconfigure dash && apt-get update && apt-get dist-upgrade -y
#5 sha256:f7e448225929c19688266c5178a5544814aa288621c92a97afd58fa319e86df6
#5 CACHED
#6 [builder 3/7] RUN apt-get -y install build-essential
#6 sha256:c6952e6b44098cf110ec599ef9aa0f2513827486f00077cfcd96f31a5b3d0222
#6 CACHED
#7 [internal] load build context
#7 sha256:0ad9b42a4a861dde482d1aea8eaebaa9226d85e5fc01d86b694ca04d46fb2166
#7 transferring context:
#7 transferring context: 1.25kB 0.1s done
#7 DONE 0.4s
#8 [4/6] COPY . TestPackage
#8 sha256:51bee2a57409e468510305b50b87b30c82b4ae08b3312ba9b192b334bdbc8cd6
#8 DONE 0.7s
#9 [5/6] RUN julia --project=TestPackage -e "using Pkg; Pkg.instantiate(); Pkg.precompile();"
#9 sha256:ce9eb6914f3ae039e353f5a9cc566a5577cd8a53be003d81245c3773696aa21e
#9 6.817 Installing known registries into
~/.julia
#9 20.25 Installed Scratch ─────── v1.1.1
#9 20.26 Installed Mocking ─────── v0.7.3
#9 20.26 Installed Parsers ─────── v2.3.2
#9 20.26 Installed InlineStrings ─ v1.1.4
#9 20.26 Installed ExprTools ───── v0.1.8
#9 20.28 Installed Compat ──────── v3.45.0
#9 20.28 Installed RecipesBase ─── v1.2.1
#9 20.28 Installed TimeZones ───── v1.9.0
#9 24.83 Building TimeZones →
~/.julia/scratchspaces/44cfe95a-1eb2-52ea-b672-e2afdf69b78f/d634a3641062c040fc8a7e2a3ea17661cc159688/build.log
#9 122.5 Precompiling project...
#9 124.7 ✓ Zlib_jll
#9 124.9 ✓ MbedTLS_jll
#9 125.9 ✓ CompilerSupportLibraries_jll
#9 126.8 ✓ LibSSH2_jll
#9 127.7 ✓ OpenBLAS_jll
#9 129.1 ✓ libblastrampoline_jll
#9 131.9 ✓ TestPackage
#9 132.2 7 dependencies successfully precompiled in 12 seconds (8 already precompiled)
#9 DONE 133.4s
#10 [6/6] RUN julia -e "using Pkg; pkg"add PackageCompiler"; using PackageCompiler; create_app("TestPackage", "app")"
#10 sha256:c7dfd4b50ddf5aee1e67c0c1e7592b81df8ece89106fbf1e5066f293a5349593
#10 3.447 ┌ Warning: The Pkg REPL mode is intended for interactive use only, and should not be used from scripts. It is recommended to use the functional API instead.
#10 3.447 └ @ Pkg.REPLMode /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.7/Pkg/src/REPLMode/REPLMode.jl:377
#10 14.46 Updating registry at
~/.julia/registries/General.toml
#10 15.67 Resolving package versions...
#10 21.31 Installed RelocatableFolders ─ v0.1.3
#10 21.31 Installed PackageCompiler ──── v2.0.7
#10 24.22 Updating
~/.julia/environments/v1.7/Project.toml
#10 24.22 [9b87118b] + PackageCompiler v2.0.7
#10 24.27 Updating
~/.julia/environments/v1.7/Manifest.toml
#10 24.27 [9b87118b] + PackageCompiler v2.0.7
#10 24.27 [05181044] + RelocatableFolders v0.1.3
#10 24.27 [6c6a2e73] + Scratch v1.1.1
#10 24.27 [0dad84c5] + ArgTools
#10 24.27 [56f22d72] + Artifacts
#10 24.28 [2a0f44e3] + Base64
#10 24.28 [ade2ca70] + Dates
#10 24.28 [f43a241f] + Downloads
#10 24.28 [7b1f6079] + FileWatching
#10 24.29 [b77e0a4c] + InteractiveUtils
#10 24.29 [4af54fe1] + LazyArtifacts
#10 24.29 [b27032c2] + LibCURL
#10 24.29 [76f85450] + LibGit2
#10 24.30 [8f399da3] + Libdl
#10 24.30 [56ddb016] + Logging
#10 24.30 [d6f4376e] + Markdown
#10 24.32 [ca575930] + NetworkOptions
#10 24.32 [44cfe95a] + Pkg
#10 24.32 [de0858da] + Printf
#10 24.32 [3fa0cd96] + REPL
#10 24.32 [9a3f8284] + Random
#10 24.32 [ea8e919c] + SHA
#10 24.32 [9e88b42a] + Serialization
#10 24.32 [6462fe0b] + Sockets
#10 24.32 [fa267f1f] + TOML
#10 24.32 [a4e569a6] + Tar
#10 24.32 [cf7118a7] + UUIDs
#10 24.37 [4ec0a83e] + Unicode
#10 24.37 [deac9b47] + LibCURL_jll
#10 24.38 [29816b5a] + LibSSH2_jll
#10 24.40 [c8ffd9c3] + MbedTLS_jll
#10 24.40 [14a3606d] + MozillaCACerts_jll
#10 24.40 [83775a58] + Zlib_jll
#10 24.40 [8e850ede] + nghttp2_jll
#10 27.42 Precompiling project...
#10 28.53 ✓ RelocatableFolders
#10 36.34 ✓ PackageCompiler
#10 36.48 2 dependencies successfully precompiled in 12 seconds (4 already precompiled)
#10 77.48 PackageCompiler: bundled artifacts:
#10 77.48 └── TimeZones
#10 77.50 └── tzdata2022a - 1.196 MiB
#10 77.52 Total artifact file size: 1.196 MiB
#10 84.97 - PackageCompiler: compiling base system image (incremental=false)
#10 1126.3 Precompiling project...
#10 1282.6 ✓ CompilerSupportLibraries_jll
#10 1283.8 ✓ RecipesBase
#10 1293.2 ✓ Compat
#10 1316.6 ✓ Parsers
#10 1395.6 ✓ Zlib_jll
#10 1398.3 ✓ ExprTools
#10 1402.3 ✓ Scratch
#10 1407.6 ✓ LibSSH2_jll
#10 1416.3 ✓ OpenBLAS_jll
#10 1446.0 ✓ InlineStrings
#10 1447.0 ✓ Mocking
#10 1455.1 ✓ libblastrampoline_jll
#10 1483.3 ✓ TimeZones
#10 1511.6 ✓ TestPackage
#10 1514.1 15 dependencies successfully precompiled in 395 seconds
#10 1566.2 - PackageCompiler: compiling nonincremental system image
#11 exporting to image
#11 sha256:e8c613e07b0b7ff33893b694f7759a10d42e180f2b4dc349fb57dc6b71dcab00
#11 exporting layers
#11 exporting layers 4.3s done
#11 writing image sha256:4372470e146819392c68f208c728b023994e680350cffb7df58b64c3533fda0a 0.0s done
#11 naming to docker.io/library/test-pkg5 done
#11 DONE 4.3s
The text was updated successfully, but these errors were encountered: