-
Notifications
You must be signed in to change notification settings - Fork 15
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
Environments tab not appearing #31
Comments
Thanks @machar94 for opening this issue. Access to the Environments tab is only available to admin users. But it looks like this is indeed not clearly mentioned in the README file. Is the tab displayed when logged as an admin user? |
Hmm so I am logged in as an admin user... I also checked to see where the package is installed and I have it under /opt/tljh/user/lib/python3.7/site-packages. Is the root owner an issue? By the way, I merely installed with pip. Is there somewhere in the TLJH config that it needs to be made aware that this tljh-repo2docker package exists and should be used? |
Ah that's probably why it is not picked up. Plugins are installed with the So the command becomes something like: curl https://tljh.jupyter.org/bootstrap.py \
| sudo python3 --plugin git+https://github.com/plasmabio/tljh-repo2docker@master If you already have a TLJH installation, re-running the installer script will perform an upgrade. |
For future users, I had to modify the above command slightly by adding the -L flag to curl (it follows the redirect URLs since curl was returning nothing as is). The command I ran now looks like:
I did manage to get an environments tab, but I'm still having some issues. I tried adding the following repo: https://github.com/machar94/rob101-env. However, as it was building, when I clicked the logs, nothing displayed. It was just a black screen. When I run No image is shown in the environments tab after refreshing or on the start page. Any ideas? Thanks, @jtpio for your continued help. |
This looks good now.
Indeed, there is an open PR to fix this in TLJH: jupyterhub/the-littlest-jupyterhub#593
It looks like the environment builds fine, and also on Binder too: https://mybinder.org/v2/gh/machar94/rob101-env/master What is the output of |
It's probably related to the fact that tljh-repo2docker/tljh_repo2docker/docker.py Lines 76 to 81 in 07b1659
And uses these labels to filter the environments on the start page. These labels are added by repo2docker here: https://github.com/jupyter/repo2docker/blob/8bbced7ded5a21b581f1f3846ffc9f87944ba799/repo2docker/buildpacks/base.py#L165-L170 However in the case where a Dockerfile is provided, it is used directly and it looks like the custom labels will not be added. Would it be possible to add the following at the end of your LABEL repo2docker.ref="master"
LABEL repo2docker.repo="https://github.com/machar94/rob101-env"
LABEL repo2docker.version="0.11.0+54.gbbc3ee0"
LABEL tljh_repo2docker.mem_limit=""
LABEL tljh_repo2docker.cpu_limit=""
LABEL tljh_repo2docker.display_name="rob101-julia-v1"
LABEL tljh_repo2docker.image_name="rob101-julia-v1:master" |
Thank you for help in my previous issue. My current issue I am trying to resolve is being able to see the environments tab (currently nothing shows up).
I have made a docker image that works (verified with binder) and I installed this plugin. My installation instructions were a bit different than the ones suggested in the README since I already have a TLJH instance up and running, so instead I used the command
python3 -m pip install git+https://github.com/plasmabio/tljh-repo2docker@master
. Post plugin installation, I tried restarting TLJH withtljh-config reload hub
with no luck. Am I missing a setup step that might have automatically been done to register the plugin during the post-build script?The text was updated successfully, but these errors were encountered: