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

Cannot set default github repo during docker build #83

Open
alexlicohen opened this issue May 5, 2019 · 3 comments
Open

Cannot set default github repo during docker build #83

alexlicohen opened this issue May 5, 2019 · 3 comments

Comments

@alexlicohen
Copy link

alexlicohen commented May 5, 2019

Hi all,
I'm trying to pre-load the default github repo that is shown when a docker is loaded up using the something like the following in my dockerfile (and needless to say, not working):

#Set up github access (this is temporary; real version will request key at container runtime)
RUN echo "c.GitHubConfig.access_token = 'ToBeReplacedWithLineInRunTimeShellScript'" >> ~/.jupyter/jupyter_notebook_config.py

RUN mkdir -p ~/.jupyter/lab/user-settings/@jupyterlab/github && \
    echo "{\n  "defaultRepo": "alexlicohen/script-toolbox"\n}" >> ~/.jupyter/lab/user-settings/@jupyterlab/github/drive.jupyterlab-settings
@ian-r-rose
Copy link
Member

Sorry for the slow reply @alexlicohen. If this is still a problem, there are a few things we can check:

  1. Does your settings file work in a non-dockerized setting (e.g, just running jupyter lab)?
  2. In the dockerized lab, do you see your settings when you open them in the Advanced Settings Editor?
  3. Are there any schema validation errors, either in the notebook server logs, or in the browser Javascript console?

@rupanshi-chawda
Copy link

I am also working on something similar, Instead of going to advanced settings and setting a default repo every time the server in launched, I want to set default repo in the server configuration file or in dockerfile (image) so its loaded directly as default when server notebook in launched. If someone has an input, it would be very helpful !

@krassowski
Copy link
Member

The settings should be written to overrides.json file in an appropriate directory, see jupyterlab/jupyterlab-plugin-playground#26 for an example.

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

4 participants