Organize folders, add notebook readme

This commit is contained in:
Marina von Steinkirch 2016-08-14 10:10:38 -07:00
parent 9b583d313c
commit da1b22cf4a
21 changed files with 18 additions and 6 deletions

42
Docker_Images/Dockerfile Normal file
View file

@ -0,0 +1,42 @@
FROM ubuntu:14.04
RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential \
cmake \
git \
wget \
libatlas-base-dev \
libboost-all-dev \
libgflags-dev \
libgoogle-glog-dev \
libhdf5-serial-dev \
libleveldb-dev \
liblmdb-dev \
libopencv-dev \
libprotobuf-dev \
libsnappy-dev \
protobuf-compiler \
python-dev \
python-numpy \
python-pip \
python-scipy && \
rm -rf /var/lib/apt/lists/*
ENV CAFFE_ROOT=/opt/caffe
WORKDIR $CAFFE_ROOT
# FIXME: clone a specific git tag and use ARG instead of ENV once DockerHub supports this.
ENV CLONE_TAG=master
RUN git clone -b ${CLONE_TAG} --depth 1 https://github.com/BVLC/caffe.git . && \
for req in $(cat python/requirements.txt) pydot; do pip install $req; done && \
mkdir build && cd build && \
cmake -DCPU_ONLY=1 .. && \
make -j"$(nproc)"
ENV PYCAFFE_ROOT $CAFFE_ROOT/python
ENV PYTHONPATH $PYCAFFE_ROOT:$PYTHONPATH
ENV PATH $CAFFE_ROOT/build/tools:$PYCAFFE_ROOT:$PATH
RUN echo "$CAFFE_ROOT/build/lib" >> /etc/ld.so.conf.d/caffe.conf && ldconfig
WORKDIR /workspace

17
Docker_Images/README.md Normal file
View file

@ -0,0 +1,17 @@
### Build with:
```
$ docker build -t caffe:cpu .
```
### You can test with:
```
$ docker run -ti caffe:cpu bash -c "cd /opt/caffe/build; make runtest"
```
### Or play with:
```
$ docker run -ti --volume=$(pwd):/workspace caffe:cpu
```