Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

upgrade to apline-3.15 and osm2pgsql 1.5.1 #2

Open
cristianbogdan opened this issue Dec 23, 2021 · 0 comments
Open

upgrade to apline-3.15 and osm2pgsql 1.5.1 #2

cristianbogdan opened this issue Dec 23, 2021 · 0 comments

Comments

@cristianbogdan
Copy link

# 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant