1
1
ARG BASE_CONTAINER=jupyter/r-notebook:hub-1.4.2
2
2
FROM $BASE_CONTAINER
3
3
4
- RUN pip install jupyter-rsession-proxy nbgitpuller
4
+ # Base notebook for 1.4.2 uses Ubuntu 20.04 (Focal)
5
+
6
+ RUN pip install jupyter-rsession-proxy
5
7
RUN conda install -y -c r r-tidyverse
6
8
7
9
# install rstudio-server
8
- # Note: 1.4x & 1.3x have problems with proxying and auth flow, see: https://github.com/jupyterhub/jupyter-rsession-proxy/issues/97
9
10
USER root
10
11
11
- # WAS: https://download2.rstudio.org/server/trusty/amd64/rstudio-server-1.2.5042-amd64.deb [f6d212f2fdc1e1b4e605256a91b69fed6b61c046374934d262b2c3f1e234c0d6]
12
- # REMOVED: curl --silent -L --fail http://security.ubuntu.com/ubuntu/pool/main/o/openssl1.0/libssl1.0.0_1.0.2n-1ubuntu5.6_amd64.deb > /tmp/libssl.deb && \
13
- # apt-get install -y /tmp/libssl.deb && \
14
- # rm /tmp/libssl.deb && \
15
-
12
+ # Per: http://cran.rstudio.com/bin/linux/ubuntu/
16
13
RUN apt-get update && \
17
14
apt-get install gdebi-core -y && \
18
- curl --silent -L --fail https://download2.rstudio.org/server/bionic/amd64/rstudio-server-2021.09.0%2B351 -amd64.deb > /tmp/rstudio.deb && \
19
- echo '8ab014f050651d0b3d6d10ff0fcd6ea4873b90581f2ee1d4eaa871280685afae /tmp/rstudio.deb' | shasum -a 256 -c - && \
15
+ curl --silent -L --fail https://download2.rstudio.org/server/bionic/amd64/rstudio-server-2021.09.1-372 -amd64.deb > /tmp/rstudio.deb && \
16
+ echo 'c58df09468870b89f1796445853dce2dacaa0fc5b7bb1f92b036fa8da1d1f8a3 /tmp/rstudio.deb' | shasum -a 256 -c - && \
20
17
apt-get install -y /tmp/rstudio.deb && \
21
18
rm /tmp/rstudio.deb && \
22
19
apt-get clean
23
20
24
- # These were needed in 1.4x - keeping in case proxy issues are sorted
25
- # RUN rm /var/lib/rstudio-server/rstudio.sqlite && \
26
- # chmod -R 777 /var/lib/rstudio-server
27
- # ENV RSESSION_PROXY_RSTUDIO_1_4=yes
21
+
22
+ # Needed in 1.4x
23
+ RUN chmod 777 /var/lib/rstudio-server/rstudio-os.sqlite && \
24
+ chmod -R 777 /usr/sbin/rstudio-server
25
+ ENV RSESSION_PROXY_RSTUDIO_1_4=yes
28
26
29
27
ENV PATH=$PATH:/usr/lib/rstudio-server/bin
30
28
31
- USER $NB_USER
29
+ USER $NB_USER
30
+
31
+ RUN pip install nbgitpuller && \
32
+ jupyter serverextension enable nbgitpuller --sys-prefix
33
+
34
+ # See: https://github.com/uw-it-aca/rttl-notebooks/pull/15
35
+ RUN R -e "devtools::install_github('IRkernel/repr', ref = 'master')"
36
+ RUN R -e "install.packages('IRkernel',repos='http://cran.us.r-project.org')"
37
+ RUN R -e "IRkernel::installspec()"
38
+
39
+ ENV RSESSION_PROXY_RSTUDIO_1_4=yes
0 commit comments