Orfeo ToolBox (OTB) docker container

Get the docker

docker pull terradue/otb-7.2.0

Run a container:

docker run --rm -it terradue/otb-7.2.0:latest bash

Run

Bash console

docker run --rm -it otb-7.2.0:latest bash

OTB cli applications are available in PATH.

Python

docker run --rm -it otb-7.2.0:latest bash

then

python
import otbApplication
import gdal

Using an OTB Cli application with local data

Launch the docker image with a mounted volume pointing to the current folder:

docker run --rm -it -v $PWD:/data terradue/otb-7.2.0:latest otbcli_ReadImageInfo -in /data/swir22.tif

Extend the conda environment

conda install -n env_otb <some package>

Build

Clone this repo and:

docker build -f .docker/Dockerfile -t otb-7.2.0