Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

terra-jupyter-base should preserve /home/jupyter contents and environment variables such as PATH #471

Open
droazen opened this issue Nov 3, 2023 · 1 comment

Comments

@droazen
Copy link

droazen commented Nov 3, 2023

Currently, in images derived from terra-jupyter-base, it appears that the /home/jupyter directory is completely blown away after docker build and overwritten with a Terra persistent disk mount. Likewise, environment variables such as PATH set during docker build are not preserved. At least, this has been my experience while testing https://github.com/broadinstitute/gatk-workshop-terra-jupyter-image/blob/main/Dockerfile

The consequence of this is that there's no way to properly set up the jupyter user's environment and configuration during docker build. I had to resort to asking users of our image to run a script live in a terminal in their Terra workspace before loading their notebooks, in order to restore some necessary configuration to /home/jupyter

@droazen droazen changed the title terra-jupyter-base should preserve /home/jupyter contents and environment variables such as PATH terra-jupyter-base should preserve /home/jupyter contents and environment variables such as PATH Nov 3, 2023
@dvitale199
Copy link

I'm running into this same issue. How did you go about setting the missing env variables?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants