Building from scratch issue #77
-
Hello, I have tried out the NWP Container Tutorial, electing to pull Docker images from Github on my Macbook. Worked like a charm. I then tried to redo the tutorial electing instead to build the image from scratch. This did not work. WRF did not compile, and all I know is the executables were not found.
I opened up the container and accessed the code using
and compiled the code – that worked. I did a ./clean -a and configured and rebuilt from scratch – that also worked. Any ideas? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
@wrfrgf thanks for moving this issue over to GitHub Discussions! @jwolff-ncar tried building from scratch this morning but wasn't able to replicate the issue you experienced. I tried as well and do see the error you're seeing! To be clear, I listed the commands I used to do so. First, I wanted to start from scratch and ran prune to do so:
WARNING: this removes all containers and images from your machine! So only do this if you don't have anything you need to save. At a minimum, please remove dtcenter/base_image, on top of which the WPS/WRF image is built. It's possible you have an out-dated dtcenter/base_image:latest image on your machine. If present, Docker with us it. If not, it'll pull from DockerHub. So by removing locally, we're forcing it to pull.
Second, clone the repo and see that you're on the main branch (that's the default):
Third, follow the "Build the image from scratch" instructions from this tutorial page. Note I redirected the build output to a log file so I could easily inspect it later.
And look at that... I got the same error you did!
Please stand by and I'll let you know what we figure out. |
Beta Was this translation helpful? Give feedback.
-
In the past when we encountered probelms building the wrf_wps image from scratch on our Macbooks, and had inconsistent behavior (e.g. success for some, fail for others, fail followed immediately with a success, success when building inside the container but not outside, etc.) it ended up being a resource problem. Can you open your Docker Dashboard, go to Settings, select resources on the lefthand menu, and see what CPUs and Memory you have set? |
Beta Was this translation helpful? Give feedback.
-
@wrfrgf thanks for confirming that did the trick! At this point, since your original question has been answered, and you've confirmed that, I'm going to Lock conversation on this discussions to prevent future posts. We do this for 2 reasons:
If more issues or questions arise your use of these containers, please feel free to start a new discussion in the Customization or Q&A categories. Or if you'd like an open-ended discussion (i.e. not question/answer), feel free to post to one of the other categories. |
Beta Was this translation helpful? Give feedback.
In the past when we encountered probelms building the wrf_wps image from scratch on our Macbooks, and had inconsistent behavior (e.g. success for some, fail for others, fail followed immediately with a success, success when building inside the container but not outside, etc.) it ended up being a resource problem. Can you open your Docker Dashboard, go to Settings, select resources on the lefthand menu, and see what CPUs and Memory you have set?