Skip to content

Commit bdd364d

Browse files
committedSep 10, 2014
add dockerfile & virtualenv running script
1 parent 0375a14 commit bdd364d

File tree

3 files changed

+40
-0
lines changed

3 files changed

+40
-0
lines changed
 

‎Dockerfile

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#Dockerfile for python-opencv
2+
3+
# Pull base image.
4+
FROM debian:sid
5+
6+
MAINTAINER ibotdotout <ibot.out@gmail.com>
7+
8+
# Install packages.
9+
RUN apt-get update
10+
RUN apt-get install -y python python-dev python-pip python-virtualenv
11+
RUN apt-get install -y python-opencv
12+
RUN apt-get install -y python-matplotlib
13+
14+
# Define working directory.
15+
WORKDIR /app
16+
17+
# Define default command.
18+
CMD ["bash"]

‎bin/venv

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#!/bin/bash
2+
3+
# enable rednose color
4+
export NOSE_REDNOSE=1
5+
6+
# set virutalenv path
7+
VENVPATH=/tmp/env
8+
9+
# create virtualenv with system packages
10+
virtualenv --system-site-packages $VENVPATH
11+
12+
# activate virtualenv
13+
. $VENVPATH/bin/activate
14+
15+
# install python packages from requirements.txt
16+
pip install -r requirements.txt
17+
18+
# execute arguments
19+
exec "$@"
20+
21+
# deactivate virtualenv
22+
deactivate

‎requirements.txt

Whitespace-only changes.

0 commit comments

Comments
 (0)
Please sign in to comment.