Skip to content

Commit 67e6f42

Browse files
committed
Invoke exec as cmd string
1 parent 4f15b7e commit 67e6f42

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

myst_libre/tools/jupyter_hub_local_spawner.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,9 @@ def spawn_jupyter_hub(self,jb_build_command=None):
7878
self.jh_token = h.hexdigest()
7979

8080
if jb_build_command:
81-
this_entrypoint = f"jupyter-book build --all --verbose --path-output {self.host_build_source_parent_dir} content 2>&1 | tee -a jupyter_book_build.log"
81+
this_entrypoint = f"/bin/sh -c 'jupyter-book build --all --verbose --path-output {self.container_build_source_mount_dir} content 2>&1 | tee -a jupyter_book_build.log'"
8282
else:
83-
this_entrypoint = f'jupyter server --allow-root --ip 0.0.0.0 --log-level=DEBUG --IdentityProvider.token="{self.jh_token}" --ServerApp.port="{self.port}"'
83+
this_entrypoint = f'jupyter server --allow-root --ip 0.0.0.0 --log-level=DEBUG --IdentityProvider.token="{self.jh_token}" --ServerApp.port="{self.port}"'
8484

8585
if not self.rees.search_img_by_repo_name():
8686
raise Exception(f"[ERROR] A docker image has not been found for {self.rees.gh_user_repo_name} at {self.rees.binder_image_tag}.")

0 commit comments

Comments
 (0)