Skip to content
This repository has been archived by the owner on Nov 6, 2019. It is now read-only.

Dockerfile based on Amazon Linux 2 with GFortran + FCM Make + netCDF

License

Notifications You must be signed in to change notification settings

matthewrmshin/amazonlinux2-gfortran-fcm-make-netcdf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

amazonlinux2-gfortran-fcm-make-netcdf

Dockerfile based on Amazon Linux 2 with:

Build the image:

docker build . --tag 'amazonlinux2-gfortran-fcm-make-netcdf'

Use the image to run fcm make to build the Fortran source tree in the current working directory:

docker run --rm -t -i -u "$(id -u):$(id -g)" -v "$PWD:/opt/myapp" 'amazonlinux2-gfortran-fcm-make-netcdf' fcm make -C /opt/myapp

To compile with netCDF, amend the settings in your fcm-make.cfg where appropriate:

  • Fortran compiler include paths: build.prop{fc.include-paths} = /usr/local/include
  • Fortran compiler link paths: build.prop{fc.lib-paths} = /usr/local/lib
  • Fortran compiler link libraries: build.prop{fc.libs} = netcdff (Note: two ff.)
  • C compiler include paths: build.prop{cc.include-paths} = /usr/local/include
  • C compiler link paths: build.prop{cc.lib-paths} = /usr/local/lib
  • C compiler link libraries: build.prop{cc.libs} = netcdf

About

Dockerfile based on Amazon Linux 2 with GFortran + FCM Make + netCDF

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published