Name: binder-build-core
Owner: Binder
Description: The core logic for converting a directory containing dependencies into a Binder-compatible Docker image
Created: 2015-10-07 20:22:15.0
Updated: 2017-06-13 12:38:28.0
Pushed: 2017-08-18 01:58:16.0
Homepage: null
Size: 181
Language: Jupyter Notebook
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
:books: Same functionality. Better performance for you. :books:
Over the past few months, we've been improving Binder's architecture and infrastructure. We're retiring this repo as it will no longer be actively developed. Future development will occur under the JupyterHub organization.
Thanks for updating your bookmarked links.
Core logic for converting a directory containing dependencies into a Binder-compatible Docker image
In Binder, the binder-build
module is
responsible for fetching repository contents and handing them off to binder-build-core
, which will
then use one of a set of supported configuration configuration files in the directory to construct a Docker image (an executable environment).
binder-build-core
will search for the following files, in descending order of priority (only one will be used during the build process):
Dockerfile
requirements.txt
environment.yml
The first one it finds will be passed into a dependency handler for conversion into Dockerfile commands. The list of available dependency handlers and configuration file types can be found in the dependencies directory
npm install binder-build-core
Builder = require('binder-build-core')
buildOpts = { imageName: 'test', logger: logger }
builder = new Builder(buildOpts)
der.build(dirName, function (err, imageSource) {
.