-
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.
Use single Dockerfile for GEOS images
- Loading branch information
1 parent
cc8e0c3
commit 6d7a785
Showing
10 changed files
with
87 additions
and
94 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,12 +1,8 @@ | ||
version: "3.7" | ||
services: | ||
cmprefimpl: | ||
build: | ||
context: . | ||
dockerfile: geos.Dockerfile | ||
working_dir: /go/src/github.com/peterstace/simplefeatures | ||
entrypoint: sh -c "go install ./internal/cmprefimpl/cmpgeos && cmpgeos" | ||
image: peterstace/simplefeatures-ci:geos-3.11.2-go-1.20.4 | ||
working_dir: /mnt/sf | ||
entrypoint: sh -c "go run ./internal/cmprefimpl/cmpgeos" | ||
volumes: | ||
- ..:/go/src/github.com/peterstace/simplefeatures | ||
environment: | ||
- GO111MODULE=on | ||
- ..:/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,12 +1,8 @@ | ||
version: "2.1" | ||
services: | ||
geostests: | ||
build: | ||
context: . | ||
dockerfile: geos.Dockerfile | ||
working_dir: /go/src/github.com/peterstace/simplefeatures | ||
image: peterstace/simplefeatures-ci:geos-${GEOS_VERSION}-go-1.20.4 | ||
working_dir: /mnt/sf | ||
entrypoint: go test -test.count=1 -test.run=. ./geos | ||
volumes: | ||
- ..:/go/src/github.com/peterstace/simplefeatures | ||
environment: | ||
- GO111MODULE=on | ||
- ..:/mnt/sf |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
* |
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,28 @@ | ||
FROM debian:bullseye | ||
|
||
RUN apt-get update \ | ||
&& apt-get install -y cmake build-essential wget \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
ARG GEOS_VERSION | ||
RUN cd /tmp \ | ||
&& wget https://download.osgeo.org/geos/geos-$GEOS_VERSION.tar.bz2 \ | ||
&& tar -xf geos-$GEOS_VERSION.tar.bz2 \ | ||
&& rm geos-$GEOS_VERSION.tar.bz2 \ | ||
&& cd geos-$GEOS_VERSION \ | ||
&& cmake . -DCMAKE_INSTALL_PREFIX=/usr/local \ | ||
&& make -j$(nproc) \ | ||
&& make install \ | ||
&& ldconfig \ | ||
&& cd .. \ | ||
&& rm -r geos-$GEOS_VERSION | ||
|
||
ARG GO_VERSION | ||
ARG TARGETARCH | ||
RUN cd /tmp \ | ||
&& wget https://go.dev/dl/go$GO_VERSION.linux-$TARGETARCH.tar.gz \ | ||
&& tar -C /usr/local -xzf go$GO_VERSION.linux-$TARGETARCH.tar.gz \ | ||
&& rm go$GO_VERSION.linux-$TARGETARCH.tar.gz | ||
ENV PATH=$PATH:/usr/local/go/bin | ||
|
||
CMD geos-config --version && go 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
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