Skip to content

Commit

Permalink
Fix pip install (#85)
Browse files Browse the repository at this point in the history
* fix: not having jupyter venv in PATH

* fix: jupyteruser not owning its venv directory
  • Loading branch information
vieiralucas authored Sep 17, 2024
1 parent fc38ea9 commit 38e4238
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ RUN groupadd -r briefer \
&& useradd -r -g jupyteruser jupyteruser \
&& mkdir -p /home/jupyteruser \
&& chown -R jupyteruser:jupyteruser /home/jupyteruser \
&& chown -R jupyteruser:jupyteruser /app/jupyter/venv \
&& chmod 700 /home/jupyteruser


Expand Down
1 change: 1 addition & 0 deletions docker/setup/jupyter.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ def get_config():
def run_jupyter(cfg):
env = os.environ.copy()
env["JUPYTER_TOKEN"] = cfg["JUPYTER_TOKEN"]
env["PATH"] = "/app/jupyter/venv/bin:" + env.get("PATH", "")

jupyter = subprocess.run([
"/app/jupyter/venv/bin/jupyter",
Expand Down

0 comments on commit 38e4238

Please sign in to comment.