Sign inSign up

lukin0110/docker-vtk-python

By lukin0110

•Updated almost 10 years ago

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

Image
0

10K+

lukin0110/docker-vtk-python repository overview

⁠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

⁠License

Copyright 2016 Maarten Huijsmans

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Tag summary

Content type

Image

Digest

Size

640 MB

Last updated

almost 10 years ago

docker pull lukin0110/docker-vtk-python