An open API service indexing awesome lists of open source software.

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

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`.