forked from openstreetmap/openstreetmap-website
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove need for shared library PostgreSQL functions
This is no longer needed as of PR openstreetmap#2383
- Loading branch information
Showing
2 changed files
with
1 addition
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,4 @@ | ||
FROM postgres:11 | ||
|
||
RUN apt-get update && \ | ||
apt-get install -y \ | ||
build-essential \ | ||
curl \ | ||
postgresql-server-dev-all && \ | ||
apt-get clean && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
# Setup app location | ||
RUN mkdir -p /app | ||
WORKDIR /app | ||
|
||
# Add custom database functions | ||
ADD db/functions/ /app/db/functions/ | ||
|
||
# Get quad_tile.h header file from quad_tile repository and | ||
# use it to make libpgosm.so for OSM-specific Postgres functions. | ||
RUN cd db/functions && \ | ||
curl -# -O https://raw.githubusercontent.com/openstreetmap/quad_tile/9fcba83fcbca8a206fa518da5a52f840dc2ecb09/ext/quad_tile/quad_tile.h && \ | ||
make -e QTDIR=/app/db/functions libpgosm.so | ||
|
||
# Add db init script to install OSM-specific Postgres functions | ||
# Add db init script to install OSM-specific Postgres functions/extensions. | ||
ADD docker/postgres/openstreetmap-postgres-init.sh /docker-entrypoint-initdb.d/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters