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

Dockerfile broken? #1

Open
pgensler opened this issue Oct 22, 2017 · 3 comments
Open

Dockerfile broken? #1

pgensler opened this issue Oct 22, 2017 · 3 comments

Comments

@pgensler
Copy link

pgensler commented Oct 22, 2017

When I try to run your dockerfile, I seem to get an error about this line failing:
COPY R/Makevars /root/.R/Makevars

If I comment that out, I get an issue with compiling rstan, which I am unsure about how to resolve:

                     ^~~~
make: *** [lang__grammars__expression_grammar_inst.o] Error 1
ERROR: compilation failed for package ‘rstan’
* removing ‘/usr/local/lib/R/site-library/rstan’

which I have yet to find a workaround that works properly. Would you know how to fix this so rstan compiles correctly?
EDIT::Sorry, after adding the Makevars file, the image seems to work. Can you explain what exactly the Makevars file does for the container? Not sure I fully understand why it is needed.
Related: stan-dev/rstan#441

@ignacio82
Copy link

@pgensler were you able to get this to work?

@pgensler
Copy link
Author

@ignacio82 let me check my build logs, my container is here FYI:
https://hub.docker.com/r/pgensler/sandboxr/

@pgensler
Copy link
Author

Yes I think it's working, I'm not sure if I have the correct flags for my compiler. I think my Makevars file was not copying over correctly, which was causing the error.

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