Skip to content

Commit

Permalink
#379 Dockerfile using GDAL 3.8.4 and Postgres 11 plus BRK tables drop
Browse files Browse the repository at this point in the history
  • Loading branch information
justb4 committed Mar 26, 2024
1 parent 4f07c5a commit 13ad9b5
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 10 deletions.
12 changes: 7 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ghcr.io/osgeo/gdal:ubuntu-small-latest
FROM ghcr.io/osgeo/gdal:ubuntu-small-3.8.4

LABEL maintainer="Just van den Broecke <[email protected]>"

Expand All @@ -13,12 +13,14 @@ ENV TZ=${TIMEZONE} \
APT_KEY_DONT_WARN_ON_DANGEROUS_USAGE="DontWarn"

# https://www.ubuntuupdates.org/ppa/postgresql?dist=focal-pgdg need PG client version 10
# old: curl -fsSL https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add -
# https://www.ubuntuupdates.org/ppa/postgresql?
# or use ARGS for other versions
RUN \
apt-get update && apt-get --no-install-recommends install -y gnupg \
&& curl -fsSL https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add - \
&& sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt/ focal-pgdg main" >> /etc/apt/sources.list.d/postgresql.list' \
&& apt-get update \
apt-get update && apt-get --no-install-recommends install -y gnupg ca-certificates \
&& curl https://www.postgresql.org/media/keys/ACCC4CF8.asc | gpg --dearmor | tee /etc/apt/trusted.gpg.d/apt.postgresql.org.gpg >/dev/null \
&& sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt/ jammy-pgdg main" >> /etc/apt/sources.list.d/postgresql.list' \
&& apt-get -y update \
&& apt-get --no-install-recommends install -y ${DEB_PACKAGES} \
&& cp /usr/share/zoneinfo/${TZ} /etc/localtime \
&& dpkg-reconfigure --frontend=noninteractive tzdata
Expand Down
11 changes: 6 additions & 5 deletions brk/etl/sql/drop-tables.sql
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@

SET search_path={schema},public;

DROP TABLE IF EXISTS pand;
DROP TABLE IF EXISTS pand_nummeraanduiding;
DROP TABLE IF EXISTS openbareruimtelabel;
DROP TABLE IF EXISTS kadastralegrens;
DROP TABLE IF EXISTS perceel;
DROP TABLE IF EXISTS kwaliteit CASCADE;
DROP TABLE IF EXISTS pand CASCADE;
DROP TABLE IF EXISTS pand_nummeraanduiding CASCADE;
DROP TABLE IF EXISTS openbareruimtelabel CASCADE;
DROP TABLE IF EXISTS kadastralegrens CASCADE;
DROP TABLE IF EXISTS perceel CASCADE;

SET search_path="$user",public;

0 comments on commit 13ad9b5

Please sign in to comment.