-
Notifications
You must be signed in to change notification settings - Fork 240
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
local development with Docker #2553
Comments
To move forward immediately without rebuilding any images, you should be able to execute |
What's happening here is that Roxygen needs to be able to load the whole package including compiled code. Roxygen 7 is smart enough to recompile DLLs when it needs them, but Roxygen 6 isn't. You might also be able to work around it by forcing the compilation before Roxygen runs: |
maybe I should also update depends or something?
Does this mean I can just start working with BASGRA? or do I still need to go through |
Looks like it's defaulting to an outdated CRAN mirror. Maybe we should consider reconfiguring this in the Dockerfile? But meanwhile, looks like you can specify the repository directly, e.g. All of this should be moot once #2538 is merged and the Docker images are building automatically again.
I'll defer to @robkooper here |
OK adding the extra repo arg solved it. In the meantime, is there a way to confirm that I indeed managed to map my source code to the PEcAn container? when I go into the I guess I need to mount my source code to all of the services that has
and also for minio, thredds, web, monitor, sipnet, .... |
That mountpoint looks right to me. For Rstudio I'd been using |
@dlebauer here is a messy trial on my part: setup I made these changes to overcome the permission issues: #2572 my docker-compose.override.yml
and my .env has run
I would then continue editing the xml on RStudio, open RStudio (inside docker), navigate to workflowdir which is Anyway, I hit continue, and workflow finished without any errors, which is a problem because there were no outputs! Looks like the ED2IN (ED2IN.rgit) was not compatible with the current version, and there are tons of new tags in the ED2IN since the last time I used it. I don't know how we want to handle ED2IN these days (I believe this is work in progress?), but since I just want to get a run, I manually added the following tags to the ED2IN under the run folder, e.g.
Then under So this was with web-page & workflow.R combo, note that if you don't fix the permissions issue you probably won't be able to use this approach. |
I was able to start a run following @ashiklom's example as well, but note that connections change inside (http://localhost:8000/rstudio/) the container and outside (on the host machine):
Well I got a
|
Lets make sure we keep issues clean, the ED/sync is not for development, those are other issues. |
Description
I'm trying to set up a pecan development environment with docker. I will have couple of questions, so I'm opening an issue (I'll try to translate it to documentation later).
Context
I pulled latest changes from develop, switched to my feature branch, and started following these steps in the documentation:
pecan/executor
in the docker-compose.override.ymldocker-compose -p pecan up -d
docker exec -it pecan_executor_1 /bin/bash
, there I moved to/pecan
directory and ranmake clean
andmake
This is a critical error for me because I want to work with BASGRA. BASGRA source code currently lives in the pecan/models/basgra package and compiles with the rest of the PEcAn code (there were reasons to do this in the native installation, this was the only way I could make this .Fortran() call work).
Possible Implementation
What is the best way to solve this and make BASGRA work with pecan-docker environment? I guess even if I solve the compilation issue it may not mean that I will be able to run the model through pecan-docker? I can try dockerizing BASGRA, but I'm not sure how native version will communicate with it then.
I will have DB questions (I have populated DB tables for BASGRA at BU servers, but how will I get them onto my server now but I still haven't figured out syncing with docker), once I move past this issue.
[added by @dlebauer:]
./web/workflow.R --settings tests/pecan64.ed.xml
?The text was updated successfully, but these errors were encountered: