- Administrator/root privileges on your machine
- 64-bit processor with virtualization support (for Windows/macOS)
- At least 4GB RAM (8GB+ recommended)
- Internet connection
Windows - Install Docker Desktop on Windows
MAC OS - Install Docker Desktop on Mac
Linux - Install Docker Desktop on Linux
To verify installation of docker run following commands:
docker pull hello-world:latest
docker run --rm hello-world:latest
The output should contain ‘Hello from Docker!’ text and a short explanation how it works.
InMAP documentation is located on spatialmodel/inmap.
Data code run trials are located here
Pull image
docker pull haitamlaarabi/inmap:1.0
Run container
docker run --rm \
-v <path to evaldata>:/evaldata \
-e evaldata=/evaldata \
-w /evaldata \
haitamlaarabi/inmap:1.0 \
run steady --config=/evaldata/<path to the config.toml>
Notes:
- Setting variable
-e evaldata=/evaldatarequired if the variable exist in the config (original config example contains it - spatialmodel/inmap/blob/master/eval/nei2005Config.toml) - Setting
-w /evaldatarequired if output files in config specified with relative paths (i.e. default path in config example "nei2005/2005nei_output_${InMAPRunType}.shp") - Output folder specified in config should be created before InMAP execution
<path to evaldata>needs to be replaced with a real paths, the path connects your local data folder to the container- Linux/Mac example:
/home/username/projects/data - Windows example:
C:\Users\Username\Projects\Data
Your input files go in the mounted folders, results appear in the output location, according to configuration.
- Download evaldata_v1.6.1.zip from zenodo.org/records/3403934.
- Unzip evaldata archive to user home folder (
/home/username/evaldata_v1.6.1) - Create output folder with name
outinside evaldata (/home/username/evaldata_v1.6.1/out) - Download nei2005Config.toml config file and put it inside evaldata folder (
/home/username/evaldata_v1.6.1/nei2005Config.toml) - Execute:
docker run --rm \
-v $(realpath evaldata_v1.6.1):/evaldata \
-e evaldata=/evaldata \
-w /evaldata \
haitamlaarabi/inmap:1.0 \
run steady --config=/evaldata/nei2005Config.toml
To build the inmap docker image:
docker build . -t <inmap image name>