Skip to content

Commit 7be7606

Browse files
committed
Build docker FROM paulinus/opensfm-docker-base
1 parent e77cc34 commit 7be7606

2 files changed

Lines changed: 3 additions & 56 deletions

File tree

Dockerfile

Lines changed: 1 addition & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -1,58 +1,5 @@
1-
FROM ubuntu:14.04
1+
FROM paulinus/opensfm-docker-base
22

3-
4-
# Install apt-getable dependencies
5-
RUN apt-get update \
6-
&& apt-get install -y \
7-
build-essential \
8-
cmake \
9-
git \
10-
libatlas-base-dev \
11-
libboost-python-dev \
12-
libeigen3-dev \
13-
libgoogle-glog-dev \
14-
libopencv-dev \
15-
libsuitesparse-dev \
16-
python-dev \
17-
python-numpy \
18-
python-opencv \
19-
python-pip \
20-
python-pyexiv2 \
21-
python-pyproj \
22-
python-scipy \
23-
python-yaml \
24-
wget \
25-
&& apt-get clean \
26-
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
27-
28-
29-
# Install Ceres from source
30-
RUN \
31-
mkdir -p /source && cd /source && \
32-
wget http://ceres-solver.org/ceres-solver-1.10.0.tar.gz && \
33-
tar xvzf ceres-solver-1.10.0.tar.gz && \
34-
cd /source/ceres-solver-1.10.0 && \
35-
mkdir -p build && cd build && \
36-
cmake .. -DCMAKE_C_FLAGS=-fPIC -DCMAKE_CXX_FLAGS=-fPIC -DBUILD_EXAMPLES=OFF -DBUILD_TESTING=OFF -DOPENMP=OFF && \
37-
make install && \
38-
cd / && \
39-
rm -rf /source/ceres-solver-1.10.0 && \
40-
rm -f /source/ceres-solver-1.10.0.tar.gz
41-
42-
43-
# Install opengv from source
44-
RUN \
45-
mkdir -p /source && cd /source && \
46-
git clone https://github.com/paulinus/opengv.git && \
47-
cd /source/opengv && \
48-
mkdir -p build && cd build && \
49-
cmake .. -DBUILD_TESTS=OFF -DBUILD_PYTHON=ON && \
50-
make install && \
51-
cd / && \
52-
rm -rf /source/opengv
53-
54-
55-
# OpenSfM
563
COPY . /source/OpenSfM
574

585
WORKDIR /source/OpenSfM

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,12 @@ Be sure to update your `PYTHONPATH` to include `/usr/local/lib/python2.7/site-pa
4848

4949
### Installing dependencies on Ubuntu
5050

51-
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
51+
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
5252

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

5858
#### Install note
5959

0 commit comments

Comments
 (0)