repo2docker/docs/source/contributing/buildpack.md

27 wiersze
1.1 KiB
Markdown
Czysty Zwykły widok Historia

2018-03-15 20:07:38 +00:00
# Adding a new buildpack to repo2docker
A new buildpack is needed when a new language or a new package manager should be
2018-03-16 15:20:33 +00:00
supported. Existing buildpacks are a good model for how new buildpacks
should be structured.
2018-03-15 20:07:38 +00:00
## Criteria to balance and consider
Criteria to balance are:
1. Maintenance burden on repo2docker.
2. How easy it is to use a given setup without support from repo2docker natively.
There are two escape hatches here - `postBuild` and `Dockerfile`.
3. How widely used is this language / package manager? This is the primary tradeoff
with point (1). We (the Binder / Jupyter team) want to make new formats
as little as possible, so ideally we can just say "X repositories on binder already use
2018-03-15 20:07:38 +00:00
this using one of the escape hatches in (2), so let us make it easy and add
native support".
2018-03-15 20:07:38 +00:00
## Adding libraries or UI to existing buildpacks
Note that this doesn't apply to adding additional libraries / UI to existing
buildpacks. For example, if we had an R buildpack and it supported IRKernel,
it is much easier to
just support RStudio / Shiny with it, since those are library additions instead of entirely
2018-08-03 06:21:57 +00:00
new buildpacks.