Skip to content

Commit

Permalink
Invoke exec as cmd string
Browse files Browse the repository at this point in the history
  • Loading branch information
agahkarakuzu committed Sep 14, 2024
1 parent 4f15b7e commit 67e6f42
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions myst_libre/tools/jupyter_hub_local_spawner.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,9 @@ def spawn_jupyter_hub(self,jb_build_command=None):
self.jh_token = h.hexdigest()

if jb_build_command:
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"
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'"
else:
this_entrypoint = f'jupyter server --allow-root --ip 0.0.0.0 --log-level=DEBUG --IdentityProvider.token="{self.jh_token}" --ServerApp.port="{self.port}"'
this_entrypoint = f'jupyter server --allow-root --ip 0.0.0.0 --log-level=DEBUG --IdentityProvider.token="{self.jh_token}" --ServerApp.port="{self.port}"'

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

0 comments on commit 67e6f42

Please sign in to comment.