This is a Docker development image for VTK projects with Python based on Debian Wheezy x86_64.
Libraries inside:
Download:
$ docker pull lukin0110/docker-vtk-python
Run python shell:
$ docker run -it lukin0110/docker-vtk-python python
Run a bash shell:
$ docker run -it lukin0110/docker-vtk-python bash
The container has 2 mount points:
/src
: mount a local source code directory. You need this to execute your code in the container./out
: mount a local out directory if your scripts produce output.
Examples:
$ docker run -it -v your_source:/src lukin0110/docker-vtk-python python /src/myscript.py
$ docker run -it -v your_out:/out lukin0110/docker-vtk-python python /src/myscript.py
$ docker run -it -v your_source:/src -v your_out:/out lukin0110/docker-vtk-python python /src/myscript.py
Note: on OSX you need to add the full path of the directory that you want to mount.
E.g.: docker run -v /Users/johndoe/your_project/your_source:/src
.
The container has a few examples included. The examples are located in
the /examples
directory.
- numpy:
docker run -it lukin0110/docker-vtk-python python /examples/e_numpy.py
- scipy:
docker run -it lukin0110/docker-vtk-python python /examples/e_scipy.py
- vtk:
docker run -it lukin0110/docker-vtk-python python /examples/e_vtk.py