move stencila to preassemble
MODIFY
repo2docker/buildpacks/base.py
repo2docker/buildpacks/base.py
@@ -711,12 +711,8 @@ class BaseImage(BuildPack):
except FileNotFoundError:
pass
- return scripts
-
- def get_assemble_scripts(self):
- assemble_scripts = []
if "py" in self.stencila_contexts:
- assemble_scripts.extend(
+ scripts.extend(
[
(
"${NB_USER}",
@@ -728,7 +724,7 @@ class BaseImage(BuildPack):
]
)
if self.stencila_manifest_dir:
- assemble_scripts.extend(
+ scripts.extend(
[
(
"${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):
post_build = self.binder_path("postBuild")

move stencila to preassemble