https://github.com/davidanthoff/compiled-binder-postbuild
PackageCompiler + myBinder, without Dockerfile
https://github.com/davidanthoff/compiled-binder-postbuild
Last synced: over 1 year ago
JSON representation
PackageCompiler + myBinder, without Dockerfile
- Host: GitHub
- URL: https://github.com/davidanthoff/compiled-binder-postbuild
- Owner: davidanthoff
- License: bsd-3-clause
- Created: 2019-03-29T21:16:22.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-04-04T19:52:16.000Z (over 7 years ago)
- Last Synced: 2025-02-10T12:12:46.654Z (over 1 year ago)
- Language: Jupyter Notebook
- Size: 24.4 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Background
This is an extension to the base [`compiled-binder-example`](https://github.com/arnavs/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.)
## Usage
Click the myBinder badge below to spin up a new instance. That's it!
## Adaptation
> 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](https://github.com/arnavs/compiled-binder-example) for more details on that.
## Contributions, etc.
You can open an issue or PR on this repo, or email me at `arnav.sood@ubc.ca`.