Public | Automated Build

Last pushed: 2 years ago
Short Description
Short description is empty for this repo.
Full Description

Docker-python-opencv

Docker for Python-Opencv based on Debian sid

Linux Package::

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

Python Testing packages::

  • mock
  • nose coverage rednose nose-cov nosexcover nose_xunitmp
  • watchdog
  • robotframework robotframework-pabot

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
Docker Pull Command
Owner
ibotdotout
Source Repository

Comments (0)