Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
19 lines (18 sloc) 806 Bytes
FROM kartoza/postgis:11.0-2.5
ENV POSTGRES_DBNAME=mobilitydb
ENV POSTGRES_MULTIPLE_EXTENSIONS=postgis,hstore,postgis_topology,mobilitydb
WORKDIR /usr/local/src
ADD . MobilityDB
RUN apt-get update
RUN apt-get remove -y postgresql-11-postgis-3 postgresql-11-postgis-3-scripts
RUN apt-get install -y cmake build-essential libpq-dev liblwgeom-dev libproj-dev libjson-c-dev
RUN rm -f /etc/apt/sources.list.d/pgdg.list
RUN apt-get update
RUN apt-get install -y postgresql-server-dev-11
RUN mkdir /usr/local/src/MobilityDB/build
RUN cd /usr/local/src/MobilityDB/build && \
cmake .. && \
make && \
make install
RUN echo "shared_preload_libraries = 'postgis-2.5'" >> /etc/postgresql/11/main/postgresql.conf.template
RUN echo "max_locks_per_transaction = 150" >> /etc/postgresql/11/main/postgresql.conf.template
You can’t perform that action at this time.