Skip to content

Commit

Permalink
Build docker FROM paulinus/opensfm-docker-base
Browse files Browse the repository at this point in the history
  • Loading branch information
paulinus committed Oct 4, 2016
1 parent e77cc34 commit 7be7606
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 56 deletions.
55 changes: 1 addition & 54 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,58 +1,5 @@
FROM ubuntu:14.04
FROM paulinus/opensfm-docker-base


# Install apt-getable dependencies
RUN apt-get update \
&& apt-get install -y \
build-essential \
cmake \
git \
libatlas-base-dev \
libboost-python-dev \
libeigen3-dev \
libgoogle-glog-dev \
libopencv-dev \
libsuitesparse-dev \
python-dev \
python-numpy \
python-opencv \
python-pip \
python-pyexiv2 \
python-pyproj \
python-scipy \
python-yaml \
wget \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*


# Install Ceres from source
RUN \
mkdir -p /source && cd /source && \
wget http://ceres-solver.org/ceres-solver-1.10.0.tar.gz && \
tar xvzf ceres-solver-1.10.0.tar.gz && \
cd /source/ceres-solver-1.10.0 && \
mkdir -p build && cd build && \
cmake .. -DCMAKE_C_FLAGS=-fPIC -DCMAKE_CXX_FLAGS=-fPIC -DBUILD_EXAMPLES=OFF -DBUILD_TESTING=OFF -DOPENMP=OFF && \
make install && \
cd / && \
rm -rf /source/ceres-solver-1.10.0 && \
rm -f /source/ceres-solver-1.10.0.tar.gz


# Install opengv from source
RUN \
mkdir -p /source && cd /source && \
git clone https://github.com/paulinus/opengv.git && \
cd /source/opengv && \
mkdir -p build && cd build && \
cmake .. -DBUILD_TESTS=OFF -DBUILD_PYTHON=ON && \
make install && \
cd / && \
rm -rf /source/opengv


# OpenSfM
COPY . /source/OpenSfM

WORKDIR /source/OpenSfM
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,12 @@ Be sure to update your `PYTHONPATH` to include `/usr/local/lib/python2.7/site-pa

### Installing dependencies on Ubuntu

See the [Dockerfile](https://github.com/mapillary/OpenSfM/blob/master/Dockerfile) for the commands to install all dependencies on Ubuntu 14.04. The steps are
See this [Dockerfile](https://github.com/paulinus/opensfm-docker-base/blob/master/Dockerfile) for the commands to install all dependencies on Ubuntu 14.04. The steps are

1. Install [OpenCV][], [Boost Python][], [NumPy][], [SciPy][] using apt-get
2. Install python requirements using pip
3. Clone, build and install [OpenGV][] following the receipt in the Dockerfile
4. [Build and Install](http://ceres-solver.org/building.html) the [Ceres solver][] from its source using the `-fPIC` compilation flag
4. [Build and Install](http://ceres-solver.org/building.html) the [Ceres solver][] from its source using the `-fPIC` compilation flag.

#### Install note

Expand Down

0 comments on commit 7be7606

Please sign in to comment.