Git Product home page Git Product logo

docker-roms-public's Introduction

Docker image to run the Regional Ocean Modeling System - ROMS

NOTE: this project is in very early stages of development.

Pre-requisites

  • Install docker in your system. Some guidelines here.
  • Create a Dockerhub account here.
  • Pull the ROMS docker image:
docker pull metocean/roms-public

Getting started

  • Clone this GitHub repository at your preferred location, let's call it $HOME hereinafter.

  • Create a folder /data/roms/upwelling to store the output data outside the docker container. Make sure there are compatible ownerships and writting permissions between host OS and docker container.

  • Browse to $HOME and run:

docker-compose run interactive
  • Done, you're inside the docker container now. Let's run the upwelling test case.
cd /home/roms/applications/upwelling
mpiexec -n 2 ./UPWELLING ocean_upwelling.in

That will generate the output netcdf files at /data/roms/upwelling, which you can access from your host OS.

Build your own ROMS executable

  • Create the folder /source/roms/include and /source/roms/bin, and make sure there are compatible ownerships and writting permissions between host OS and docker container.
  • Place your myapp.h CPP definitions file and any other necessary header file there.
  • Use docker-compose to trigger the build:
docker-compose run -e roms_app=MYAPP build
  • If everything goes well, you should have the binary file MYAPP created. To be continued...

Building your own docker image

If you are familiar with docker, you may want to use a different ROMS version, or customise the Dockerfile, and build your own image. You're more than welcome to fork this repository and share your image with the community.

  • For your ROMS login credentials, set roms_username and roms_password as ENV variables in your system. The docker-compose.yml and Dockerfile files will pipe them through when checking out the ROMS source code.
docker-compose build

To test your image, you can use the test tag in the docker-compose file, writting your specific test and:

docker-compose run test

User application

  • step 1
  • step 2

Please report any bugs here.

docker-roms-public's People

Contributors

rsoutelino avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

docker-roms-public's Issues

Problem building executable

I followed the Readme.md instructions, successfully ran the upwelling test, and accessed the output netcdf files on my host machine. Hurrah!

I then tried creating an include directory on my host machine, copied the upwelling.h file in there did:

export myapp=UPWELLING

docker-compose run build

but got back

Starting dockerromspublic_build_volumes_1
ERROR: Cannot start service build: invalid header field value "oci runtime error: container_linux.go:247: starting container process caused \"exec: \\\"cd\\\": executable file not found in $PATH\"\n"

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.