-
-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Compiled Postgis 2.5.1 myself because of an upgrade bug in RC5
- Loading branch information
Showing
3 changed files
with
82 additions
and
2 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
|
||
FROM timescale/timescaledb:latest-pg17 AS timescale-pg17 | ||
|
||
# -------------------------------------- | ||
# PostGIS - Build and install OLD Postgis (for upgrade reasons) | ||
# -------------------------------------- | ||
ARG VERSION | ||
ARG TARGETARCH | ||
ARG TARGETVARIANT | ||
|
||
# PostGIS - Add required packages for runtime (see postgis dependencies) | ||
# hadolint ignore=DL3018 | ||
RUN --mount=type=cache,id=apk-${TARGETARCH}-${TARGETVARIANT},sharing=locked,target=/var/cache/apk \ | ||
set -ex \ | ||
&& apk update \ | ||
&& apk add \ | ||
openexr \ | ||
poppler \ | ||
gdal \ | ||
geos \ | ||
json-c \ | ||
libgcc \ | ||
libpq \ | ||
libstdc++ \ | ||
libxml2 \ | ||
musl \ | ||
pcre \ | ||
perl \ | ||
proj \ | ||
protobuf-c | ||
|
||
# hadolint ignore=DL3018, DL3003 | ||
RUN --mount=type=cache,id=apk-${TARGETARCH}-${TARGETVARIANT},sharing=locked,target=/var/cache/apk \ | ||
set -ex \ | ||
&& apk update \ | ||
&& apk add --virtual .fetch-deps \ | ||
ca-certificates \ | ||
git \ | ||
openssl \ | ||
openssl-dev \ | ||
tar \ | ||
wget \ | ||
&& mkdir -p /build/ \ | ||
&& wget --progress=dot:giga -P /build https://download.osgeo.org/postgis/source/postgis-${VERSION}.tar.gz \ | ||
&& apk add --virtual .build-deps \ | ||
coreutils \ | ||
gcc \ | ||
make \ | ||
cmake \ | ||
build-base \ | ||
libxml2-dev \ | ||
protobuf-c-dev \ | ||
clang19 \ | ||
llvm19 \ | ||
&& apk add --virtual .community-build-deps \ | ||
geos-dev \ | ||
proj-dev \ | ||
gdal-dev \ | ||
&& cd /build \ | ||
&& tar xvzf postgis-${VERSION}.tar.gz \ | ||
&& cd /build/postgis-${VERSION} \ | ||
&& ./configure --with-pgconfig=/usr/local/bin/pg_config \ | ||
&& make && make install \ | ||
&& cd ~ \ | ||
&& apk del .fetch-deps .build-deps .community-build-deps \ | ||
&& rm -rf /build | ||
|
||
# Labels | ||
LABEL \ | ||
org.opencontainers.image.source="https://github.com/expaso/hassos-addon-timescaledb" |