kopia lustrzana https://github.com/OpenDroneMap/ODM
Use pip to install python deps, simplified configure.sh a bit
Former-commit-id: 0878fd9aca
pull/1161/head
rodzic
70ba632236
commit
ac74df5d0c
13
Dockerfile
13
Dockerfile
|
@ -50,9 +50,7 @@ RUN apt-get install --no-install-recommends -y \
|
||||||
python-dev \
|
python-dev \
|
||||||
python-gdal \
|
python-gdal \
|
||||||
python-matplotlib \
|
python-matplotlib \
|
||||||
python-networkx \
|
|
||||||
python-pip \
|
python-pip \
|
||||||
python-pyproj \
|
|
||||||
python-software-properties \
|
python-software-properties \
|
||||||
python-wheel \
|
python-wheel \
|
||||||
swig2.0 \
|
swig2.0 \
|
||||||
|
@ -67,18 +65,19 @@ RUN pip install -U \
|
||||||
exifread \
|
exifread \
|
||||||
gpxpy \
|
gpxpy \
|
||||||
loky \
|
loky \
|
||||||
numpy==1.15.4 \
|
|
||||||
psutil \
|
|
||||||
pyproj \
|
|
||||||
PyYAML==3.13 \
|
PyYAML==3.13 \
|
||||||
repoze.lru \
|
repoze.lru \
|
||||||
scipy==1.2.1 \
|
|
||||||
shapely \
|
|
||||||
xmltodict \
|
xmltodict \
|
||||||
rasterio \
|
rasterio \
|
||||||
attrs==19.1.0 \
|
attrs==19.1.0 \
|
||||||
pyodm==1.5.2b1 \
|
pyodm==1.5.2b1 \
|
||||||
Pillow \
|
Pillow \
|
||||||
|
networkx \
|
||||||
|
scipy==1.2.1 \
|
||||||
|
numpy==1.15.4 \
|
||||||
|
shapely \
|
||||||
|
pyproj \
|
||||||
|
psutil \
|
||||||
joblib
|
joblib
|
||||||
|
|
||||||
RUN pip install --upgrade cryptography && python -m easy_install --upgrade pyOpenSSL
|
RUN pip install --upgrade cryptography && python -m easy_install --upgrade pyOpenSSL
|
||||||
|
|
33
configure.sh
33
configure.sh
|
@ -28,7 +28,11 @@ install() {
|
||||||
libjsoncpp-dev \
|
libjsoncpp-dev \
|
||||||
python-gdal \
|
python-gdal \
|
||||||
grass-core \
|
grass-core \
|
||||||
libssl-dev
|
libssl-dev \
|
||||||
|
liblas-bin \
|
||||||
|
swig2.0 \
|
||||||
|
python-wheel \
|
||||||
|
libboost-log-dev
|
||||||
|
|
||||||
echo "Getting CMake 3.1 for MVS-Texturing"
|
echo "Getting CMake 3.1 for MVS-Texturing"
|
||||||
apt-get install -y software-properties-common python-software-properties
|
apt-get install -y software-properties-common python-software-properties
|
||||||
|
@ -42,7 +46,6 @@ install() {
|
||||||
libavformat-dev \
|
libavformat-dev \
|
||||||
libswscale-dev \
|
libswscale-dev \
|
||||||
python-dev \
|
python-dev \
|
||||||
python-numpy \
|
|
||||||
libtbb2 \
|
libtbb2 \
|
||||||
libtbb-dev \
|
libtbb-dev \
|
||||||
libjpeg-dev \
|
libjpeg-dev \
|
||||||
|
@ -59,18 +62,15 @@ install() {
|
||||||
echo "Removing libdc1394-22-dev due to python opencv issue"
|
echo "Removing libdc1394-22-dev due to python opencv issue"
|
||||||
apt-get remove libdc1394-22-dev
|
apt-get remove libdc1394-22-dev
|
||||||
|
|
||||||
## Installing OpenSfM Requisites
|
|
||||||
echo "Installing OpenSfM Dependencies"
|
echo "Installing OpenSfM Dependencies"
|
||||||
apt-get install -y -qq python-networkx \
|
apt-get install -y -qq libgoogle-glog-dev \
|
||||||
libgoogle-glog-dev \
|
|
||||||
libsuitesparse-dev \
|
libsuitesparse-dev \
|
||||||
libboost-filesystem-dev \
|
libboost-filesystem-dev \
|
||||||
libboost-iostreams-dev \
|
libboost-iostreams-dev \
|
||||||
libboost-regex-dev \
|
libboost-regex-dev \
|
||||||
libboost-python-dev \
|
libboost-python-dev \
|
||||||
libboost-date-time-dev \
|
libboost-date-time-dev \
|
||||||
libboost-thread-dev \
|
libboost-thread-dev
|
||||||
python-pyproj
|
|
||||||
|
|
||||||
pip install -U PyYAML==3.13 \
|
pip install -U PyYAML==3.13 \
|
||||||
exifread \
|
exifread \
|
||||||
|
@ -83,25 +83,18 @@ install() {
|
||||||
attrs==19.1.0 \
|
attrs==19.1.0 \
|
||||||
pyodm==1.5.2b1 \
|
pyodm==1.5.2b1 \
|
||||||
Pillow \
|
Pillow \
|
||||||
|
networkx \
|
||||||
|
scipy==1.2.1 \
|
||||||
|
numpy==1.15.4 \
|
||||||
|
shapely \
|
||||||
|
pyproj \
|
||||||
|
psutil \
|
||||||
joblib
|
joblib
|
||||||
|
|
||||||
# Fix: /usr/local/lib/python2.7/dist-packages/requests/__init__.py:83: RequestsDependencyWarning: Old version of cryptography ([1, 2, 3]) may cause slowdown.
|
# Fix: /usr/local/lib/python2.7/dist-packages/requests/__init__.py:83: RequestsDependencyWarning: Old version of cryptography ([1, 2, 3]) may cause slowdown.
|
||||||
pip install --upgrade cryptography
|
pip install --upgrade cryptography
|
||||||
python -m easy_install --upgrade pyOpenSSL
|
python -m easy_install --upgrade pyOpenSSL
|
||||||
|
|
||||||
|
|
||||||
echo "Installing OpenDroneMap Dependencies"
|
|
||||||
apt-get install -y -qq python-scipy \
|
|
||||||
liblas-bin
|
|
||||||
|
|
||||||
echo "Installing lidar2dems Dependencies"
|
|
||||||
apt-get install -y -qq swig2.0 \
|
|
||||||
python-wheel \
|
|
||||||
libboost-log-dev
|
|
||||||
|
|
||||||
echo "Installing split-merge Dependencies"
|
|
||||||
pip install -U scipy==1.2.1 numpy==1.15.4 shapely pyproj psutil
|
|
||||||
|
|
||||||
echo "Compiling SuperBuild"
|
echo "Compiling SuperBuild"
|
||||||
cd ${RUNPATH}/SuperBuild
|
cd ${RUNPATH}/SuperBuild
|
||||||
mkdir -p build && cd build
|
mkdir -p build && cd build
|
||||||
|
|
|
@ -50,9 +50,7 @@ RUN apt-get install --no-install-recommends -y \
|
||||||
python-dev \
|
python-dev \
|
||||||
python-gdal \
|
python-gdal \
|
||||||
python-matplotlib \
|
python-matplotlib \
|
||||||
python-networkx \
|
|
||||||
python-pip \
|
python-pip \
|
||||||
python-pyproj \
|
|
||||||
python-software-properties \
|
python-software-properties \
|
||||||
python-wheel \
|
python-wheel \
|
||||||
swig2.0 \
|
swig2.0 \
|
||||||
|
@ -67,18 +65,19 @@ RUN pip install -U \
|
||||||
exifread \
|
exifread \
|
||||||
gpxpy \
|
gpxpy \
|
||||||
loky \
|
loky \
|
||||||
numpy==1.15.4 \
|
|
||||||
psutil \
|
|
||||||
pyproj \
|
|
||||||
PyYAML==3.13 \
|
PyYAML==3.13 \
|
||||||
repoze.lru \
|
repoze.lru \
|
||||||
scipy==1.2.1 \
|
|
||||||
shapely \
|
|
||||||
xmltodict \
|
xmltodict \
|
||||||
rasterio \
|
rasterio \
|
||||||
attrs==19.1.0 \
|
attrs==19.1.0 \
|
||||||
pyodm==1.5.2b1 \
|
pyodm==1.5.2b1 \
|
||||||
Pillow \
|
Pillow \
|
||||||
|
networkx \
|
||||||
|
scipy==1.2.1 \
|
||||||
|
numpy==1.15.4 \
|
||||||
|
shapely \
|
||||||
|
pyproj \
|
||||||
|
psutil \
|
||||||
joblib
|
joblib
|
||||||
|
|
||||||
RUN pip install --upgrade cryptography && python -m easy_install --upgrade pyOpenSSL
|
RUN pip install --upgrade cryptography && python -m easy_install --upgrade pyOpenSSL
|
||||||
|
|
Ładowanie…
Reference in New Issue