Skip to content

Commit

Permalink
Add initial Dockerfile for GEOS
Browse files Browse the repository at this point in the history
  • Loading branch information
peterstace committed May 5, 2023
1 parent 6e69655 commit f93416d
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .ci/geos_images/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
FROM debian:bullseye AS builder

RUN apt-get update \
&& apt-get install -y cmake build-essential wget \
&& rm -rf /var/lib/apt/lists/*

ARG GEOS_VERSION=3.11.2
WORKDIR /tmp
RUN wget https://download.osgeo.org/geos/geos-$GEOS_VERSION.tar.bz2 && \
tar -xf geos-$GEOS_VERSION.tar.bz2 && \
rm geos-$GEOS_VERSION.tar.bz2

WORKDIR /tmp/geos-$GEOS_VERSION
RUN cmake . -DCMAKE_INSTALL_PREFIX=/usr/local && \
make -j4 && \
make install

FROM debian:bullseye
COPY --from=builder /usr/local/ /usr/local/
CMD ["geos-config", "--version"]
16 changes: 16 additions & 0 deletions .ci/geos_images/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# GEOS Images

This directory contains a Dockerfile and instructions for how to create GEOS
images. These images are used for CI.

The images install GEOS from source. This is so that each version of GEOS can
be used in CI.

## Building and uploading

The following command assume the current working directory is the same as this
README.

```sh
docker build .
```

0 comments on commit f93416d

Please sign in to comment.