Closed glemieux closed 3 years ago
Correct. and strangely older containers like those here https://hub.docker.com/repository/docker/serbinsh/ctsm_containers/general don't have this same problem. I only noticed this when trying to come up with newer ctsm/fates combos. I have even run into this problem after updating the newer machines files in the cime that ships with latest main_api to reflect those used in the examples and I still have this error. To do this I mapped in a host directory with modified machines files that match that expected by cime but with the docker hostname. but get the same error.....
Correct. and strangely older containers like those here https://hub.docker.com/repository/docker/serbinsh/ctsm_containers/general don't have this same problem.
Ok, I'm going to do a more thorough comparison of the dockerfiles on your personal repo and the dockerfile that I'm working with right now. I'm pretty sure the baseos images are almost exactly the same as I simply ported them over. For the ctsm-fates image I'm seeing the error on, I was adjusting a lot of things from your original, although the form was largely the same.
Task list:
useradd
call at the top of the Dockerfile for both gcc550
and gcc650
-u $(id -u):$(id -g)
docker run
command the location of the script volume on the inside of the container..cime
directory structure
-lnetcdf
not found error.The cause of the issue was due to the config_compiler.xml file having the <slib>
entry set for ENV${NETCDF_HOME}
which didn't match the environment variable location information in config_machine.xml: https://github.com/glemieux/docker-fates-tutorial/blob/90242388c3d2e3dca8f593696e8ab9ac01b68195/docker/fates-ctsm/cime_config/config_machines.xml#L37-L38
Updating the entries to the file to match @serbinsh original compiler xml file resolved the error. Commit to my personal repo is here: https://github.com/glemieux/docker-fates-tutorial/commit/132c112e8eba7037a6be2fef12483efbabf7830b
I'll close this out when I pull in the fix to the NGEET repo.
Great, nice find! I am close to have a test dataset so i will test with this once merged
Both @serbinsh and I are seeing this in different version ctsm-fates builds:
My particular image is a ctsm-fates-gcc650 build with
cime5.6.28
. Here's the Makefile line: https://github.com/ESMCI/cime/blob/fe16302fc332a02427a9e41a8efe959f2fe8c953/scripts/Tools/Makefile#L873-L874The
gcc650
baseos build hasn't changed and if I recall, the ctsmtestrepo
ran successfully in the past using that same baseos, so I'm not sure what's going on here. TheLD_LIBRARY_PATH
includes the paths to the combined C and Fortan netcdf libraries, so the baseos seems to be fine.