Skip to content

Running terra-jupyter-r locally on gcp vm #435

@MiTPenguin

Description

@MiTPenguin

Hello Terra team,

I'm testing running the terra-jupyter images (particularly the r and python images) on my own gcp VM, as an alternative to running the images on Terra.

It all works reasonably well, with some additional entrypoint parameters. Here's what I use to run an image on a vm with debian 11:

docker run -it -p 8000:8000 -v /home/$USER:/home/jupyter/data --entrypoint "/opt/conda/bin/jupyter" \
us.gcr.io/broad-dsp-gcr-public/terra-jupyter-r:2.1.10 lab --port=8000 --allow-root --ip=0.0.0.0 --no-browser

Jupyter lab then gets launched at port 8000, where I can log in with a token.

However, I am not able to write any file into my mounted volume data/. There's a permission issue, and attempts to sudo chown the directory runs into the issue of requiring password for root access, which I can't seem to figure out.

Any idea on how to proceed? the already install package list on the terra images are very convenient for me, so getting it to work would be great.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions