Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Link to repo2docker for running locally #30

Open
betatim opened this issue Jul 27, 2019 · 4 comments
Open

Link to repo2docker for running locally #30

betatim opened this issue Jul 27, 2019 · 4 comments

Comments

@betatim
Copy link
Contributor

betatim commented Jul 27, 2019

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".

@karthik
Copy link
Owner

karthik commented Aug 18, 2019

Thanks, will do on the next release.

@karthik
Copy link
Owner

karthik commented Aug 22, 2019

@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.

@betatim
Copy link
Contributor Author

betatim commented Aug 23, 2019

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

@karthik
Copy link
Owner

karthik commented Aug 26, 2019

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants