Skip to content

lukin0110/docker-vtk-python

Repository files navigation

Docker VTK Python image

This is a Docker development image for VTK projects with Python based on Debian Wheezy x86_64.

Libraries inside:

Usage

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

Mount points

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

More info about mounting.

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.

Examples

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

About

Docker image for Python projects with the VTK C++ library

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages