Skip to content

Commit

Permalink
Add PostGIS (google#709)
Browse files Browse the repository at this point in the history
* Add postgis to projects

* Update project.yaml

* Update Dockerfile

* have it pull default branch
  • Loading branch information
rouault authored and tmatth committed Oct 22, 2018
1 parent 639db0f commit a5081bf
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 0 deletions.
22 changes: 22 additions & 0 deletions projects/postgis/Dockerfile
@@ -0,0 +1,22 @@
# Copyright 2016 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
################################################################################

FROM gcr.io/oss-fuzz-base/base-builder
MAINTAINER lr@pcorp.us
RUN apt-get update && apt-get install -y make autoconf automake libtool g++ postgresql-server-dev-9.5 libgeos-dev libproj-dev libxml2-dev pkg-config libjson-c-dev
RUN git clone --depth 1 https://git.osgeo.org/gogs/postgis/postgis.git postgis
WORKDIR postgis
COPY build.sh $SRC/
26 changes: 26 additions & 0 deletions projects/postgis/build.sh
@@ -0,0 +1,26 @@
#!/bin/bash -eu
# Copyright 2016 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
################################################################################

./autogen.sh
./configure --enable-static --without-raster --without-protobuf
cd liblwgeom
make clean -s
make -j$(nproc) -s
cd ..

./fuzzers/build_google_oss_fuzzers.sh
./fuzzers/build_seed_corpus.sh
6 changes: 6 additions & 0 deletions projects/postgis/project.yaml
@@ -0,0 +1,6 @@
homepage: "http://postgis.net/"
primary_contact: "lr@pcorp.us"
auto_ccs:
- "even.rouault@gmail.com"
- "pramsey@cleverelephant.ca"
- "strk@kbt.io"

0 comments on commit a5081bf

Please sign in to comment.