From 7a21ff0007ee1202fd5541c0ebf9a156a49b43c8 Mon Sep 17 00:00:00 2001 From: "Michael D. Smith" Date: Tue, 13 Dec 2016 14:48:22 -0500 Subject: [PATCH] Add time to pdal dependencies (#1436) * Add time cmd to base dockerfile to track memory usage * xenial-specific dockerfile no longer needed. PDAL uses Xenial as Docker base for pdal/dependencies --- scripts/docker/dependencies/Dockerfile | 1 + scripts/docker/dependencies/Dockerfile.xenial | 282 ------------------ 2 files changed, 1 insertion(+), 282 deletions(-) delete mode 100644 scripts/docker/dependencies/Dockerfile.xenial diff --git a/scripts/docker/dependencies/Dockerfile b/scripts/docker/dependencies/Dockerfile index f29f3735f7..7137ed8c67 100644 --- a/scripts/docker/dependencies/Dockerfile +++ b/scripts/docker/dependencies/Dockerfile @@ -66,6 +66,7 @@ RUN apt-get update && apt-get install -y --fix-missing --no-install-recommends \ cython \ python-pip \ libgdal1-dev \ + time \ && rm -rf /var/lib/apt/lists/* RUN update-alternatives --install /usr/bin/clang clang /usr/bin/clang-3.6 20 && update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-3.6 20 diff --git a/scripts/docker/dependencies/Dockerfile.xenial b/scripts/docker/dependencies/Dockerfile.xenial deleted file mode 100644 index 09938dffba..0000000000 --- a/scripts/docker/dependencies/Dockerfile.xenial +++ /dev/null @@ -1,282 +0,0 @@ -FROM ubuntu:16.04 -MAINTAINER Howard Butler - -RUN apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 16126D3A3E5C1192 -RUN apt-get update -qq -RUN apt-get -qq remove postgis - -RUN apt-get update && apt-get install -y --fix-missing --no-install-recommends \ - build-essential \ - ca-certificates \ - cmake \ - curl \ - gfortran \ - git \ - libarmadillo-dev \ - libarpack2-dev \ - libflann-dev \ - libhdf5-serial-dev \ - liblapack-dev \ - libtiff5-dev \ - openssh-client \ - python-dev \ - python-numpy \ - python-software-properties \ - software-properties-common \ - wget \ - automake \ - libtool \ - libspatialite-dev \ - libhdf5-dev \ - subversion \ - libjsoncpp-dev \ - libboost-filesystem-dev \ - libboost-iostreams-dev \ - libboost-program-options-dev \ - libboost-system-dev \ - libboost-thread-dev \ - subversion \ - clang \ - libproj-dev \ - libc6-dev \ - libnetcdf-dev \ - libjasper-dev \ - libpng-dev \ - libjpeg-dev \ - libgif-dev \ - libwebp-dev \ - libhdf4-alt-dev \ - libhdf5-dev \ - libpq-dev \ - libxerces-c-dev \ - unixodbc-dev \ - libsqlite3-dev \ - libgeos-dev \ - libmysqlclient-dev \ - libltdl-dev \ - libcurl4-openssl-dev \ - libspatialite-dev \ - libdap-dev\ - ninja \ - cython \ - python-pip \ - && rm -rf /var/lib/apt/lists/* - - -RUN git clone --depth=1 https://github.com/OSGeo/gdal.git \ - && cd gdal/gdal \ - && ./configure --prefix=/usr \ - --mandir=/usr/share/man \ - --includedir=/usr/include/gdal \ - --with-threads \ - --with-grass=no \ - --with-hide-internal-symbols=yes \ - --with-rename-internal-libtiff-symbols=yes \ - --with-rename-internal-libgeotiff-symbols=yes \ - --with-libtiff=internal \ - --with-geotiff=internal \ - --with-webp \ - --with-jasper \ - --with-netcdf \ - --with-hdf5=/usr/lib/x86_64-linux-gnu/hdf5/serial/ \ - --with-xerces \ - --with-geos \ - --with-sqlite3 \ - --with-curl \ - --with-pg \ - --with-mysql \ - --with-python \ - --with-odbc \ - --with-ogdi \ - --with-dods-root=/usr \ - --with-spatialite=/usr \ - --with-cfitsio=no \ - --with-ecw=no \ - --with-mrsid=no \ - --with-poppler=yes \ - --with-openjpeg=yes \ - --with-freexl=yes \ - --with-libkml=yes \ - --with-armadillo=yes \ - --with-liblzma=yes \ - --with-epsilon=/usr \ - && make -j 4 \ - && make install \ - && rm -rf /gdal - -RUN git clone https://github.com/hobu/nitro \ - && cd nitro \ - && mkdir build \ - && cd build \ - && cmake \ - -DCMAKE_INSTALL_PREFIX=/usr \ - .. \ - && make \ - && make install \ - && rm -rf /nitro - -RUN git clone https://github.com/LASzip/LASzip.git laszip \ - && cd laszip \ - && git checkout e7065cbc5bdbbe0c6e50c9d93d1cd346e9be6778 \ - && mkdir build \ - && cd build \ - && cmake \ - -DCMAKE_INSTALL_PREFIX=/usr \ - -DCMAKE_BUILD_TYPE="Release" \ - .. \ - && make \ - && make install \ - && rm -rf /laszip - - -RUN git clone https://github.com/hobu/hexer.git \ - && cd hexer \ - && mkdir build \ - && cd build \ - && cmake \ - -DCMAKE_INSTALL_PREFIX=/usr \ - -DCMAKE_BUILD_TYPE="Release" \ - .. \ - && make \ - && make install \ - && rm -rf /hexer - -RUN git clone https://github.com/CRREL/points2grid.git \ - && cd points2grid \ - && mkdir build \ - && cd build \ - && cmake \ - -DCMAKE_INSTALL_PREFIX=/usr \ - -DCMAKE_BUILD_TYPE="Release" \ - .. \ - && make \ - && make install \ - && rm -rf /points2grid - -RUN git clone https://github.com/hobu/laz-perf.git \ - && cd laz-perf \ - && mkdir build \ - && cd build \ - && cmake \ - -DCMAKE_INSTALL_PREFIX=/usr \ - -DCMAKE_BUILD_TYPE="Release" \ - .. \ - && make \ - && make install \ - && rm -rf /laz-perf - -RUN wget http://bitbucket.org/eigen/eigen/get/3.2.7.tar.gz \ - && tar -xvf 3.2.7.tar.gz \ - && cp -R eigen-eigen-b30b87236a1b/Eigen/ /usr/include/Eigen/ \ - && cp -R eigen-eigen-b30b87236a1b/unsupported/ /usr/include/unsupported/ \ - && rm -rf /3.2.7.tar.gz \ - && rm -rf /eigen-eigen-b30b87236a1b - -RUN git clone https://github.com/chambbj/pcl.git \ - && cd pcl \ - && git checkout pcl-1.7.2-sans-opengl \ - && mkdir build \ - && cd build \ - && CXXFLAGS="-std=c++11" cmake \ - -DBUILD_2d=ON \ - -DBUILD_CUDA=OFF \ - -DBUILD_GPU=OFF \ - -DBUILD_apps=OFF \ - -DBUILD_common=ON \ - -DBUILD_examples=OFF \ - -DBUILD_features=ON \ - -DBUILD_filters=ON \ - -DBUILD_geometry=ON \ - -DBUILD_global_tests=OFF \ - -DBUILD_io=ON \ - -DBUILD_kdtree=ON \ - -DBUILD_keypoints=ON \ - -DBUILD_ml=ON \ - -DBUILD_octree=ON \ - -DBUILD_outofcore=OFF \ - -DBUILD_people=OFF \ - -DBUILD_recognition=OFF \ - -DBUILD_registration=ON \ - -DBUILD_sample_concensus=ON \ - -DBUILD_search=ON \ - -DBUILD_segmentation=ON \ - -DBUILD_simulation=OFF \ - -DBUILD_stereo=OFF \ - -DBUILD_surface=ON \ - -DBUILD_surface_on_nurbs=OFF \ - -DBUILD_tools=OFF \ - -DBUILD_tracking=OFF \ - -DBUILD_visualization=OFF \ - -DWITH_LIBUSB=OFF \ - -DWITH_OPENNI=OFF \ - -DWITH_OPENNI2=OFF \ - -DWITH_FZAPI=OFF \ - -DWITH_PXCAPI=OFF \ - -DWITH_PNG=OFF \ - -DWITH_QHULL=OFF \ - -DWITH_QT=OFF \ - -DWITH_VTK=OFF \ - -DWITH_PCAP=OFF \ - -DCMAKE_INSTALL_PREFIX=/usr \ - -DCMAKE_BUILD_TYPE="Release" \ - .. \ - && make \ - && make install \ - && rm -rf /pcl - - - -RUN svn co -r 2691 https://svn.osgeo.org/metacrs/geotiff/trunk/libgeotiff/ \ - && cd libgeotiff \ - && ./autogen.sh \ - && ./configure --prefix=/usr \ - && make \ - && make install \ - && rm -rf /libgeotiff - -RUN apt-get update && apt-get install -y --fix-missing --no-install-recommends \ - ninja-build \ - libgeos++-dev \ - unzip \ - && rm -rf /var/lib/apt/lists/* - -RUN mkdir /vdatum \ - && cd /vdatum \ - && wget http://download.osgeo.org/proj/vdatum/usa_geoid2012.zip && unzip -j -u usa_geoid2012.zip -d /usr/share/proj \ - && wget http://download.osgeo.org/proj/vdatum/usa_geoid2009.zip && unzip -j -u usa_geoid2009.zip -d /usr/share/proj \ - && wget http://download.osgeo.org/proj/vdatum/usa_geoid2003.zip && unzip -j -u usa_geoid2003.zip -d /usr/share/proj \ - && wget http://download.osgeo.org/proj/vdatum/usa_geoid1999.zip && unzip -j -u usa_geoid1999.zip -d /usr/share/proj \ - && wget http://download.osgeo.org/proj/vdatum/vertcon/vertconc.gtx && mv vertconc.gtx /usr/share/proj \ - && wget http://download.osgeo.org/proj/vdatum/vertcon/vertcone.gtx && mv vertcone.gtx /usr/share/proj \ - && wget http://download.osgeo.org/proj/vdatum/vertcon/vertconw.gtx && mv vertconw.gtx /usr/share/proj \ - && wget http://download.osgeo.org/proj/vdatum/egm96_15/egm96_15.gtx && mv egm96_15.gtx /usr/share/proj \ - && wget http://download.osgeo.org/proj/vdatum/egm08_25/egm08_25.gtx && mv egm08_25.gtx /usr/share/proj \ - && rm -rf /vdatum - -RUN git clone https://github.com/gadomski/fgt.git \ - && cd fgt \ - && git checkout v0.4.4 \ - && cmake . -DWITH_TESTS=OFF -DBUILD_SHARED_LIBS=ON -DEIGEN3_INCLUDE_DIR=/usr/include -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release \ - && make \ - && make install \ - && rm -rf /fgt - -RUN git clone https://github.com/gadomski/cpd.git \ - && cd cpd \ - && git checkout v0.3.2 \ - && cmake . -DWITH_TESTS=OFF -DBUILD_SHARED_LIBS=ON -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release \ - && make \ - && make install \ - && rm -rf /cpd - -RUN echo oracle-java8-installer shared/accepted-oracle-license-v1-1 select true | debconf-set-selections && \ - add-apt-repository -y ppa:webupd8team/java && \ - apt-get update && \ - apt-get install -y oracle-java8-installer && \ - rm -rf /var/lib/apt/lists/* && \ - rm -rf /var/cache/oracle-jdk8-installer - -ENV JAVA_HOME /usr/lib/jvm/java-8-oracle - -RUN apt-get clean -