Skip to content

ibotdotout/docker-py-opencv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Docker-python-opencv

Docker for Python-Opencv based on Debian sid

Linux Package::

  • python (2.7)
  • python-pip
  • python-virtualenv
  • python-opencv
  • python-matplotlib

Usage

  1. Update your python packages into requirments.txt
  2. Edit virtualenv path in bin/venv default is /tmp/env
  3. Build Docker images
$ sudo docker build -t <image_name> <Dockerfile>
  1. Run docker with mount your directory into /app into docker container
$ sudo docker run -v <volume>:/app -v /tmp:/tmp <image_name> bin/venv <command>

Example

  • Files structure
$ ls
app
$ tree
app
├── bin
│   └── venv
├── Dockerfile
├── main.py
├── README.md
└── requirements.txt
  • Commands
$ sudo docker build -t py-opencv app
$ sudo docker run -v $PWD/app:/app -v /tmp:/tmp py-opencv bin/venv python main.py

Refereneces::

  1. Python runtime Dockerfile
  2. jenkins-docker-sample
  3. Activating a virtualenv in supervisord
  4. Managing Data in Containers

About

Python-Opencv based on Debian sid

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages