holepunch icon indicating copy to clipboard operation
holepunch copied to clipboard

Link to repo2docker for running locally

Open betatim opened this issue 5 years ago • 4 comments

It would be good to mention that people can already run their work locally before making it public or when they need more resources by using https://repo2docker.readthedocs.io/ which is the tech used on a BinderHub.

The advantage is that you are adding reproducibility from day one, not as an after thought when "everything is done now, just need to make it reproducible".

betatim avatar Jul 27 '19 06:07 betatim

Thanks, will do on the next release.

karthik avatar Aug 18 '19 17:08 karthik

@betatim Dumb question, but testing this out myself, I'm unable to run as root (make sense) but this also means that I cannot log into the Rstudio server. Passing --user-name doesn't work either. Any ideas?

Copy this into a Dockerfile:

FROM rocker/binder:3.6.0
LABEL maintainer='Karthik Ram'
USER root
COPY . ${HOME}
RUN chown -R ${NB_USER} ${HOME}
USER ${NB_USER}



RUN wget https://github.com/karthik/btest-4/raw/master/DESCRIPTION && R -e "options(repos = list(CRAN = 'http://mran.revolutionanalytics.com/snapshot/2019-08-20/')); devtools::install_deps()"

Then

repo2docker -p 8788:8787 .  /usr/lib/rstudio-server/bin/rserver

Results in Rstudio server on localhost:8788 with no way to log in.

karthik avatar Aug 22 '19 17:08 karthik

I don't know. How does rstudio-server know what users and password to use?

betatim avatar Aug 23 '19 21:08 betatim

Whatever non root user is available to the container. For now I can't make repo2docker work for a R binder, but can do it more generically. So I'll wait before I add repo2docker instructions (once I make sure it works first)

karthik avatar Aug 26 '19 22:08 karthik