-
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.
The previous approach compiled the GEOS library from source. This was quite annoying when new versions of GEOS came out, because new images had to be created (they take several hours to build on a powerful machine). The new approach is simpler and is based on pre-built alpine images.
- Loading branch information
1 parent
5ecf0fe
commit b872c8d
Showing
9 changed files
with
34 additions
and
114 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 |
---|---|---|
@@ -1,8 +1,12 @@ | ||
version: "3.7" | ||
services: | ||
cmprefimpl: | ||
image: peterstace/simplefeatures-ci:geos-3.11.2-go-1.20.4 | ||
build: | ||
dockerfile: geos.Dockerfile | ||
args: | ||
ALPINE_VERSION: 3.19 | ||
GEOS_VERSION: 3.12.1-r0 | ||
working_dir: /mnt/sf | ||
entrypoint: sh -c "go run ./internal/cmprefimpl/cmpgeos" | ||
entrypoint: go run ./internal/cmprefimpl/cmpgeos | ||
volumes: | ||
- ..:/mnt/sf |
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 |
---|---|---|
@@ -1,8 +1,12 @@ | ||
version: "2.1" | ||
services: | ||
geostests: | ||
image: peterstace/simplefeatures-ci:geos-${GEOS_VERSION}-go-1.20.4 | ||
build: | ||
dockerfile: geos.Dockerfile | ||
args: | ||
ALPINE_VERSION: $alpine_version | ||
GEOS_VERSION: $geos_version | ||
working_dir: /mnt/sf | ||
entrypoint: go test -test.count=1 -test.run=. ./geos | ||
entrypoint: go test -test.count=1 -test.run=. ./geos ./internal/rawgeos | ||
volumes: | ||
- ..:/mnt/sf |
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,9 @@ | ||
ARG ALPINE_VERSION | ||
FROM alpine:${ALPINE_VERSION} | ||
|
||
ARG GEOS_VERSION | ||
RUN apk add gcc musl-dev geos-dev=${GEOS_VERSION} | ||
|
||
COPY --from=golang:1.21-alpine /usr/local/go /usr/local/go | ||
ENV PATH=${PATH}:/usr/local/go/bin | ||
RUN go version |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
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