Commit 04e1e224 authored by Gaetano Raffaele's avatar Gaetano Raffaele
Browse files

WIP: first working dockerfile for Moringa OTB build

No related merge requests found
Showing with 7 additions and 3 deletions
+7 -3
...@@ -33,6 +33,7 @@ RUN apt-get update \ ...@@ -33,6 +33,7 @@ RUN apt-get update \
vim \ vim \
wget \ wget \
zip \ zip \
libopenmpi-dev \
&& apt-get clean && rm -rf /var/lib/apt/lists/* && apt-get clean && rm -rf /var/lib/apt/lists/*
# OTB branch to clone # OTB branch to clone
...@@ -55,7 +56,7 @@ RUN cd /tmp/build \ ...@@ -55,7 +56,7 @@ RUN cd /tmp/build \
-DCMAKE_BUILD_TYPE="Release" \ -DCMAKE_BUILD_TYPE="Release" \
-DDOWNLOAD_LOCATION=/tmp/SuperBuild-archives \ -DDOWNLOAD_LOCATION=/tmp/SuperBuild-archives \
-DCMAKE_INSTALL_PREFIX=/opt/otb \ -DCMAKE_INSTALL_PREFIX=/opt/otb \
&& make OTB_DEPENDS -j7 && make OTB_DEPENDS -j20
RUN cd /tmp/otb/Modules/Remote \ RUN cd /tmp/otb/Modules/Remote \
&& rm -f otbGRM.remote.cmake \ && rm -f otbGRM.remote.cmake \
...@@ -88,9 +89,12 @@ RUN cd /tmp/otb/Modules/Remote \ ...@@ -88,9 +89,12 @@ RUN cd /tmp/otb/Modules/Remote \
-DModule_SertitObject=OFF \ -DModule_SertitObject=OFF \
-DOTB_WRAP_PYTHON=ON \ -DOTB_WRAP_PYTHON=ON \
-DPYTHON_EXECUTABLE=/usr/bin/python3 \ -DPYTHON_EXECUTABLE=/usr/bin/python3 \
-DCMAKE_INSTALL_PREFIX=/opt/otb \ -DCMAKE_INSTALL_PREFIX=/opt/otb
RUN sed -i 's/SetDocName/\/\/SetDocName/g' /tmp/otb/Modules/Remote/OTBPhenology/app/otbSigmoFitting.cxx \
&& sed -i 's/SetDocName/\/\/SetDocName/g' /tmp/otb/Modules/Remote/otb-slic/app/otbSLIC.cxx \
&& cd /tmp/build \ && cd /tmp/build \
&& make -j7 \ && make -j20 \
&& rm -rf /tmp/* /root/.cache /opt/otb/bin/otbgui_* && rm -rf /tmp/* /root/.cache /opt/otb/bin/otbgui_*
# Persistent environment variables # Persistent environment variables
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment