-
Notifications
You must be signed in to change notification settings - Fork 16
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
fix: enable running image on Renku #1105
Conversation
Hi @olevski , thanks for the fix. I got this error when visit the link ( https://renkulab.io/v2/projects/jusong.yeu/aiidalab-qe-app.) you shared |
From the name, seems the link (jusong.yeu/aiidalab-qe-app) is related to @unkcpz |
@superstar54 this project is owned by Jason and it is not public. That is why you get a 404 when you visit the link. He would have to add you to it to test. I was emailing with Jason back and forth. It is probably best that he reviews and tests this. I will email him and let him know and see how he wants to progress this. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The changes LGTM, Thanks!
Yes, I have added @unkcpz as a reviewer. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1105 +/- ##
==========================================
+ Coverage 70.92% 70.94% +0.01%
==========================================
Files 115 115
Lines 7158 7158
==========================================
+ Hits 5077 5078 +1
+ Misses 2081 2080 -1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Ok cool. I did not know Jason's handle. I will email him as well. @unkcpz ping! |
cd /home/${NB_USER} && tar -cf /opt/conda/home.tar . | ||
# NOTE: The work folder is empty but if included clashes with the work folder in a Renku | ||
# session whose permissions cannot be changed. | ||
cd /home/${NB_USER} && tar -cf /opt/conda/home.tar --exclude work . |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay, we include the work
from legacy jupyter, it is better to exclude it from the tar.
Thanks @olevski, when we start the aiidalab-qe on k8s, I also pass
to the jupyterhub to start not using the lab but the notebook mode. How to pass this to the renku configuration? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure where to make it by default the notebookapp mode, maybe it require to set the argument in the renku side before the container start?
I am trying:
Args: ["sh","-c","bash start.sh jupyter notebook --NotebookApp.ip=0.0.0.0 --NotebookApp.port=8888 --NotebookApp.base_url=$RENKU_BASE_URL_PATH --NotebookApp.token=\"\" --NotebookApp.password=\"\" --NotebookApp.allow_remote_access=true --ContentsManager.allow_hidden=true --NotebookApp.allow_origin=*"]
but it still start in the jupyterlab mode.
yes, exactly! I'll check what you changed in the setup. I think for the changes here it should all good. |
@unkcpz the only thing I changed is the If you open the Also @unkcpz I see that you are changing the session launcher I created. Also while I was editing it. So I am pretty sure now they are all in a weird state. |
Sorry, I was changing the url to open the home app directly. I think it works as I expected exactly, and I am able to manage more issues if there show up. I'll summarize and document it somewhere later. Thanks a lot for the help!! |
Ok great! I leave it up to you to click merge on this PR or redo it or whatever you want to do with it. |
@unkcpz just for completeness this is enough to open that notebook in the mode you wanted. But some more configuration on the jupyter side is needed in order for the app to fully run. It complains that it cannot find the kernel. |
This enables running the image on Renku.
See the
qe-test-tasko
session launcher on https://renkulab.io/v2/projects/jusong.yeu/aiidalab-qe-app.The session launcher has the following specs:
![Screenshot From 2025-01-21 13-45-02](https://private-user-images.githubusercontent.com/16360283/405223535-520663df-4316-441e-a75e-3dd3af6644a4.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg5MzUzMzEsIm5iZiI6MTczODkzNTAzMSwicGF0aCI6Ii8xNjM2MDI4My80MDUyMjM1MzUtNTIwNjYzZGYtNDMxNi00NDFlLWE3NWUtM2RkM2FmNjY0NGE0LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA3VDEzMzAzMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWE4ZTk0NDc0Y2JjNDZkZDQ3Y2Q3YWMxMjFhMmI4MGZmYTE3YzMxNWU3MTc3ODYyM2JlNzJiMWFlNDc5MDc0ZDcmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.TXDcdyCQu0GhKIPqmzauYwfcU3SKQS9Uw0MWwljGGSE)