holepunch
holepunch copied to clipboard
Link to repo2docker for running locally
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".
Thanks, will do on the next release.
@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.
I don't know. How does rstudio-server know what users and password to use?
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)