Giter Site home page Giter Site logo

Bad version of GDAL in Dockerfile about s2p HOT 3 CLOSED

miss3d avatar miss3d commented on June 8, 2024
Bad version of GDAL in Dockerfile

from s2p.

Comments (3)

learning4life avatar learning4life commented on June 8, 2024

I have also confirmed that the docker image has an outdated GDAL version.

GDAL 2.1 is available for Ubuntu 16.04 from the ubuntugis-stable PPA:

https://launchpad.net/~ubuntugis/+archive/ubuntu/ppa

from s2p.

learning4life avatar learning4life commented on June 8, 2024

I made the following input to the dockerfile with GDAL 2.1, cmake, lxml and moved from "github.com/carlodef/s2p" to "github.com/MISS3D/s2p"

I tested the build by running the dockerfile using the docker build command:
sudo docker build -t s2p/gdal:2.1 .
sudo docker run s2p/gdal:2.1 python s2p.py testdata/input_pair/config.json

Dockerfile:

# docker for s2p
# Carlo de Franchis <[email protected]>

FROM ubuntu:16.04
MAINTAINER Carlo de Franchis <[email protected]>
ARG DEBIAN_FRONTEND=noninteractive # https://goo.gl/aypXVx
RUN apt-get update && apt-get install -y \
    build-essential \
    geographiclib-tools \
    git \
    libfftw3-dev \
    libgdal-dev \
    libgeographic-dev \
    libgeotiff-dev \
    libtiff5-dev \
    python \
    python-numpy \
    python-pip \
    cmake \
    software-properties-common \
    python-software-properties
RUN pip install -U pip
RUN pip install utm bs4 lxml requests

# Install GDAL 2.x from ubuntugis-stable
RUN apt-get install dialog apt-utils -y
RUN add-apt-repository ppa:ubuntugis/ppa -y 
RUN apt-get update && apt-get install -y \
    gdal-bin \
    python-gdal

# Install s2p from MISS3D/s2p
RUN git clone https://github.com/MISS3D/s2p.git --recursive
RUN cd s2p && make all

WORKDIR /s2p

from s2p.

gfacciol avatar gfacciol commented on June 8, 2024

Thanks @GwennaelM @learning4life I've merged the proposed fix.

from s2p.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.