vwmaus / model-reproducibility

Research Proposal Master Thesis: Improving reproducibility in Earth Science
GNU General Public License v3.0
0 stars 1 forks source link

Build docker images #4

Closed vwmaus closed 6 years ago

vwmaus commented 6 years ago

Build docker images from template files

vwmaus commented 6 years ago

@ptrkrnstnr I will change the Docker template for the model to build only the image but not run the model. Otherwise, it will take too long to build larger models. My suggestion is to have the following steps:

  1. Create the Dockerfile including software/model/data versions and a sh script which starts the env and runs the model.
  2. Build the Docker image without running the model, eg. docker build -t model-x .
  3. Run a Docker container using docker run -d --rm -name mdel-x-run model. This would call the sh script, which runs the model and saves the results to a data volume (e.g. folder). The parameter -d --rm stop and remove the container immediately after the processing id done.

The interface should offer the possibility to download the Dockerfile or the results of the simulation (the model runs only if the user requests the results).

vwmaus commented 6 years ago

I create the repository for the docker images https://github.com/iiasa/gams-docker. The docker images will be available from Docker Hub as the repository is linked to the IIASA organization on Docker Hub.

One can create a model image based on the IIASA gams image using FROM iiasa/gams:latest.

I still need to update the templates in the web interface repository.

vwmaus commented 6 years ago

@ptrkrnstnr I made the GAMS images available in the iiasa organization on docker hub iiasa/gams

The images are automatically built any time a new push cames to the github repository iiasa/gams-docker