Added Dockerfile

pull/143/head
Danilo Bargen 2015-08-09 13:23:17 +02:00
rodzic 9a84200ab6
commit 8976bf5349
3 zmienionych plików z 59 dodań i 0 usunięć

1
.dockerignore 100644
Wyświetl plik

@ -0,0 +1 @@
Dockerfile

48
Dockerfile 100644
Wyświetl plik

@ -0,0 +1,48 @@
FROM ubuntu:14.04
MAINTAINER Danilo Bargen <mail@dbrgn.ch>
# Env variables
ENV DEBIAN_FRONTEND noninteractive
# Install git
RUN apt-get update \
&& apt-get install -y git
# Install dependencies
RUN apt-get install -y --install-recommends \
build-essential cmake g++ gcc gFortran perl git autoconf \
curl wget \
unzip \
imagemagick jhead proj-bin libproj-dev\
libjpeg-dev libboost-all-dev libgsl0-dev libx11-dev libxext-dev liblapack-dev \
libeigen3-dev libflann-dev libvtk5-dev libqhull-dev libusb-1.0-0-dev\
libjson-perl \
libzip-dev \
libswitch-perl \
libcv-dev libcvaux-dev libopencv-dev \
libgoogle-glog-dev libatlas-base-dev libsuitesparse-dev \
&& apt-get autoremove \
&& apt-get clean
# Add users
RUN useradd -m -U odm
# Prepare directories
RUN mkdir /code
WORKDIR /code
# Add repository files
ADD . /code/
# Update submodules
RUN git submodule init && git submodule update
# Build OpenDroneMap
RUN ./install.sh && \
chown -R odm:odm /code
USER odm
# Entry point
VOLUME ["/images"]
WORKDIR /images
ENTRYPOINT ["/code/run.pl"]

Wyświetl plik

@ -46,6 +46,16 @@ Now that texturing is in the code base, you can access the full textured meshes
---
Alternatively, you can also run OpenDroneMap in a Docker container:
export IMAGES=/absolute/path/to/your/images
docker build -t opendronemap:latest .
docker run -v $IMAGES:/images opendronemap:latest
To pass in custom parameters to the `run.pl` script, simply pass it as arguments to the `docker run` command.
---
Example data can be found at https://github.com/OpenDroneMap/odm_data
---