derpycode / cgenie.muffin

MIT License
37 stars 26 forks source link

Docker container for cgenie? #22

Open psychemedia opened 6 years ago

psychemedia commented 6 years ago

Hi

Is there a Linux virtual machine or Docker containerised version of cgenie available, or a set of build instructions for it?

I'm trying to evaluate how Docker containers might be used to support various applications in a distance education setting and a colleague tipped me off to this application as one that would be handy to try out for a course they're involved with...

derpycode commented 6 years ago

No ... the model has a little history ... and has been developed over the bets part of 15 years by climate scientists should really should not have been left in front of a keyboard ... me including ... at least with respect to good practice software design and engineering. (That is not to say the model is not good science -- lots of care have been taken in terms of credible and reliable science.)

So no -- no containers or anything particualrly helpful. As the code is a mix of FORTRAN 90 and 77, C, Python, and BASH scripting, this makes for something of a nightmare in terms of automated cross-platform install.

There is a user manual:

https://github.com/derpycode/muffindoc

and in which in some matieral near the start, and also some of the HOW-TO sections near the end, as somewhat detailed and step-by-step instructions for Ubuntu (Section 17.4) and MacOS (17.6).

A few years back, I did commission a re-write as a proof-of-concept for a cross-platform version:

https://github.com/genie-model

but which has languished as I contined instead with the science development of the cgenie.muffin version ...

This willl ... or did as of a couple of years ago, compile across platforms, although requiring a FORTRAN compiler and netCDF libraries etc for each platform.

I would love to move the model on, one day, to some that could be e.g. pre-compiled and easily installed cross platform. And ideally with a GUI ... :o)

/andy

$ --- Dr. Andy Ridgwell $ --- <START MAIN Professor of Earth System Science Department of Earth Sciences University of California, Riverside 900 University Ave. Riverside, CA 92521 /END MAIN> <START ALT Professorial Research Fellow School of Geographical Sciences University of Bristol Bristol BS8 1SS United Kingdom /END ALT> $ --- andy@seao2.org http://andy.seao2.org https://github.com/derpycode @derp_code $ ---

psychemedia commented 6 years ago

Hi Andy

Thanks for the info. I'll take a look at the Ubuntu route and see if I can get it working in a simple VM. I'll be sure to share anything I manage to get working in terms of eg Vagrantfile back to you...