Add a default build pack

Gives you a blank python3 environment
pull/21/head
yuvipanda 2017-05-30 12:34:01 -07:00 zatwierdzone przez Yuvi Panda
rodzic f07c86f05e
commit acb0d86027
2 zmienionych plików z 9 dodań i 2 usunięć

Wyświetl plik

@ -26,7 +26,7 @@ import subprocess
from .detectors import (
BuildPack, PythonBuildPack, DockerBuildPack, LegacyBinderDockerBuildPack,
CondaBuildPack,
CondaBuildPack, DefaultBuildPack
)
from .utils import execute_cmd
from . import __version__
@ -93,7 +93,7 @@ class Repo2Docker(Application):
buildpacks = List(
Type(BuildPack),
[LegacyBinderDockerBuildPack, DockerBuildPack, CondaBuildPack, PythonBuildPack],
[LegacyBinderDockerBuildPack, DockerBuildPack, CondaBuildPack, PythonBuildPack, DefaultBuildPack],
config=True,
help="""
Ordered list of BuildPacks to try to use to build a git repository.

Wyświetl plik

@ -158,3 +158,10 @@ class PythonBuildPack(S2IBuildPack):
pass
self.build_image = self.runtime_builder_map[self.runtime]
return True
class DefaultBuildPack(S2IBuildPack):
build_image = Unicode('jupyterhub/singleuser-builder-venv-3.5:v0.2.0')
name = Unicode('default')
def detect(self, workdir):
return True