* changed settings for personal hub. * htop added to singleuser. * better singleuser. * config updated. * bad merge. * standard updates. * updates to builds. * updated. * updated path. * loc * stable build! * lab enabled. * dockerspawner bug fix. * stable upgrade. * remove env ending. * minimal installation script with python 2. * git enabled. * env. * upgraded hub for hartke. * setting cull idle servers. * default upgrade now working. * options. * tweaks for personal settings. * personalization. * update. * attempting full latex build. * lab build. * typo * separated layers. * got a fancy environment working * allspark. * updated personal hub settings. * allspark done. * updates. tflow. * octave deps. * rstudio and redundancy cleanup. * WIP * everything WORKS!!! * stable state with updates. * stuff to improve the experience. * merge. * working state. * settings. * settings for carme, successful build * settings tweaked for lab, sudo, debugger * working on carme * upgrade to python 3.9 and remove conda install steps * updates * major cleanup (#6) * update for slalom * disable options and grant sudo to all * vscode launcher * default url * pkgs * config * updates * typo * update * dont mount extras * update info in config * adding install scripts, cleaning up dockerfile * refactor class * clean up logic * carme * upgrades * update * swap order * spacing * updates * paths * rearranging * cleanup * lsp * cleanup * culler service update * unecessary option * more unecessary args * Update .env * monitoring Co-authored-by: mathematicalmichael <mpilosov@gmail.com>
117 lines
2.8 KiB
Plaintext
117 lines
2.8 KiB
Plaintext
FROM jupyter/r-notebook
|
|
|
|
###### R ENV #######
|
|
USER root
|
|
|
|
# R pre-requisites
|
|
RUN apt-get update && \
|
|
apt-get install -y --no-install-recommends \
|
|
fonts-dejavu \
|
|
unixodbc \
|
|
unixodbc-dev \
|
|
r-cran-rodbc \
|
|
gfortran \
|
|
gcc && \
|
|
rm -rf /var/lib/apt/lists/*
|
|
|
|
# Fix for devtools https://github.com/conda-forge/r-devtools-feedstock/issues/4
|
|
RUN ln -s /bin/tar /bin/gtar
|
|
|
|
|
|
# R pre-requisites
|
|
RUN apt-get update && \
|
|
apt-get install -y --no-install-recommends \
|
|
fonts-dejavu \
|
|
unixodbc \
|
|
unixodbc-dev \
|
|
r-cran-rodbc \
|
|
gfortran \
|
|
gcc && \
|
|
apt-get clean && rm -rf /var/lib/apt/lists/*
|
|
|
|
|
|
USER $NB_UID
|
|
# R packages
|
|
RUN conda install --quiet --yes \
|
|
'r-base=4.0.3' \
|
|
'r-caret=6.*' \
|
|
'r-crayon=1.4*' \
|
|
'r-devtools=2.3*' \
|
|
'r-forecast=8.13*' \
|
|
'r-hexbin=1.28*' \
|
|
'r-htmltools=0.5*' \
|
|
'r-htmlwidgets=1.5*' \
|
|
'r-irkernel=1.1*' \
|
|
'r-nycflights13=1.0*' \
|
|
'r-randomforest=4.6*' \
|
|
'r-rcurl=1.98*' \
|
|
'r-rmarkdown=2.6*' \
|
|
'r-rodbc=1.3*' \
|
|
'r-rsqlite=2.2*' \
|
|
'r-shiny=1.6*' \
|
|
'r-tidyverse=1.3*' \
|
|
'unixodbc=2.3.*' \
|
|
'r-tidymodels=0.1*'
|
|
RUN \
|
|
conda clean --all -f -y && \
|
|
fix-permissions "${CONDA_DIR}" && \
|
|
fix-permissions "/home/${NB_USER}"
|
|
|
|
# Install e1071 R package (dependency of the caret R package)
|
|
#RUN conda install --quiet --yes r-e1071
|
|
|
|
|
|
# RStudio
|
|
RUN python3 -m pip install jupyter-rsession-proxy
|
|
RUN cd /tmp/ && \
|
|
git clone --depth 1 https://github.com/jupyterhub/jupyter-server-proxy && \
|
|
cd jupyter-server-proxy/jupyterlab-server-proxy && \
|
|
npm install && npm run build && jupyter labextension link . && \
|
|
npm run build && jupyter lab build
|
|
|
|
|
|
# install rstudio-server
|
|
USER root
|
|
RUN apt-get update && \
|
|
curl --silent -L --fail https://download2.rstudio.org/server/bionic/amd64/rstudio-server-1.4.1103-amd64.deb > /tmp/rstudio.deb && \
|
|
apt-get install -y /tmp/rstudio.deb && \
|
|
rm /tmp/rstudio.deb
|
|
|
|
ENV PATH=$PATH:/usr/lib/rstudio-server/bin
|
|
|
|
# I do not think these are necessary
|
|
#RUN apt-get update && \
|
|
# apt-get install -y --no-install-recommends \
|
|
# libapparmor1 \
|
|
# libedit2 \
|
|
# lsb-release \
|
|
# psmisc \
|
|
# libssl1.0.0 \
|
|
# ;
|
|
|
|
#RUN apt-get install gdebi-core
|
|
RUN curl --silent -L --fail https://download3.rstudio.org/ubuntu-14.04/x86_64/shiny-server-1.5.9.923-amd64.deb > /tmp/rshiny.deb && \
|
|
apt-get install -y /tmp/rshiny.deb && \
|
|
rm /tmp/rshiny.deb
|
|
|
|
# Cleanup
|
|
RUN rm -rf $CONDA_DIR/share/jupyter/lab/staging && \
|
|
rm -rf /home/$NB_USER/.cache/yarn && \
|
|
apt-get -qq purge && \
|
|
apt-get -qq clean && \
|
|
rm -rf /var/lib/apt/lists/*
|
|
|
|
USER $NB_UID
|
|
|
|
# Final cleaning
|
|
# build and clean up (for good measure)
|
|
RUN npm cache clean --force && \
|
|
rm -rf /home/$NB_USER/.node-gyp
|
|
|
|
RUN conda clean --all -f -y && \
|
|
fix-permissions $CONDA_DIR && \
|
|
fix-permissions /home/$NB_USER
|
|
|
|
USER $NB_UID
|
|
R
|