Skip to content

Commit

Permalink
Fix gears logo
Browse files Browse the repository at this point in the history
  • Loading branch information
danielhollas committed Apr 4, 2024
1 parent 71e1482 commit 5f1528f
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions stack/lab/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,18 @@ RUN git clone https://github.com/aiidalab/aiidalab-home && \
fix-permissions "${CONDA_DIR}" && \
fix-permissions "/home/${NB_USER}"

# Install and enable appmode.
# Install appmode, turning Jupyter notebooks to Apps
RUN pip install appmode==0.8.0 --no-cache-dir --no-user
RUN jupyter nbextension enable --py --sys-prefix appmode && \
jupyter serverextension enable --py --sys-prefix appmode

# Use an AiiDAlab gears icon instead of appmode one
# Note that the icon must be swapped before the jupyter extension is enabled,
# because it is copied to jupyter-specific path during that process.
COPY gears.svg /tmp/gears.svg
RUN mv /tmp/gears.svg ${CONDA_DIR}/lib/python3*/site-packages/appmode/static/gears.svg
o
# Enable appmode extension
RUN jupyter nbextension enable --py --sys-prefix appmode && \
jupyter serverextension enable --py --sys-prefix appmode

# Copy start-up scripts for AiiDAlab.
COPY before-notebook.d/* /usr/local/bin/before-notebook.d/
Expand Down

0 comments on commit 5f1528f

Please sign in to comment.