-
-
Notifications
You must be signed in to change notification settings - Fork 64
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
Installing cmdstanr in Docker image #1056
Comments
Hmm, strange. I'm not super experienced with docker, but recently @tillahoffmann created a docker image that included cmdstanr (to help me debug an issue). @tillahoffmann do you have any suggestions for successfully installing and loading cmdstanr in a docker image? Thanks! |
It would be interesting to see the output from the following cached step. Maybe that has some further logs that could be useful.
We used a docker image to diagnose an issue in #1050. The Dockerfile is here and might be a good starting point. Does that setup work for you? The only difference I can spot is the different base image. |
Thanks @tillahoffmann! |
I just built your example Dockerfile without any issues. Can you try building with the |
Ah my apologies I meant to send the log using
I'm thinking that is has something to do with the image from rocker. I'm using a different image from them for a different process My plan this afternoon is to use Docker in debug mode and try to install cmdstanr to see if there are any more clues as to what is going on. I'll be sure to post anything I find here! Thank you for the quick replies! |
I don't think it's the container, since it's working for me. To verify, can you try running the container interactively (i.e., |
Hi @andrjohns I tried to run it interactively with the command you supplied and via the debugger within Docker Desktop itself but I think there is some networking issues that don't allow it to reach outside the container. I tried installing ggplot2 and it also failed in both interactive environments. However I have a much larger build that cmdstanr will go into and that build grabs all the other packages perfectly fine and I found that when it comes time for cmdstanr to install, I get this in the build log:
I can confirm that when I try to install cmdstanr on the physical machine using the same The next step I'm going to try is to get the tar file itself and install it as a local package. |
Successfully installed the package from source! Updated minimum repro Dockerfile
Build log confirms
In the bigger build I can also confirm that I can use both I'm still unsure why I'm unable to install cmdstanr the recommended way but in case anyone else out there is having a similar issue, installing it this way is successful. |
I think I know what the problem is. I'm on a company computer that injects new SSL certificates between connections (MITMA), and the domain A clue to this behavior is also in the repro Really appreciate everyone's response to this issue! This is a problem specific to me and my use case, and not a problem with the package in any way. |
Describe the bug
The task is to get cmdstan installed during a docker build. Following the example below, during the docker build, the logs indicate that the package is installed but when the package is called within library, it indicates that the package cannot be found.
cmd to build:
docker build . --file Dockerfile --tag docker_test
log of build:
To Reproduce
Minimum Dockerfile to reproduce
Expected behavior
Expectation is that library command executes successfully which means the functions in the package become available to use in the session
Operating system
Pulling from rocker/r-ver:latest
CmdStanR version number
Latest release from stan-dev.r-universe.dev
Additional context
None
The text was updated successfully, but these errors were encountered: