Created
August 25, 2020 11:53
-
-
Save gfacciol/60e355ee2a6b5ee30a62677554ef7836 to your computer and use it in GitHub Desktop.
Dockerfile for building AMES StereoPipeline from source: github.com/NeoGeographyToolkit/StereoPipeline
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM continuumio/miniconda3 | |
RUN apt-get update && apt-get install -y software-properties-common | |
RUN apt-get install libgl1-mesa-glx vim -y | |
# dowload ASP with conda dependencies | |
ENV buildDir $HOME/build_asp | |
RUN mkdir -p $buildDir | |
RUN cd $buildDir && \ | |
git clone https://github.com/NeoGeographyToolkit/StereoPipeline.git | |
WORKDIR /build_asp/StereoPipeline | |
RUN cd conda && conda env create -f asp_deps_2.7.0_linux_env.yaml | |
# Make RUN commands use the new environment: | |
#RUN conda activate asp_deps | |
SHELL ["conda", "run", "-n", "asp_deps", "/bin/bash", "-c"] | |
RUN conda init bash | |
RUN conda install make | |
RUN cd $buildDir && \ | |
git clone https://github.com/visionworkbench/visionworkbench.git && \ | |
cd visionworkbench | |
RUN mkdir -p /build_asp/visionworkbench/build &&\ | |
cd /build_asp/visionworkbench/build &&\ | |
cmake .. \ | |
-DASP_DEPS_DIR=/opt/conda/envs/asp_deps \ | |
-DCMAKE_VERBOSE_MAKEFILE=ON \ | |
-DCMAKE_INSTALL_PREFIX=$buildDir/install \ | |
-DBINARYBUILDER_INSTALL_DIR=$buildDir/install \ | |
-DCMAKE_C_COMPILER=/opt/conda/envs/asp_deps/bin/x86_64-conda_cos6-linux-gnu-gcc \ | |
-DCMAKE_CXX_COMPILER=/opt/conda/envs/asp_deps/bin/x86_64-conda_cos6-linux-gnu-g++ \ | |
-DCMAKE_AR=/opt/conda/envs/asp_deps/bin/x86_64-conda_cos6-linux-gnu-gcc-ar | |
RUN cd /build_asp/visionworkbench/build &&\ | |
make -j10 && \ | |
make install | |
#RUN cd $buildDir && \ | |
# git clone https://github.com/NeoGeographyToolkit/StereoPipeline.git && \ | |
# cd StereoPipeline | |
RUN mkdir -p /build_asp/StereoPipeline/build &&\ | |
cd /build_asp/StereoPipeline/build && \ | |
cmake .. \ | |
-DASP_DEPS_DIR=/opt/conda/envs/asp_deps \ | |
-DCMAKE_VERBOSE_MAKEFILE=ON \ | |
-DCMAKE_INSTALL_PREFIX=$buildDir/install \ | |
-DBINARYBUILDER_INSTALL_DIR=$buildDir/install \ | |
-DCMAKE_C_COMPILER=/opt/conda/envs/asp_deps/bin/x86_64-conda_cos6-linux-gnu-gcc \ | |
-DCMAKE_CXX_COMPILER=/opt/conda/envs/asp_deps/bin/x86_64-conda_cos6-linux-gnu-g++ \ | |
-DCMAKE_AR=/opt/conda/envs/asp_deps/bin/x86_64-conda_cos6-linux-gnu-gcc-ar | |
RUN cd /build_asp/StereoPipeline/build && \ | |
make -j10 && \ | |
make install | |
ENV QT_PLUGIN_PATH /opt/conda/pkgs/qt-5.9.6-0/plugins | |
ENV GDAL_DATA /opt/conda/envs/asp_deps/share/gdal/ | |
RUN cp /opt/conda/envs/asp_deps/IsisPreferences /build_asp/install |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment