This is an extension to the base compiled-binder-example
repo. The idea here is to use PackageCompiler on Binder without a custom Dockerfile (i.e., integrating it with repo2docker
's native Julia support.)
Click the myBinder badge below to spin up a new instance. That's it!
How do I generate the TOML files for my own use?
Inside a directory, open a Julia REPL and then hit ] activate
. This will initialize a new (empty) environment, and running further operations (] add
, ] pin
, etc.), will create and maintain the files.
Will packages in my
Project.toml
be precompiled?
Yes. As Simon mentions, this accounts for less than half the compilation cost of a package, but it will be paid for all packages regardless of what happens in postBuild
.
How do I change the list of files to bake in?
Edit the list of packages in the init.jl
script. Packages named there must also be in your main Project.toml
.
Note: PackageCompiler is still relatively fragile, and not all combinations of packages will succeed.
How do I deploy my own Binder (with my own badge, etc.?)
See the FAQ in the base repository for more details on that.
You can open an issue or PR on this repo, or email me at [email protected]
.