Skip to content

Commit

Permalink
add extra kernels
Browse files Browse the repository at this point in the history
  • Loading branch information
eeholmes committed Mar 14, 2024
1 parent 22801a0 commit 31eadae
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
12 changes: 10 additions & 2 deletions images/aomlomics-jh/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# devcontainer-focused Rocker
FROM docker.io/aomlomics/tourmaline:latest

USER root
Expand All @@ -14,9 +13,18 @@ RUN echo "Creating ${NB_USER} user..." \
# Make sure that /srv is owned by non-root user, so we can install things there
&& chown -R ${NB_USER}:${NB_USER} /srv

# add the packages needed for jupyterhubs
# add the packages needed for jupyterhubs to the base environment
COPY jhub-environment.yml jhub-environment.yml
RUN conda env update --name base -f jhub-environment.yml && conda clean --all

# add packages needed for extra kernels in the notebooks
RUN conda env update --name snakemake ipykernel && conda clean --all
RUN conda env update --name qiime2-2023.5 ipykernel && conda clean --all

# Register the kernels so you can open in notebooks
RUN python -m ipykernel install --prefix /srv/conda/envs/snakemake --name snakemake --display-name snakemake
RUN python -m ipykernel install --prefix /srv/conda/envs/qiime2-2023.5 --name qiime2-2023.5 --display-name qiime2
USER ${NB_USER}

USER ${NB_USER}
WORKDIR /home/${NB_USER}
1 change: 1 addition & 0 deletions images/aomlomics-jh/jhub-environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ dependencies:
- jupyterlab-git
- jupyterlab-favorites
- jupyter-resource-usage
- nb_conda_kernels
# - conda-lock
## VS code
# - code-server >=3.2
Expand Down

0 comments on commit 31eadae

Please sign in to comment.