/docker-doe2

Docker image for the energy simulation engine DOE2

Primary LanguageShellGNU General Public License v3.0GPL-3.0

Docker for DOE2

License: GPL v3

This repository provides the dockerfile for DOE2 and a docker-compose to build the image.

Create the image

Create the image from dockerfile directly

Run command:

docker build \
  --build-arg DOE22PASSWORD=<password> \
  --file versions/python/dockerfile \
  --tag <your name>/doe2:<doe2 version> \
  .

Creata the image from docker-compose

Run command:

docker-compose build

Run the simulation

Run command:

docker run \
    -it \
    --rm \a
    --volume "<model>:/root/.wine/drive_c/sample" \
    <docker image> \  # example: grammyjiang/python-doe2:exe48z
    wine cmd /c c:/doe22/doe22 exe48z c:/sample/sample chicagil

where:

-it: it is necessary, even there is no interactive

--volume: the path of the project, mount it to /root/.wine/drive_c/sample to make it available in wine

wine: running the batch file with cmd.exe

doe22: c:/doe22/doe22 is the batch file of doe22.bat, exe48z is the version of doe22, c:/simple/simple is the path of inp file (without inp postfix), chicagil is the weather file which located in c:/doe22/weather