This repository has been archived by the owner on Nov 4, 2019. It is now read-only.
forked from NorthStarUAS/ImageAnalysis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
41 lines (30 loc) · 1.38 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# Builds an environment that runs the image analysis direct georeferecing tool set.
FROM continuumio/anaconda3:latest
LABEL Name=imageanalysis Version=0.1
ENV PATH /opt/conda/bin/
SHELL ["/bin/bash", "-c"]
# Define the working dir where to put all the source code
WORKDIR /app
# And the location of where to link the images when mounting the volume that holds the images, camera JSON and
VOLUME [ "/data" ]
# Update conda if required
RUN conda update conda
# Install all the required packages
RUN pip install opencv-python opencv-utils opencv-contrib-python==3.4.2.17 && \
pip install navpy piexif geojson panda3d pylint rope matplotlib
# Download the required props package
ADD https://github.com/AuraUAS/aura-props/archive/master.zip /app/
# extract the compressed files and install
RUN python -m zipfile -e /app/master.zip /app/ && \
cd aura-props-master/python && \
python setup.py install
# Add the source code last to ensure that the rebuild is as quick as possible
ADD . /app
ENTRYPOINT ["/bin/bash", "-c"]
CMD cd /app
# To run, use the following commands:
# docker run -d --name imageanalysis -v location/on/your/computer:/data imageanalysis
# docker exec -it imageanalysis /bin/bash
# When in the container, you can navigate to the project runner dir and run with the following:
# cd scripts
# python project_runner.py --project /data --camera /app/cameras/DJI_FC330.json --pix4d /data/pix4d.csv