kopia lustrzana https://github.com/jupyterhub/repo2docker
move stencila to preassemble
rodzic
b6ab2a9986
commit
5b12e072b1
|
@ -711,12 +711,8 @@ class BaseImage(BuildPack):
|
||||||
except FileNotFoundError:
|
except FileNotFoundError:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
return scripts
|
|
||||||
|
|
||||||
def get_assemble_scripts(self):
|
|
||||||
assemble_scripts = []
|
|
||||||
if "py" in self.stencila_contexts:
|
if "py" in self.stencila_contexts:
|
||||||
assemble_scripts.extend(
|
scripts.extend(
|
||||||
[
|
[
|
||||||
(
|
(
|
||||||
"${NB_USER}",
|
"${NB_USER}",
|
||||||
|
@ -728,7 +724,7 @@ class BaseImage(BuildPack):
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
if self.stencila_manifest_dir:
|
if self.stencila_manifest_dir:
|
||||||
assemble_scripts.extend(
|
scripts.extend(
|
||||||
[
|
[
|
||||||
(
|
(
|
||||||
"${NB_USER}",
|
"${NB_USER}",
|
||||||
|
@ -741,7 +737,11 @@ class BaseImage(BuildPack):
|
||||||
)
|
)
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
return assemble_scripts
|
return scripts
|
||||||
|
|
||||||
|
def get_assemble_scripts(self):
|
||||||
|
"""Return directives to run after the entire repository has been added to the image"""
|
||||||
|
return []
|
||||||
|
|
||||||
def get_post_build_scripts(self):
|
def get_post_build_scripts(self):
|
||||||
post_build = self.binder_path("postBuild")
|
post_build = self.binder_path("postBuild")
|
||||||
|
|
Ładowanie…
Reference in New Issue