Skip to content
Merged
54 changes: 31 additions & 23 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -35,33 +35,41 @@ RUN conda install --yes \
##
## Now create separate environments, that are managed by nb_conda_kernels
##
conda create -n ansible-kernel --yes ansible-kernel bioblend galaxy-ie-helpers && \
conda create -n bash-kernel --yes bash_kernel bioblend galaxy-ie-helpers && \
conda create -n octave-kernel --yes octave_kernel bioblend galaxy-ie-helpers && \
conda create -n python-kernel-3.12 --yes python=3.12 ipykernel bioblend galaxy-ie-helpers && \
conda create -n python-kernel-3.12 --yes python=3.12 ipykernel bioblend galaxy-ie-helpers && \
conda run -n python-kernel-3.12 python -m ipykernel install --user --name python-kernel-3.12 --display-name "Python 3.12" && \
conda create -n rlang-kernel --yes r-base r-irkernel r-xml rpy2 bioblend galaxy-ie-helpers \
'r-caret' \
'r-crayon' \
'r-devtools' \
'r-e1071' \
'r-forecast' \
'r-hexbin' \
'r-htmltools' \
'r-htmlwidgets' \
'r-irkernel' \
'r-nycflights13' \
'r-randomforest' \
'r-rcurl' \
'r-rmarkdown' \
'r-rodbc' \
'r-rsqlite' \
'r-shiny' \
'r-tidymodels' \
'r-tidyverse' \
'unixodbc' && \
'r-caret' \
'r-crayon' \
'r-devtools' \
'r-e1071' \
'r-forecast' \
'r-hexbin' \
'r-htmltools' \
'r-htmlwidgets' \
'r-irkernel' \
'r-nycflights13' \
'r-randomforest' \
'r-rcurl' \
'r-rmarkdown' \
'r-rodbc' \
'r-rsqlite' \
'r-shiny' \
'r-tidymodels' \
'r-tidyverse' \
'unixodbc' && \
conda run -n rlang-kernel R -e 'IRkernel::installspec(user = TRUE)' && \
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can also add here something like (name = 'rlang-kernel', displayname = 'R')

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and I guess for the other kernels as well

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes u can : conda run -n rlang-kernel R -e "IRkernel::installspec(user = TRUE, name = 'rlang-kernel', displayname = 'R')"
But it's also possible without specifying a name: conda run -n python-kernel-3.12 python -m ipykernel install --user

conda create -n bash-kernel --yes bash_kernel bioblend galaxy-ie-helpers && \
conda run -n bash-kernel python -m bash_kernel.install --user && \
conda create -n octave-kernel python=3.8 --yes && \
conda run -n octave-kernel pip install octave_kernel bioblend galaxy-ie-helpers && \
conda run -n octave-kernel python -m octave_kernel install --user&& \
conda create -n ansible-kernel --yes ansible-kernel jupyter_client bioblend galaxy-ie-helpers && \
conda run -n ansible-kernel python -m ansible_kernel.install && \
conda clean --all -y && \
chmod a+w+r /opt/conda/ -R



ADD ./startup.sh /startup.sh
#ADD ./monitor_traffic.sh /monitor_traffic.sh
ADD ./get_notebook.py /get_notebook.py
Expand Down