├── README.md └── Dockerfile /README.md: -------------------------------------------------------------------------------- 1 | docker-opencv 2 | ============= 3 | 4 | OpenCV on Docker, setting up the enviornment of openCV using docker. 5 | 6 | First install docker on your computer 7 | 8 | http://docs.docker.io/en/latest/installation/ubuntulinux/ 9 | 10 | and clone the repo, and enter the following command: 11 | 12 | ``` 13 | sudo docker build . 14 | ``` 15 | 16 | and you are ready to go! 17 | 18 | you can also pull the docker image from [index.docker.io](http://index.docker.io) 19 | 20 | https://index.docker.io/u/chilijung/docker-opencv/ 21 | 22 | ``` 23 | sudo docker pull chilijung/docker-opencv 24 | ``` 25 | 26 | and your docker is set! 27 | -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- 1 | from ubuntu:12.10 2 | 3 | # Ubuntu sides with libav, I side with ffmpeg. 4 | run echo "deb http://ppa.launchpad.net/jon-severinsson/ffmpeg/ubuntu quantal main" >> /etc/apt/sources.list 5 | run apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 1DB8ADC1CFCA9579 6 | 7 | 8 | run apt-get update 9 | run apt-get install -y -q wget curl 10 | run apt-get install -y -q build-essential 11 | run apt-get install -y -q cmake 12 | run apt-get install -y -q python2.7 python2.7-dev 13 | run wget 'https://pypi.python.org/packages/2.7/s/setuptools/setuptools-0.6c11-py2.7.egg' && /bin/sh setuptools-0.6c11-py2.7.egg && rm -f setuptools-0.6c11-py2.7.egg 14 | run curl 'https://raw.github.com/pypa/pip/master/contrib/get-pip.py' | python2.7 15 | run pip install numpy 16 | run apt-get install -y -q libavformat-dev libavcodec-dev libavfilter-dev libswscale-dev 17 | run apt-get install -y -q libjpeg-dev libpng-dev libtiff-dev libjasper-dev zlib1g-dev libopenexr-dev libxine-dev libeigen3-dev libtbb-dev 18 | add build_opencv.sh /build_opencv.sh 19 | run /bin/sh /build_opencv.sh 20 | run rm -rf /build_opencv.sh 21 | --------------------------------------------------------------------------------