Skip to content

Commit

Permalink
Add pgsql_ogr_fdw (#318)
Browse files Browse the repository at this point in the history
Co-authored-by: Evan Stanton <evanstanton@Evans-MBP.fritz.box>
Co-authored-by: Ian Stanton <ian@coredb.io>
  • Loading branch information
3 people authored Aug 1, 2023
1 parent 4cfa305 commit eca1399
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
20 changes: 20 additions & 0 deletions contrib/pgsql_ogr_fdw/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Set PostgreSQL version
ARG PG_VERSION=15
FROM quay.io/coredb/c-builder:pg${PG_VERSION}
USER root

# Extension build dependencies
RUN apt-get update && apt-get install -y \
libgdal-dev

# Clone repository
RUN git clone https://github.com/pramsey/pgsql-ogr-fdw.git

# Set project version
ARG RELEASE=v1.1.4

# Build extension
RUN cd pgsql-ogr-fdw && \
git fetch origin ${RELEASE} && \
git checkout ${RELEASE} && \
make
19 changes: 19 additions & 0 deletions contrib/pgsql_ogr_fdw/Trunk.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
[extension]
name = "pgsql_ogr_fdw"
version = "1.1.0"
repository = "https://github.com/pramsey/pgsql-ogr-fdw"
license = "MIT"
description = "PostgreSQL foreign data wrapper for OGR."
documentation = "https://github.com/pramsey/pgsql-ogr-fdw"
categories = ["connectors"]

[build]
postgres_version = "15"
platform = "linux/amd64"
dockerfile = "Dockerfile"
install_command = """
cd pgsql-ogr-fdw && make install
set -x
mv /usr/local/pgsql/share/extension/* /usr/share/postgresql/15/extension
mv /usr/local/pgsql/lib/* /usr/lib/postgresql/15/lib
"""

0 comments on commit eca1399

Please sign in to comment.