-
Notifications
You must be signed in to change notification settings - Fork 14
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
Use aiidalab wide logo in notebook interface #416
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -105,3 +105,9 @@ ENV NOTEBOOK_ARGS \ | |
"--MappingKernelManager.cull_interval=300" \ | ||
"--TerminalManager.cull_inactive_timeout=600" \ | ||
"--TerminalManager.cull_interval=60" | ||
|
||
# Set up the logo of notebook interface | ||
COPY --chown=${NB_UID}:${NB_GID} aiidalab-wide-logo.png ${CONDA_DIR}/notebook-logo.png | ||
# the folder of logo.png is get by find "$CONDA_DIR/lib" -path "*/notebook/static/base/images/logo.png" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I am very confused by this code. Why is this There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Not exactly the path now is There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Right, but we control the python version and it's value is available in the Dockerfile you only need to somehow get rid of the patch version.e.g 3.9.13 to 3.9, but I am assuming that should be possible. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Did not manage to do it simply. I can do:
But I don't think it is simple. If read from There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I add a comment to explain the usage of |
||
# copy the logo.png to the folder as logo.png | ||
RUN find "$CONDA_DIR/lib" -path "*/notebook/static/base/images/logo.png" -exec cp ${CONDA_DIR}/notebook-logo.png {} \; |
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.
Why do you put the logo in
$CONDA_DIR
? Isn't/opt/
a better place? Perhaps/opt/static/
?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.
Could be, I'll use
/opt
, it is a temporary location, and I think it is better to usemv
instead ofcp
.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.
Can't use
/opt
since I didn't runfix-permission
. I use/tmp
instead, so I can usemv
to avoid