-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
169 additions
and
171 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,26 @@ | ||
FROM postgres:11 | ||
RUN rm /etc/apt/sources.list.d/pgdg.list | ||
RUN sed -i s/deb.debian.org/archive.debian.org/g /etc/apt/sources.list | ||
RUN sed -i 's|security.debian.org|archive.debian.org|g' /etc/apt/sources.list | ||
RUN sed -i '/stretch-updates/d' /etc/apt/sources.list | ||
RUN apt-get update && apt-get -y install apt-transport-https | ||
RUN echo "deb [ signed-by=/usr/local/share/keyrings/postgres.gpg.asc ] https://apt-archive.postgresql.org/pub/repos/apt/ stretch-pgdg main 11" >/etc/apt/sources.list.d/pgdg.list | ||
RUN apt-get update \ | ||
&& apt-get install -y \ | ||
postgresql-server-dev-11 \ | ||
make \ | ||
build-essential \ | ||
postgresql-11-postgis-2.5 \ | ||
&& apt-get clean && rm -rf /var/lib/apt/lists/* | ||
FROM postgres:14 | ||
ADD openstreetmap-postgres-init.sh /docker-entrypoint-initdb.d/ | ||
# RUN rm /etc/apt/sources.list.d/pgdg.list | ||
# RUN sed -i s/deb.debian.org/archive.debian.org/g /etc/apt/sources.list | ||
# RUN sed -i 's|security.debian.org|archive.debian.org|g' /etc/apt/sources.list | ||
# RUN sed -i '/stretch-updates/d' /etc/apt/sources.list | ||
# RUN apt-get update && apt-get -y install apt-transport-https | ||
# RUN echo "deb [ signed-by=/usr/local/share/keyrings/postgres.gpg.asc ] https://apt-archive.postgresql.org/pub/repos/apt/ stretch-pgdg main 11" >/etc/apt/sources.list.d/pgdg.list | ||
# RUN apt-get update \ | ||
# && apt-get install -y \ | ||
# postgresql-server-dev-11 \ | ||
# make \ | ||
# build-essential \ | ||
# postgresql-11-postgis-2.5 \ | ||
# && apt-get clean && rm -rf /var/lib/apt/lists/* | ||
|
||
ADD functions/functions.sql /usr/local/share/osm-db-functions.sql | ||
ADD docker_postgres.sh /docker-entrypoint-initdb.d/ | ||
RUN mkdir -p db | ||
RUN mkdir -p lib | ||
ADD functions/ db/functions/ | ||
ADD lib/quad_tile/ lib/quad_tile/ | ||
# ADD functions/functions.sql /usr/local/share/osm-db-functions.sql | ||
# ADD docker_postgres.sh /docker-entrypoint-initdb.d/ | ||
# RUN mkdir -p db | ||
# RUN mkdir -p lib | ||
# ADD functions/ db/functions/ | ||
# ADD lib/quad_tile/ lib/quad_tile/ | ||
|
||
RUN make -C db/functions/ | ||
RUN chown -R postgres lib/ | ||
RUN chown -R postgres db/ | ||
# RUN make -C db/functions/ | ||
# RUN chown -R postgres lib/ | ||
# RUN chown -R postgres db/ |
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/bin/bash | ||
set -ex | ||
|
||
# Create 'openstreetmap' user | ||
# Password and superuser privilege are needed to successfully run test suite | ||
psql -v ON_ERROR_STOP=1 -U "$POSTGRES_USER" <<-EOSQL | ||
CREATE USER openstreetmap SUPERUSER PASSWORD 'openstreetmap'; | ||
GRANT ALL PRIVILEGES ON DATABASE openstreetmap TO openstreetmap; | ||
EOSQL |
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
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.