-
Notifications
You must be signed in to change notification settings - Fork 19
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
1 parent
6e69655
commit f93416d
Showing
2 changed files
with
36 additions
and
0 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 |
---|---|---|
@@ -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"] |
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,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 . | ||
``` |