Skip to content

Commit

Permalink
Merge pull request #46 from alicevision/devDocker
Browse files Browse the repository at this point in the history
WIP [docker] add support for docker
  • Loading branch information
Carsten Griwodz authored Sep 10, 2018
2 parents 304f09d + f7386d4 commit fb5251e
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
ARG CUDA_TAG=9.2-devel
FROM nvidia/cuda:$CUDA_TAG
LABEL maintainer="AliceVision Team [email protected]"

# use CUDA_TAG to select the image version to use
# see https://hub.docker.com/r/nvidia/cuda/
#
# For example, to create a ubuntu 16.04 with cuda 8.0 for development, use
# docker build --build-arg CUDA_TAG=8.0-devel --tag popsift .
#
# then execute with nvidia docker (https://github.com/nvidia/nvidia-docker/wiki/Installation-(version-2.0))
# docker run -it --runtime=nvidia popsift


# OS/Version (FILE): cat /etc/issue.net
# Cuda version (ENV): $CUDA_VERSION

# System update
RUN apt-get clean && apt-get update && apt-get install -y --no-install-recommends\
build-essential \
cmake \
git \
wget \
unzip \
yasm \
pkg-config \
libtool \
nasm \
automake \
libpng12-dev \
libjpeg-turbo8-dev \
libdevil-dev \
libboost-filesystem-dev \
libboost-system-dev \
libboost-program-options-dev \
libboost-thread-dev \
&& rm -rf /var/lib/apt/lists/*

COPY . /opt/popsift
WORKDIR /opt/popsift/build
RUN cmake .. -DCMAKE_BUILD_TYPE=Release && make install -j

0 comments on commit fb5251e

Please sign in to comment.