Git Product home page Git Product logo

docker-osm2pgsql's People

Contributors

openfirmware avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

docker-osm2pgsql's Issues

upgrade to apline-3.15 and osm2pgsql 1.5.1

# Install the things we want to stick around
RUN apk add --no-cache \
        libgcc \
        libstdc++ \
        boost-filesystem \
        boost-system \
        boost-thread \
        expat \
        libbz2 \
        postgresql-libs \
        libpq \
        geos \
        proj \
        lua5.2 \
        lua5.2-libs

# Install develop tools and dependencies, build osm2pgsql and remove develop tools and dependencies
RUN apk add --no-cache --virtual .osm2pgsql-deps\
        make \
        cmake \
        expat-dev \
        g++ \
        git \
        boost-dev \
        zlib-dev \
        bzip2-dev \
        proj-dev \
        geos-dev \
        lua5.2-dev \
        postgresql-dev &&\
        cd $HOME &&\
        mkdir src &&\
        cd src &&\
        git clone --depth 1 --branch $OSM2PGSQL_VERSION https://github.com/openstreetmap/osm2pgsql.git &&\
        cd osm2pgsql &&\
        mkdir build &&\
        cd build &&\
        cmake -DLUA_LIBRARY=/usr/lib/liblua-5.2.so.0 .. &&\
        make &&\
        make install &&\
        cd $HOME &&\
        rm -rf src &&\
        apk --purge del .osm2pgsql-deps

Also I would suggest to include osmctools which are not available in Alpine but useful for osmconvert

RUN apk add --no-cache --virtual .osmctools-deps make g++ git autoconf automake libtool zlib-dev && \
  git clone --depth 1 https://gitlab.com/osm-c-tools/osmctools.git && \
  cd osmctools &&  autoreconf --install &&  ./configure &&  make install &&\
  rm -rf /osmctools &&\
  apk --purge del .osmctools-deps

404 Not Found - failed to solve: process "/bin/sh -c apt-get update && apt-get install -y -q postgresql ....."

Hi,

Building from the Dockerfile using the command from the docs: docker build -t openfirmware/osm2pgsql github.com/openfirmware/docker-osm2pgsql.git fails and throws a "ERROR: failed to solve: ....",

Here is the complete output: https://hastebin.com/share/atowiquqov.shell

I have tried entering the command that seems to fail separately: sudo apt-get install -y -q postgresql-9.3-postgis-2.1 postgresql-contrib postgresql-server-dev-9.3
But this fails again with a bunch of "Couldn't find any package named ..."

Reading package lists...
Building dependency tree...
Reading state information...
E: Unable to locate package postgresql-9.3-postgis-2.1
E: Couldn't find any package by glob 'postgresql-9.3-postgis-2.1'
E: Couldn't find any package by regex 'postgresql-9.3-postgis-2.1'
E: Unable to locate package postgresql-server-dev-9.3
E: Couldn't find any package by glob 'postgresql-server-dev-9.3'
E: Couldn't find any package by regex 'postgresql-server-dev-9.3'

Any help is appreciated,
Thanks!

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.