Skip to content

Commit 3edbc43

Browse files
committed
Working R v2021.09.1 Build 372 in 1.4.2 and updated tags
1 parent a8a0139 commit 3edbc43

File tree

2 files changed

+25
-17
lines changed

2 files changed

+25
-17
lines changed

rstudio/Dockerfile

Lines changed: 22 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,39 @@
11
ARG BASE_CONTAINER=jupyter/r-notebook:hub-1.4.2
22
FROM $BASE_CONTAINER
33

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
57
RUN conda install -y -c r r-tidyverse
68

79
# 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
910
USER root
1011

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/
1613
RUN apt-get update && \
1714
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 - && \
2017
apt-get install -y /tmp/rstudio.deb && \
2118
rm /tmp/rstudio.deb && \
2219
apt-get clean
2320

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
2826

2927
ENV PATH=$PATH:/usr/lib/rstudio-server/bin
3028

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

rstudio/Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ APP_BIN?=app
44
default: build
55

66
DOCKER_REPO?=gcr.io/uwit-mci-axdd/rttl-rstudio-notebook
7-
DOCKER_TAG?=fdf878c
7+
DOCKER_TAG?=latest_1-4-2
88

99
build:
10-
docker build -t $(DOCKER_REPO):latest -t $(DOCKER_REPO):$(DOCKER_TAG) .
10+
docker build -t $(DOCKER_REPO):$(DOCKER_TAG) .
1111

1212
push: build
13-
docker push $(DOCKER_REPO):latest
13+
docker push $(DOCKER_REPO):$(DOCKER_TAG)

0 commit comments

Comments
 (0)