Skip to content
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

🚧 Testing Installation of IRKernel #15

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@ RUN <<EOF
pip install --no-cache-dir --requirement ${ANALYTICAL_PLATFORM_DIRECTORY}/requirements.txt
EOF

# R Kernel
COPY --chown=nobody:nobody --chmod=0755 src/usr/local/bin/install-r-kernel.sh /usr/local/bin/install-r-kernel.sh
RUN <<EOF
bash /usr/local/bin/install-r-kernel.sh
EOF

USER ${CONTAINER_USER}
WORKDIR /home/${CONTAINER_USER}
EXPOSE 8080
Expand Down
13 changes: 13 additions & 0 deletions src/usr/local/bin/install-r-kernel.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/usr/bin/env bash

# Install R kernel for Jupyter
# This does show R in the Launcher but it is version 4.3.1 and not 4.4.1 which is what we have installed in the Analytical Platform Cloud Environment Base Image
# conda install r-irkernel

# This does show R in the launcher and it's version 4.4.0 :(
# This does appear to be the cleanest way so far
conda install r-irkernel -c conda-forge -y

# R -e "install.packages('IRkernel')"
# R -e "IRkernel::installspec(user = TRUE)"
# R -e "if ('IRkernel' %in% rownames(installed.packages())) { cat('IRkernel is installed.\n') } else { cat('IRkernel is not installed.\n') }"